Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
7111d559
Commit
7111d559
authored
Jan 05, 2006
by
simonmar
Browse files
[project @ 2006-01-05 09:16:28 by simonmar]
Add test for "scavenge_stack" bug fixed in rev 1.16 of Exception.cmm
parent
533a3790
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/concurrent/should_run/all.T
View file @
7111d559
...
...
@@ -116,3 +116,4 @@ test('conc052', normal, compile_and_run, ['-package stm'])
test
('
conc053
',
only_ways
(['
threaded
','
smp
']),
compile_and_run
,
['
-package stm
'])
test
('
conc054
',
normal
,
compile_and_run
,
['
-package stm
'])
test
('
conc055
',
exit_code
(
1
),
compile_and_run
,
['
-package stm
'])
test
('
conc056
',
only_ways
(['
threaded
']),
compile_and_run
,
['
-package stm -package network
'])
testsuite/tests/ghc-regress/concurrent/should_run/conc056.hs
0 → 100644
View file @
7111d559
-- Exposed a bug in 6.4.1, fixed in rev. 1.16 of ghc/rts/Exception.cmm
import
Network
import
Control.Concurrent
import
Control.Concurrent.STM
import
Control.Monad
import
Control.Exception
inc
::
TVar
Int
->
STM
()
inc
tv
=
do
v
<-
readTVar
tv
writeTVar
tv
(
v
+
1
)
bad
::
MVar
()
->
IO
()
bad
m
=
do
{
connectTo
"0.0.0.0"
(
Service
"http"
);
return
()
}
`
finally
`
putMVar
m
()
main
::
IO
()
main
=
do
tv
<-
atomically
(
newTVar
0
)
m
<-
newEmptyMVar
forkOS
(
sequence_
$
repeat
$
atomically
(
inc
tv
))
forkOS
(
bad
m
)
takeMVar
m
testsuite/tests/ghc-regress/concurrent/should_run/conc056.stderr
0 → 100644
View file @
7111d559
conc056: connect: does not exist (Connection refused)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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