diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py index f27b868906649205e7626dd5b7fcde2a35949374..d98a342a9d02604829475c7fe3bb5dc6c28be938 100644 --- a/testsuite/driver/testlib.py +++ b/testsuite/driver/testlib.py @@ -824,6 +824,9 @@ def cygwin( ) -> bool: def js_arch() -> bool: return arch("javascript"); +def wasm_arch() -> bool: + return arch("wasm32") + def have_vanilla( ) -> bool: return config.have_vanilla diff --git a/testsuite/tests/profiling/should_run/all.T b/testsuite/tests/profiling/should_run/all.T index a113645e229db0176d2dc5dd35964a6856e111df..b161f1afe1b8ef6ddecf2634cd5809fc3636e80e 100644 --- a/testsuite/tests/profiling/should_run/all.T +++ b/testsuite/tests/profiling/should_run/all.T @@ -4,7 +4,7 @@ setTestOpts(js_skip) # JS backend doesn't support profiling yet test('heapprof002', [extra_files(['heapprof001.hs']), - ignore_extension, + when(not(wasm_arch()),ignore_extension), pre_cmd('cp heapprof001.hs heapprof002.hs'), extra_ways(['normal_h']), extra_run_opts('7')], compile_and_run, [''])