[project @ 2001-08-21 14:44:22 by simonmar]
authorsimonmar <unknown>
Tue, 21 Aug 2001 14:44:22 +0000 (14:44 +0000)
committersimonmar <unknown>
Tue, 21 Aug 2001 14:44:22 +0000 (14:44 +0000)
Test that System.exitWith doesn't kill the interpreter

ghc/tests/ghci/ghci007.script [new file with mode: 0644]
ghc/tests/ghci/ghci007.stdout [new file with mode: 0644]

diff --git a/ghc/tests/ghci/ghci007.script b/ghc/tests/ghci/ghci007.script
new file mode 100644 (file)
index 0000000..31ece83
--- /dev/null
@@ -0,0 +1,2 @@
+-- bug: shouldn't kill the whole system
+System.exitFailure
diff --git a/ghc/tests/ghci/ghci007.stdout b/ghc/tests/ghci/ghci007.stdout
new file mode 100644 (file)
index 0000000..90b3d98
--- /dev/null
@@ -0,0 +1,11 @@
+   ___         ___ _
+  / _ \ /\  /\/ __(_)
+ / /_\// /_/ / /  | |      GHC Interactive, version 5.01, for Haskell 98.
+/ /_\\/ __  / /___| |      http://www.haskell.org/ghc/
+\____/\/ /_/\____/|_|      Type :? for help.
+
+Loading package std ... linking ... done.
+Prelude> -- bug: shouldn't kill the whole system
+Prelude> System.exitFailure
+*** Exception: exit: ExitFailure 1
+Prelude> Leaving GHCi.