Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
f454070b
Commit
f454070b
authored
Aug 20, 2010
by
Simon Marlow
Browse files
another attempt to make the test more robust
parent
42c675fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/concurrent/should_run/conc024.hs
View file @
f454070b
...
...
@@ -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
))
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment