[project @ 2001-10-30 16:17:34 by simonmar]
authorsimonmar <unknown>
Tue, 30 Oct 2001 16:17:34 +0000 (16:17 +0000)
committersimonmar <unknown>
Tue, 30 Oct 2001 16:17:34 +0000 (16:17 +0000)
Add deadlock-detection test.

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

diff --git a/ghc/tests/ghci/ghci010.script b/ghc/tests/ghci/ghci010.script
new file mode 100644 (file)
index 0000000..ab08202
--- /dev/null
@@ -0,0 +1,3 @@
+-- !!! check we can detect deadlock
+:set -package concurrent
+Concurrent.newEmptyMVar >>= Concurrent.takeMVar
diff --git a/ghc/tests/ghci/ghci010.stdout b/ghc/tests/ghci/ghci010.stdout
new file mode 100644 (file)
index 0000000..b0be06f
--- /dev/null
@@ -0,0 +1,14 @@
+   ___         ___ _
+  / _ \ /\  /\/ __(_)
+ / /_\// /_/ / /  | |      GHC Interactive, version 5.03, for Haskell 98.
+/ /_\\/ __  / /___| |      http://www.haskell.org/ghc/
+\____/\/ /_/\____/|_|      Type :? for help.
+
+Loading package std ... linking ... done.
+Prelude> -- !!! check we can detect deadlock
+Prelude> :set -package concurrent
+Loading package lang ... linking ... done.
+Loading package concurrent ... linking ... done.
+Prelude> Concurrent.newEmptyMVar >>= Concurrent.takeMVar
+Deadlocked.
+Prelude> Leaving GHCi.