summaryrefslogtreecommitdiff
path: root/test/cairo-test-runner.c
diff options
context:
space:
mode:
authorUli Schlachter <psychon@znc.in>2021-04-26 16:06:23 +0000
committerUli Schlachter <psychon@znc.in>2021-04-26 16:06:23 +0000
commit14385eeff3b9184c599614648b98458451b8db2b (patch)
tree447056d7973bfea18ad255c53b3626c191cdc2e4 /test/cairo-test-runner.c
parent816e7ac06f33f9fbc446297b601f1ffe2c63801b (diff)
parent2d2f73bc3cb664ceee722ba6305f97023a2eebfd (diff)
downloadcairo-14385eeff3b9184c599614648b98458451b8db2b.tar.gz
Merge branch 'mac-tests' into 'master'
Run the test suite on MacOS See merge request cairo/cairo!160
Diffstat (limited to 'test/cairo-test-runner.c')
-rw-r--r--test/cairo-test-runner.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/cairo-test-runner.c b/test/cairo-test-runner.c
index 39fad0580..ec5efb46f 100644
--- a/test/cairo-test-runner.c
+++ b/test/cairo-test-runner.c
@@ -1066,6 +1066,20 @@ main (int argc, char **argv)
}
}
}
+ if (getenv ("CAIRO_TEST_UGLY_HACK_TO_IGNORE_QUARTZ_COVERAGE_COLUMN_TRIANGLES")) {
+ if (strcmp (target->name, "quartz") == 0 && target->content == CAIRO_CONTENT_COLOR_ALPHA && strcmp (ctx.test_name, "coverage-column-triangles") == 0) {
+ if (status == CAIRO_TEST_FAILURE) {
+ cairo_test_log (&ctx, "Turning FAIL into XFAIL due to env\n");
+ fprintf (stderr, "Turning FAIL into XFAIL due to env\n");
+ runner.num_ignored_via_env++;
+ status = CAIRO_TEST_XFAILURE;
+ } else {
+ fprintf (stderr, "Test was expected to fail due to an environment variable, but did not!\n");
+ fprintf (stderr, "Please remove the hack to ignore xcb-huge-image-shm errors for the script backend.\n");
+ status = CAIRO_TEST_ERROR;
+ }
+ }
+ }
switch (status) {
case CAIRO_TEST_SUCCESS:
target_skipped = FALSE;