Commit bdce2d72 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Fix bounds

parent 02ae335e
......@@ -14,11 +14,9 @@ int run_suite(Suite* suite)
int ret = EXIT_SUCCESS;
if (number_failed != 0) {
ret = EXIT_FAILURE;
const int tests_run = srunner_ntests_run(suite_runner);
TestResult** results = srunner_failures(suite_runner);
for (int i = 0; i < tests_run; ++i) {
for (int i = 0; i < number_failed; ++i) {
if (tr_ctx(results[i]) == CK_CTX_SETUP) {
/* mark tests as skipped */
ret = 77;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment