diff options
author | Ben Gamari <ben@smart-cactus.org> | 2019-06-07 16:16:27 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-06-21 13:32:34 -0400 |
commit | 2eedb120a6fae214ca5b55658939a359bc55d19a (patch) | |
tree | cce0df58a911cdeeb0e048dd8f9857cb19115064 /testsuite/tests/safeHaskell | |
parent | aa5164313aa86941bf15722936824dfbf556a911 (diff) | |
download | haskell-2eedb120a6fae214ca5b55658939a359bc55d19a.tar.gz |
testsuite: Add stderr output for UnsafeInfered02 on Windows
This test uses TemplateHaskell causing GHC to build dynamic objects on
platforms where dynamic linking is available. However, Windows doesn't support
dynamic linking. Consequently the test would fail on Windows with:
```patch
--- safeHaskell/safeInfered/UnsafeInfered02.run/UnsafeInfered02.stderr.normalised 2019-06-04 15:10:10.521594200 +0000
+++ safeHaskell/safeInfered/UnsafeInfered02.run/UnsafeInfered02.comp.stderr.normalised 2019-06-04 15:10:10.523546200 +0000
@@ -1,5 +1,5 @@
-[1 of 2] Compiling UnsafeInfered02_A ( UnsafeInfered02_A.hs, UnsafeInfered02_A.o, UnsafeInfered02_A.dyn_o )
-[2 of 2] Compiling UnsafeInfered02 ( UnsafeInfered02.hs, UnsafeInfered02.o, UnsafeInfered02.dyn_o )
+[1 of 2] Compiling UnsafeInfered02_A ( UnsafeInfered02_A.hs, UnsafeInfered02_A.o )
+[2 of 2] Compiling UnsafeInfered02 ( UnsafeInfered02.hs, UnsafeInfered02.o )
UnsafeInfered02.hs:4:1:
UnsafeInfered02_A: Can't be safely imported!
```
The other approach I considered for this issue is to pass `-v0` to GHC.
However, I felt we should probably do this consistently for all of the tests in
this directory and this would take more time than I currently have.
Diffstat (limited to 'testsuite/tests/safeHaskell')
-rw-r--r-- | testsuite/tests/safeHaskell/safeInfered/UnsafeInfered02.stderr-mingw32 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/safeHaskell/safeInfered/UnsafeInfered02.stderr-mingw32 b/testsuite/tests/safeHaskell/safeInfered/UnsafeInfered02.stderr-mingw32 new file mode 100644 index 0000000000..e3901290bb --- /dev/null +++ b/testsuite/tests/safeHaskell/safeInfered/UnsafeInfered02.stderr-mingw32 @@ -0,0 +1,7 @@ +[1 of 2] Compiling UnsafeInfered02_A ( UnsafeInfered02_A.hs, UnsafeInfered02_A.o ) +[2 of 2] Compiling UnsafeInfered02 ( UnsafeInfered02.hs, UnsafeInfered02.o ) + +UnsafeInfered02.hs:4:1: error: + UnsafeInfered02_A: Can't be safely imported! + The module itself isn't safe. + |