From f23fb8a49199c70e98aa09c33fc752ddf674fc60 Mon Sep 17 00:00:00 2001 From: Bastiaan Stougie Date: Fri, 3 Apr 2026 05:33:15 -0400 Subject: [PATCH] tests: unhide shunit2 test failures shunit2 test with failing subtest incorrectly produced: Start 2: shunit2 2/2 Test #2: shunit2 .......................... Passed 52.70 sec 100% tests passed, 0 tests failed out of 2 now correctly produces: Start 2: shunit2 2/2 Test #2: shunit2 ..........................***Failed 53.68 sec # # Performing tests # ... test_get_option ASSERT:expected: but was: test_get_option_multiline ... # # Test report # tests passed: 111 99% tests failed: 1 1% tests skipped: 0 0% tests total: 112 100% 50% tests passed, 1 tests failed out of 2 Total Test time (real) = 59.67 sec The following tests FAILED: 2 - shunit2 (Failed) Errors while running CTest make: *** [Makefile:74: test] Error 8 make: Leaving directory '/home/user/repos/uci/build' Signed-off-by: Bastiaan Stougie --- tests/shunit2/tests.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/shunit2/tests.sh b/tests/shunit2/tests.sh index 00f56c5..3a54e2a 100755 --- a/tests/shunit2/tests.sh +++ b/tests/shunit2/tests.sh @@ -76,5 +76,8 @@ TMP_DIR="${TMP_DIR}" \ UCI="${UCI}" \ UCI_Q="${UCI_Q}" \ /bin/sh ${FULL_SUITE} +EXITSTATUS=$? rm -rf ${TESTS_DIR} + +exit ${EXITSTATUS}