summaryrefslogtreecommitdiff
path: root/testsuite/tests
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2012-01-17 16:02:59 +0000
committerSimon Peyton Jones <simonpj@microsoft.com>2012-01-17 16:02:59 +0000
commit209fc3ec9bf6c5595438af4e5db1ff7ae9e928a1 (patch)
tree57b9c668b7be60b5bbf9ad42967b935b492af1cf /testsuite/tests
parentc752b33cbcc53a393a523587fba062f20a2700f8 (diff)
parent90dc2234c18772c47e9f97148211d097ab3161a9 (diff)
downloadhaskell-209fc3ec9bf6c5595438af4e5db1ff7ae9e928a1.tar.gz
Merge branch 'master' of http://darcs.haskell.org/testsuite
Diffstat (limited to 'testsuite/tests')
-rw-r--r--testsuite/tests/concurrent/should_run/all.T35
-rw-r--r--testsuite/tests/numeric/should_run/all.T7
2 files changed, 29 insertions, 13 deletions
diff --git a/testsuite/tests/concurrent/should_run/all.T b/testsuite/tests/concurrent/should_run/all.T
index 3e42065789..5c5a914022 100644
--- a/testsuite/tests/concurrent/should_run/all.T
+++ b/testsuite/tests/concurrent/should_run/all.T
@@ -27,7 +27,7 @@ test('2910a', normal, compile_and_run, [''])
test('3279', normal, compile_and_run, [''])
# This test takes a long time with the default context switch interval
-test('3429', extra_run_opts('+RTS -i0.001 -RTS'), compile_and_run, [''])
+test('3429', extra_run_opts('+RTS -C0.001 -RTS'), compile_and_run, [''])
# without -O, goes into an infinite loop
# GHCi cannot deterct the infinite loop, because the thread is always reachable
@@ -152,18 +152,29 @@ test('conc034', compose(only_compiler_types(['ghc']),
test('conc035', only_compiler_types(['ghc']), compile_and_run, [''])
-# Omit for GHCi: firstly GHCi doesn't have unsafe FFI calls, and secondly
-# the main thread cannot receive the deadlock exception because it can be
-# woken up by ^C.
-# Omit for threaded2: this test is really bogus and fails to do anything
-# sensible for more than one CPU.
-test('conc036', compose(skip_if_fast,
- compose(omit_ways(['ghci','threaded2']),
- only_compiler_types(['ghc']))), compile_and_run, [''])
+# conc036: now skipped entirely. This test attempts to check that
+# unsafe foreign calls block other threads, but doing that reliably is
+# probably impossible. The last straw was when it started failing on
+# Windows around 7.4.x.
+#
+# OLD comments about hacks we tried to make it work:
+# Omit for GHCi: firstly GHCi doesn't have unsafe FFI calls, and secondly
+# the main thread cannot receive the deadlock exception because it can be
+# woken up by ^C.
+# Omit for threaded2: this test is really bogus and fails to do anything
+# sensible for more than one CPU.
+#
+test('conc036', skip, compile_and_run, [''])
+
+
# Interrupting foreign calls only makes sense if we are threaded
-test('foreignInterruptible', composes([skip_if_fast,
- only_threaded_ways,
- only_compiler_types(['ghc'])]), compile_and_run, [''])
+test('foreignInterruptible', [skip_if_fast,
+ if_os('mingw32',expect_fail),
+ # I don't think we support interrupting Sleep()
+ # on Windows. --SDM
+ only_threaded_ways,
+ only_compiler_types(['ghc'])],
+ compile_and_run, [''])
test('conc037', only_ways(['threaded1','threaded2']), compile_and_run, [''])
test('conc038', only_ways(['threaded1','threaded2']), compile_and_run, [''])
diff --git a/testsuite/tests/numeric/should_run/all.T b/testsuite/tests/numeric/should_run/all.T
index 0916af1d7d..af46ec12e0 100644
--- a/testsuite/tests/numeric/should_run/all.T
+++ b/testsuite/tests/numeric/should_run/all.T
@@ -35,7 +35,12 @@ test('arith015', normal, compile_and_run, [''])
test('numrun009', normal, compile_and_run, [''])
test('numrun010', normal, compile_and_run, [''])
test('numrun011', normal, compile_and_run, [''])
-test('numrun012', normal, compile_and_run, [''])
+test('numrun012',
+ if_os('mingw32',expect_fail_for('ghci')),
+ # on Windows, GHCi says that "logBase 2 (2^31)" is "31.0", but
+ # other platforms (and compiled on Windows) reports 31.000000000000004
+ # I have no idea where the discrepancy comes from. --SDM
+ compile_and_run, [''])
test('numrun013', normal, compile_and_run, [''])
test('numrun014', normal, compile_and_run, [''])
test('arith016', compose(normal,only_compiler_types(['ghc'])), compile_and_run, [''])