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

In unit test results asserts counter is always zero

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • DevProd Correctness
    • Fully Compatible
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            juan.gu@mongodb.com Juan Gu
            Reporter:
            ivan.fefer@mongodb.com Ivan Fefer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: