Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-3840

Build broken: 'adding 'bool' to a string does not append to the string' in filesystem tests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 0.26.0
    • None
    • None

    Description

      ../../src/tests/containerizer/filesystem_isolator_tests.cpp:125:52: error: adding 'bool' to a string does not append to the string [-Werror,-Wstring-plus-int]
              return Error("Failed to create root dir: " + mkdir.isError());
                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
      ../../src/tests/containerizer/filesystem_isolator_tests.cpp:125:52: note: use array indexing to silence this warning
              return Error("Failed to create root dir: " + mkdir.isError());
                                                         ^
                           &                             [                ]
      
       124       if (mkdir.isError()) {
       125         return Error("Failed to create root dir: " + mkdir.isError());
       126       }
      

      should be

       124       if (mkdir.isError()) {
       125         return Error("Failed to create root dir: " + mkdir.error());
       126       }
      

      Attachments

        Activity

          People

            vinodkone Vinod Kone
            nnielsen Niklas Quarfot Nielsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: