Fix race condition in coverage file test
test_covered_file_is_duplicated_into_output_if_path()
has some sort of race condition. If it is run with JS_GC_ZEAL=1
, thereby slowing it down, then it fails due to not being able to find the temporary file.
Gjs-Message: 23:49:03.062: Wrote coverage statistics to /tmp/gjs_coverage_tmp.plKVI1/gjs_coverage_test_coverage/coverage.lcov
# Start of coverage tests
**
Gjs:ERROR:/Users/ptomato/jhbuild/source/gjs/test/gjs-test-coverage.cpp:345:void test_covered_file_is_duplicated_into_output_if_path(gpointer, gconstpointer): 'g_file_query_exists(expected_temporary_js_script, NULL)' should be TRUE
Redirecting call to abort() to mozalloc_abort
# Gjs-MESSAGE: Wrote coverage statistics to /tmp/gjs_coverage_tmp.plKVI1/gjs_coverage_test_coverage/coverage.lcov
Hit MOZ_CRASH() at /Users/ptomato/jhbuild/source/mozjs/memory/mozalloc/mozalloc_abort.cpp:33
/Users/ptomato/jhbuild/source/gjs/test/run-test: line 9: 95720 Segmentation fault: 11 $LOG_COMPILER $LOG_FLAGS "$1" --tap --keep-going --verbose
Bail out! Gjs:ERROR:/Users/ptomato/jhbuild/source/gjs/test/gjs-test-coverage.cpp:345:void test_covered_file_is_duplicated_into_output_if_path(gpointer, gconstpointer): 'g_file_query_exists(expected_temporary_js_script, NULL)' should be TRUE
ERROR: gjs-tests.gtester - Bail out! Gjs:ERROR:/Users/ptomato/jhbuild/source/gjs/test/gjs-test-coverage.cpp:345:void test_covered_file_is_duplicated_into_output_if_path(gpointer, gconstpointer): 'g_file_query_exists(expected_temporary_js_script, NULL)' should be TRUE