[gjs: 11/13] test: Accommodate GC zeal parameters in test skip condition
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 11/13] test: Accommodate GC zeal parameters in test skip condition
- Date: Sat, 26 Oct 2019 04:30:08 +0000 (UTC)
commit 46e1b01d8e6db85e663e8e912384daa1f80f33e1
Author: Philip Chimento <philip chimento gmail com>
Date: Sun Oct 20 17:20:58 2019 -0700
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.
test/gjs-test-coverage.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]