From 07832d182313002d6837662cacec4aebfb2e82ce Mon Sep 17 00:00:00 2001 From: Cheng Shao <terrorjack@type.dance> Date: Mon, 7 Oct 2024 21:29:20 +0000 Subject: [PATCH] testsuite: flip on support for shared libs, TH & ghci for wasm This commit flips on support for shared libs, TH & ghci for wasm in the testsuite, given support has been landed in previous commits. (cherry picked from commit 74a1f6818d1592ebceab8e0fbb6be1973f38fe78) (cherry picked from commit 2e63876a44236bc67af1aa0ed71db0acf6ac04a3) --- testsuite/config/ghc | 1 - testsuite/driver/testlib.py | 5 +---- testsuite/tests/driver/all.T | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/testsuite/config/ghc b/testsuite/config/ghc index 2ad85dfbe31..ee3c34a11b1 100644 --- a/testsuite/config/ghc +++ b/testsuite/config/ghc @@ -81,7 +81,6 @@ if not config.arch == "javascript": if config.arch == "wasm32": config.have_process = False - config.supports_dynamic_libs = False config.way_flags = { 'normal' : [], diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py index 76dd5483020..627f87bf826 100644 --- a/testsuite/driver/testlib.py +++ b/testsuite/driver/testlib.py @@ -256,11 +256,8 @@ def req_dynamic_ghc( name, opts ): skip(name,opts) def req_interp( name, opts ): - if not config.have_interp or needsTargetWrapper(): + if not config.have_interp: opts.expect = 'fail' - # skip on wasm32, otherwise they show up as unexpected passes - if arch('wasm32'): - skip(name, opts) def req_bco( name, opts ): ''' diff --git a/testsuite/tests/driver/all.T b/testsuite/tests/driver/all.T index 770306a7d74..ffc989b8457 100644 --- a/testsuite/tests/driver/all.T +++ b/testsuite/tests/driver/all.T @@ -126,7 +126,7 @@ test('static001', [extra_files(['Static001.hs']), makefile_test, ['static001']) test('dynHelloWorld', - [only_ways(['dyn']), when(opsys('linux') and not ghc_dynamic(), expect_broken(20706))], + [only_ways(['dyn']), when(opsys('linux') and not ghc_dynamic() and not arch('wasm32'), expect_broken(20706))], compile_and_run, ['']) -- GitLab