Report failure from CUnit only on test failure

Non-automated mode too should allow running a subset of the tests
without reporting failure.

Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
Erik Boasson 2019-11-19 14:01:34 +01:00 committed by eboasson
parent 0426e4b355
commit 8cbd67c32b

View file

@ -222,6 +222,7 @@ int main(int argc, char *argv[])
}
CU_automated_run_tests();
} else {
CU_set_fail_on_inactive(0);
CU_basic_set_mode(opts.mode);
CU_basic_run_tests();
}