Commit f454070b authored by Simon Marlow's avatar Simon Marlow

another attempt to make the test more robust

parent 42c675fa
......@@ -3,6 +3,7 @@ module Main where
import Control.Exception
import Control.Concurrent
import Prelude hiding (catch)
import System.Mem
-- illustrates the BlockOnDeadMVar exception
......@@ -10,5 +11,5 @@ main = do
id <- myThreadId
forkIO (catch (do m <- newEmptyMVar; takeMVar m)
(\e -> throwTo id (e::SomeException)))
catch (threadDelay 1000000)
catch (do yield; performGC; threadDelay 1000000)
(\e -> print (e::SomeException))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment