mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 07:06:02 +01:00
Fix bounds
This commit is contained in:
parent
72715901ff
commit
752d408c4b
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue