summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGHC GitLab CI <ghc-ci@gitlab-haskell.org>2020-09-18 17:01:09 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-09-20 20:30:57 -0400
commit93ab3e8d235610b2cb339a5bad9ad2848eab18d4 (patch)
tree24eeee785d4517072f66f0e2e27a0cfb4e4476b3
parentcaf6a5a30291d80660d6ff73efc35c04eaced789 (diff)
downloadhaskell-93ab3e8d235610b2cb339a5bad9ad2848eab18d4.tar.gz
testsuite: Mark tempfiles as broken on Win32 without WinIO
The old POSIX emulation appears to ignore the user-requested prefix.
-rw-r--r--libraries/base/tests/all.T5
1 files changed, 4 insertions, 1 deletions
diff --git a/libraries/base/tests/all.T b/libraries/base/tests/all.T
index 0a808fa42b..29146204f2 100644
--- a/libraries/base/tests/all.T
+++ b/libraries/base/tests/all.T
@@ -17,7 +17,10 @@ test('readFloat', exit_code(1), compile_and_run, [''])
test('enumDouble', normal, compile_and_run, [''])
test('enumRatio', normal, compile_and_run, [''])
test('enumNumeric', normal, compile_and_run, [''])
-test('tempfiles', normal, compile_and_run, [''])
+# N.B. the tempfile format is slightly different than this test expects on
+# Windows *except* if using WinIO. The `when` clause below can be removed
+# after WinIO becomes the default.
+test('tempfiles', when(opsys('mingw32'), only_ways(['winio'])), compile_and_run, [''])
test('fixed', normal, compile_and_run, [''])
test('quotOverflow', normal, compile_and_run, [''])
test('assert', exit_code(1), compile_and_run, ['-fno-ignore-asserts'])