mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-21 14:28:10 +02:00
[test] If a test target fails, end the test
otherwise cairo is left in a dirty state and further tests are unreliable.
This commit is contained in:
parent
aad66d05fd
commit
409f973429
1 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue