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
ed49bfde
Commit
ed49bfde
authored
Dec 03, 2010
by
Simon Marlow
Browse files
add test for
#4811
parent
9d677eeb
Changes
2
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/concurrent/should_run/4811.hs
0 → 100644
View file @
ed49bfde
import
GHC.Conc
import
Control.Concurrent
import
Control.Monad
-- tests for a bug where throwTo targets a thread just created by
-- forkOnIO, which is still in the process of migrating to another CPU (#4811)
main
=
do
m
<-
newEmptyMVar
forkOnIO
0
$
do
replicateM_
1000
$
do
t
<-
forkOnIO
1
$
return
()
killThread
t
putMVar
m
()
takeMVar
m
testsuite/tests/ghc-regress/concurrent/should_run/all.T
View file @
ed49bfde
...
...
@@ -49,6 +49,7 @@ test('4262', [ skip, # skip for now, it doesn't give reliable results
compile_and_run
,
[''])
test
('
4813
',
normal
,
compile_and_run
,
['
-debug
'])
test
('
4811
',
normal
,
compile_and_run
,
[''])
# -----------------------------------------------------------------------------
# These tests we only do for a full run
...
...
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