[Git][ghc/ghc][master] Pin used way for test cloneMyStack (#21977)

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Mon Oct 24 04:13:06 UTC 2022



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
f0a90c11 by Sven Tennie at 2022-10-24T00:12:51-04:00
Pin used way for test cloneMyStack (#21977)

cloneMyStack checks the order of closures on the cloned stack. This may
change for different ways. Thus we limit this test to one way (normal).

- - - - -


1 changed file:

- testsuite/tests/rts/all.T


Changes:

=====================================
testsuite/tests/rts/all.T
=====================================
@@ -482,7 +482,11 @@ test('T19381',
 test('T20199', [ grep_errmsg('Hello') ]
       , makefile_test, [])
 
-test('cloneMyStack', [extra_files(['cloneStackLib.c'])], compile_and_run, ['cloneStackLib.c'])
+# We need to be precise about the used way here as different ways may lead to
+# different closures (and their orders) on the stack (which is checked by this
+# test).
+test('cloneMyStack', [only_ways(['normal']), extra_files(['cloneStackLib.c'])],
+     compile_and_run, ['cloneStackLib.c'])
 test('cloneMyStack2', ignore_stdout, compile_and_run, [''])
 test('cloneMyStack_retBigStackFrame', [extra_files(['cloneStackLib.c']), ignore_stdout], compile_and_run, ['cloneStackLib.c'])
 test('cloneThreadStack', [only_ways(['threaded1']), extra_ways(['threaded1']), extra_files(['cloneStackLib.c'])], compile_and_run, ['cloneStackLib.c -threaded'])



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

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/f0a90c117ac598504ccb6514de77355de7415c86
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/20221024/97c5c1e1/attachment.html>


More information about the ghc-commits mailing list