Unable to build unittests: error: 'log' is not a member of 'mongo::unittest'

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 4.2.17
    • Component/s: None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Hello,

       

      I use to build my own packages but 4.2.17 cannot be built:

      src/mongo/client/mongo_uri_test.cpp: In member function 'virtual void mongo::{anonymous}::UnitTest_SuiteNameMongoURITestNamesrvRecordTest::_doTest()':
      src/mongo/client/mongo_uri_test.cpp:1005:19: error: 'log' is not a member of 'mongo::unittest'
       1005 |  mongo::unittest::log() << "Testing URI: " << test.uri << '\n';
            |                   ^~~

      It really looks like a bug to me.

       

      Regards, Adam.

              Assignee:
              Unassigned
              Reporter:
              Adam Adam
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: