diff options
author | Philip Chimento <philip.chimento@gmail.com> | 2019-10-20 17:20:58 -0700 |
---|---|---|
committer | Philip Chimento <philip.chimento@gmail.com> | 2019-10-20 22:19:24 -0700 |
commit | 46e1b01d8e6db85e663e8e912384daa1f80f33e1 (patch) | |
tree | eb7b29521730e8f07430a618a2a7227c4ea0b48b /test/gjs-test-coverage.cpp | |
parent | b99b144a1d16ddc0685132d22f42e06081166e7e (diff) | |
download | gjs-46e1b01d8e6db85e663e8e912384daa1f80f33e1.tar.gz |
test: Accommodate GC zeal parameters in test skip condition
We need to skip some of the tests if running in "GC zeal" mode. Mode 2
can take an extra parameter, which is separated with a comma, so we need
to account for that when deciding whether to skip the test or not.
Diffstat (limited to 'test/gjs-test-coverage.cpp')
-rw-r--r-- | test/gjs-test-coverage.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/gjs-test-coverage.cpp b/test/gjs-test-coverage.cpp index d59bee49..2a77f977 100644 --- a/test/gjs-test-coverage.cpp +++ b/test/gjs-test-coverage.cpp @@ -54,7 +54,8 @@ static bool skip_if_gc_zeal_mode(void) { const char *gc_zeal = g_getenv("JS_GC_ZEAL"); - if (gc_zeal && (strcmp(gc_zeal, "1") == 0 || strcmp(gc_zeal, "2") == 0)) { + if (gc_zeal && (strcmp(gc_zeal, "1") == 0 || strcmp(gc_zeal, "2") == 0 || + g_str_has_prefix(gc_zeal, "2,"))) { g_test_skip("https://bugzilla.mozilla.org/show_bug.cgi?id=1447906"); return true; } |