diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2007-05-08 14:18:42 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2007-05-08 14:18:42 -0400 |
commit | 409f9734297be250de5e462e2d52e653bd893125 (patch) | |
tree | d6ad730cfc95b0f107913a82ca51048bfd40f8f1 /test | |
parent | aad66d05fd0f310564e80c9ff59526028871751c (diff) | |
download | cairo-409f9734297be250de5e462e2d52e653bd893125.tar.gz |
[test] If a test target fails, end the test
otherwise cairo is left in a dirty state and further tests are
unreliable.
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; |