[Git][ghc/ghc][wip/slowtest] testsuite: Fix omit_ways usage for stack003 and integerGmpInternals
Ben Gamari
gitlab at gitlab.haskell.org
Sun Apr 7 01:52:50 UTC 2019
Ben Gamari pushed to branch wip/slowtest at Glasgow Haskell Compiler / GHC
Commits:
7e415170 by Ben Gamari at 2019-04-07T01:52:38Z
testsuite: Fix omit_ways usage for stack003 and integerGmpInternals
- - - - -
3 changed files:
- testsuite/driver/testlib.py
- testsuite/tests/lib/integer/all.T
- testsuite/tests/rts/all.T
Changes:
=====================================
testsuite/driver/testlib.py
=====================================
@@ -275,6 +275,7 @@ def omit_ways( ways ):
return lambda name, opts, w=ways: _omit_ways( name, opts, w )
def _omit_ways( name, opts, ways ):
+ assert ways.__class__ is list
opts.omit_ways += ways
# -----
=====================================
testsuite/tests/lib/integer/all.T
=====================================
@@ -1,7 +1,7 @@
test('integerBits', normal, compile_and_run, [''])
test('integerConversions', normal, compile_and_run, [''])
# skip ghci as it doesn't support unboxed tuples
-test('integerGmpInternals', [reqlib('integer-gmp'), omit_ways('ghci')], compile_and_run, [''])
+test('integerGmpInternals', [reqlib('integer-gmp'), omit_ways(['ghci'])], compile_and_run, [''])
test('plusMinusInteger', [omit_ways('ghci')], compile_and_run, [''])
test('integerConstantFolding', normal, makefile_test, ['integerConstantFolding'])
test('fromToInteger', [], makefile_test, ['fromToInteger'])
=====================================
testsuite/tests/rts/all.T
=====================================
@@ -93,7 +93,7 @@ test('stack002', [extra_files(['stack001.hs']),
# run this test with very small stack chunks to exercise the stack
# overflow/underflow machinery.
-test('stack003', [ omit_ways('ghci'), # uses unboxed tuples
+test('stack003', [ omit_ways(['ghci']), # uses unboxed tuples
extra_run_opts('500000 +RTS -kc1k -kb100 -K96m -RTS') ],
compile_and_run, [''])
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/7e415170a012bb3f9dc8de849396598d1769d881
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/7e415170a012bb3f9dc8de849396598d1769d881
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/20190406/e695b3fa/attachment-0001.html>
More information about the ghc-commits
mailing list