[Git][ghc/ghc][wip/js-staging] Testsuite: disable Cmm tests with the JS backend

Sylvain Henry (@hsyl20) gitlab at gitlab.haskell.org
Thu Aug 25 15:30:21 UTC 2022



Sylvain Henry pushed to branch wip/js-staging at Glasgow Haskell Compiler / GHC


Commits:
a1971811 by Sylvain Henry at 2022-08-25T17:33:08+02:00
Testsuite: disable Cmm tests with the JS backend

- - - - -


1 changed file:

- testsuite/driver/testlib.py


Changes:

=====================================
testsuite/driver/testlib.py
=====================================
@@ -137,6 +137,11 @@ def no_deps( name, opts):
 def skip( name, opts ):
     opts.skip = True
 
+# disable test on JS arch
+def js_skip( name, opts ):
+    if arch("js"):
+        skip(name,opts)
+
 def expect_fail( name, opts ):
     # The compiler, testdriver, OS or platform is missing a certain
     # feature, and we don't plan to or can't fix it now or in the
@@ -730,6 +735,8 @@ def objcpp_src( name, opts ):
 
 def cmm_src( name, opts ):
     opts.cmm_src = True
+    # JS backend doesn't support Cmm
+    js_skip(name, opts)
 
 def outputdir( odir ):
     return lambda name, opts, d=odir: _outputdir(name, opts, d)



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/a19718112ecf8ad160c8ba88af47491eb1295d8a

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/a19718112ecf8ad160c8ba88af47491eb1295d8a
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20220825/b300db77/attachment-0001.html>


More information about the ghc-commits mailing list