summaryrefslogtreecommitdiff
path: root/testsuite/tests/ffi/should_run
diff options
context:
space:
mode:
authorEric Seidel <gridaphobe@gmail.com>2015-09-21 19:18:56 -0500
committerAustin Seipp <austin@well-typed.com>2015-09-21 19:24:47 -0500
commit0b852fcf74c65291aeb6357973ecb715735d6383 (patch)
treed92dddac04d543cb5811a4f689649ef846375f15 /testsuite/tests/ffi/should_run
parent83e23c1a4cce36de68c3c8323d27f24182b33f34 (diff)
downloadhaskell-0b852fcf74c65291aeb6357973ecb715735d6383.tar.gz
base: use Show for ErrorCall in uncaughtExceptionHandler
The default top-level exception handler now uses the `Show` instance for `ErrorCall` when printing exceptions, so it will actually print the out-of-band data (e.g. `CallStack`s) in compiled binaries, instead of just printing the error message. This also updates the hpc submodule to fix the test output. Reviewed By: austin, thomie Differential Revision: https://phabricator.haskell.org/D1217
Diffstat (limited to 'testsuite/tests/ffi/should_run')
-rw-r--r--testsuite/tests/ffi/should_run/ffi008.stderr2
-rw-r--r--testsuite/tests/ffi/should_run/fptrfail01.stderr2
2 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/tests/ffi/should_run/ffi008.stderr b/testsuite/tests/ffi/should_run/ffi008.stderr
index cc538ee68c..78605178a6 100644
--- a/testsuite/tests/ffi/should_run/ffi008.stderr
+++ b/testsuite/tests/ffi/should_run/ffi008.stderr
@@ -1 +1,3 @@
ffi008: this is an error
+CallStack:
+ error, called at ffi008.hs:12:12 in main:Main
diff --git a/testsuite/tests/ffi/should_run/fptrfail01.stderr b/testsuite/tests/ffi/should_run/fptrfail01.stderr
index db50b2e01b..5193181ea9 100644
--- a/testsuite/tests/ffi/should_run/fptrfail01.stderr
+++ b/testsuite/tests/ffi/should_run/fptrfail01.stderr
@@ -1 +1,3 @@
fptrfail01: GHC.ForeignPtr: attempt to mix Haskell and C finalizers in the same ForeignPtr
+CallStack:
+ error, called at libraries/base/GHC/ForeignPtr.hs:352:17 in base:GHC.ForeignPtr