summaryrefslogtreecommitdiff
path: root/test/gjs-tests.cpp
diff options
context:
space:
mode:
authorPhilip Chimento <philip@endlessm.com>2018-01-18 13:55:32 -0800
committerPhilip Chimento <philip@endlessm.com>2018-01-24 14:21:13 -0800
commite7ede4a233fd7de7cba3b74edac76970f7d1d778 (patch)
treeab60bad9e5f1433fd92b8642a7b62942771f236e /test/gjs-tests.cpp
parent2a908ad16cde448fb40974cf50ae8c8942dbf027 (diff)
downloadgjs-e7ede4a233fd7de7cba3b74edac76970f7d1d778.tar.gz
profiler: Allow enabling with GJS_ENABLE_PROFILER=1
As discussed in #31, we also want to be able to turn on the profiler with an environment variable.
Diffstat (limited to 'test/gjs-tests.cpp')
-rw-r--r--test/gjs-tests.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/gjs-tests.cpp b/test/gjs-tests.cpp
index 2c9477e8..24f395c0 100644
--- a/test/gjs-tests.cpp
+++ b/test/gjs-tests.cpp
@@ -409,6 +409,9 @@ main(int argc,
if (!g_getenv("GJS_TEST_SKIP_TIMEOUT"))
gjs_crash_after_timeout(60 * 7);
+ /* Avoid interference in the tests from stray environment variable */
+ g_unsetenv("GJS_ENABLE_PROFILER");
+
g_test_init(&argc, &argv, NULL);
g_test_add_func("/gjs/context/construct/destroy", gjstest_test_func_gjs_context_construct_destroy);