Skip to content

Commit

Permalink
#538, add a test case
Browse files Browse the repository at this point in the history
  • Loading branch information
ndmitchell committed Oct 14, 2017
1 parent c7cec2b commit 6209201
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Test/Command.hs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ main = shakeTest_ test $ do
when (exit == ExitSuccess) $ error "== ExitSuccess"
when (t < 2 || t > 8) $ error $ "failed to timeout, took " ++ show t

-- #538, a bug, but disabled as #538 is broken
when False $ "timeout2" !> do
offset <- liftIO offsetTime
liftIO $ timeout 2 $ cmd_ helper "w20"
t <- liftIO offset
putNormal $ "Timed out in " ++ showDuration t
when (t < 2 || t > 8) $ error $ "failed to timeout, took " ++ show t

"env" !> do
-- use liftIO since it blows away PATH which makes lint-tracker stop working
Stdout out <- liftIO $ cmd (Env [("FOO","HELLO SHAKE")]) Shell helper "vFOO"
Expand Down

0 comments on commit 6209201

Please sign in to comment.