diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test/cairo-test.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/cairo-test.c b/test/cairo-test.c index 3a9205021..500bb1623 100755 --- a/test/cairo-test.c +++ b/test/cairo-test.c @@ -458,9 +458,11 @@ cairo_test_expecting (cairo_test_t *test, * -> FAILURE * else (== some backend SUCCESS) * -> SUCCESS + * + * Also, on a crash, run no further tests. */ - ret = CAIRO_TEST_UNTESTED; - for (i = 0; i < num_targets; i++) { + status = ret = CAIRO_TEST_UNTESTED; + for (i = 0; i < num_targets && status != CAIRO_TEST_CRASHED; i++) { for (j = 0; j < NUM_DEVICE_OFFSETS; j++) { cairo_boilerplate_target_t * volatile target = targets_to_test[i]; volatile int dev_offset = j * 25; |