From b18dcc6664e1af2b689039d2db928c16c1fbcb27 Mon Sep 17 00:00:00 2001 From: Joseph Hickey Date: Fri, 14 May 2021 11:36:02 -0400 Subject: [PATCH] Update #982, Only log failures in id inequality check This cuts the number of logged test cases from nearly 80k to about 580. --- src/unit-test-coverage/shared/src/coveragetest-idmap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/unit-test-coverage/shared/src/coveragetest-idmap.c b/src/unit-test-coverage/shared/src/coveragetest-idmap.c index 83b09e5f8..a49782a8e 100644 --- a/src/unit-test-coverage/shared/src/coveragetest-idmap.c +++ b/src/unit-test-coverage/shared/src/coveragetest-idmap.c @@ -1112,10 +1112,10 @@ void Test_OS_ObjectIDInteger(void) UtAssert_True(OS_ObjectIdEqual(typesI[i], typesJ[j]), "%lu equals %lu", OS_ObjectIdToInteger(typesI[i]), OS_ObjectIdToInteger(typesJ[j])); } - else + else if (OS_ObjectIdEqual(typesI[i], typesJ[j])) { - UtAssert_True(!OS_ObjectIdEqual(typesI[i], typesJ[j]), "%lu does not equal %lu", - OS_ObjectIdToInteger(typesI[i]), OS_ObjectIdToInteger(typesJ[j])); + UtAssert_Failed("%lu does not equal %lu", OS_ObjectIdToInteger(typesI[i]), + OS_ObjectIdToInteger(typesJ[j])); } } }