Skip to content

Commit ccd7f71

Browse files
committed
test: check int tests results in ctest
1 parent b2e4bad commit ccd7f71

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/test/TestMain.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,11 @@ int test_main(int argc, char const** argv)
111111

112112
if (testArgs.unitOption.getValue())
113113
{
114-
test_suite::unit_test_main(argc, argv);
114+
int unitResult = test_suite::unit_test_main(argc, argv);
115+
if (unitResult != EXIT_SUCCESS)
116+
{
117+
return unitResult;
118+
}
115119
}
116120

117121
if (report::results.errorCount > 0 ||

0 commit comments

Comments
 (0)