diff options
-rw-r--r-- | test/cairo-test-runner.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/cairo-test-runner.c b/test/cairo-test-runner.c index 1e789ec2..d130321f 100644 --- a/test/cairo-test-runner.c +++ b/test/cairo-test-runner.c @@ -94,6 +94,7 @@ typedef struct _cairo_test_runner { cairo_bool_t list_only; cairo_bool_t full_test; cairo_bool_t exact_test_names; + cairo_bool_t force_pass; } cairo_test_runner_t; typedef enum { @@ -532,6 +533,9 @@ _runner_fini (cairo_test_runner_t *runner) cairo_test_fini (&runner->base); + if (runner->force_pass) + return CAIRO_TEST_SUCCESS; + return runner->num_failed + runner->num_crashed ? CAIRO_TEST_FAILURE : runner->num_passed + runner->num_xfailed ? @@ -672,6 +676,12 @@ main (int argc, char **argv) } } + if (getenv ("CAIRO_TEST_FORCE_PASS")) { + const char *env = getenv ("CAIRO_TEST_FORCE_PASS"); + + runner.force_pass = atoi (env); + } + _parse_cmdline (&runner, &argc, &argv); append_argv (&argc, &argv, getenv ("CAIRO_TESTS")); |