Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-78853

In unit test results asserts counter is always zero

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None
    • None
    • Build
    • ALL

    Description

      In the output of tests results there is asserts field: 

      {"t":{"$date":"2023-07-11T09:56:47.744Z"},"s":"I",  "c":"TEST",     "id":23065,   "ctx":"main","msg":"Totals","attr":{"totals":{"name":"TOTALS","tests":1040,"fails":0,"asserts":0,"time":{"durationMillis":150001},"failures":[]}}} 

      It is always zero.
      We can see in unittest.cpp that it is never incremented.

      We should either remove it or fix it.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ivan.fefer@mongodb.com Ivan Fefer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: