Skip to content

Commit

Permalink
add test for #5314
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmar authored and igfoo committed Jul 20, 2011
1 parent dfdc39b commit 470e0ea
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/ghc-regress/profiling/should_run/5314.hs
@@ -0,0 +1,10 @@
import Control.Concurrent
import Control.Monad (forever)

main = do
empty <- newEmptyMVar
exit <- newEmptyMVar
_ <- forkIO $ threadDelay 200000 >> putMVar exit ()
_ <- forkIO $ takeMVar empty >> return ()
_ <- forkIO $ print (sum [1..10000])
takeMVar exit
1 change: 1 addition & 0 deletions tests/ghc-regress/profiling/should_run/5314.stdout
@@ -0,0 +1 @@
50005000
7 changes: 7 additions & 0 deletions tests/ghc-regress/profiling/should_run/all.T
Expand Up @@ -25,3 +25,10 @@ test('T3001-2',
test('scc001', [expect_broken(4414), req_profiling],
run_command, ['$MAKE -s --no-print-directory scc001'])


test('5314',
composes([only_ways(prof_ways + extra_prof_ways),
extra_ways(extra_prof_ways),
req_profiling]),
compile_and_run,
[''])

0 comments on commit 470e0ea

Please sign in to comment.