[Git][ghc/ghc][wip/9.4.8-backports] testsuite: add the req_process predicate

Zubin (@wz1000) gitlab at gitlab.haskell.org
Mon Nov 6 12:37:09 UTC 2023



Zubin pushed to branch wip/9.4.8-backports at Glasgow Haskell Compiler / GHC


Commits:
cb149c64 by Cheng Shao at 2023-11-06T18:06:58+05:30
testsuite: add the req_process predicate

This patch adds the req_process predicate to the testsuite to assert
the platform has a process model, also marking tests that involve
spawning processes as req_process. Also bumps hpc & process submodule.

(cherry picked from commit ce580426ce3052e3b3d2847d0312652ea9087994)

- - - - -


2 changed files:

- testsuite/driver/testglobals.py
- testsuite/driver/testlib.py


Changes:

=====================================
testsuite/driver/testglobals.py
=====================================
@@ -134,6 +134,8 @@ class TestConfig:
         # Do we have interpreter support?
         self.have_interp = False
 
+        # Do we even have processes?
+        self.have_process = True
         # Does the platform support loading of dynamic shared libraries? e.g.
         # some musl-based environments do not.
         self.supports_dynamic_libs = True


=====================================
testsuite/driver/testlib.py
=====================================
@@ -274,6 +274,9 @@ def req_smp( name, opts ):
     if not config.have_smp:
         opts.expect = 'fail'
 
+def req_process( name, opts ):
+    if not config.have_process:
+        opts.skip = True
 def ignore_stdout(name, opts):
     opts.ignore_stdout = True
 



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

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/cb149c64b0c0349671ba0a3363edb95455a25051
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/20231106/7e3caa8d/attachment-0001.html>


More information about the ghc-commits mailing list