Skip to content

Commit ae3f7e2

Browse files
committed
second windows test fix
1 parent b1227c4 commit ae3f7e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/main.hs

+3-3
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,11 @@ testInterruptWith = run "interrupt withCreateProcess" $ do
183183
waitForProcess p
184184
if isWindows
185185
then case res of
186-
Right (ExitFailure _) -> return ()
187-
_ -> error $ "withCreateProcess didn't exit with error: " ++ show res
186+
Right _ -> return ()
187+
_ -> error $ "unexpected exception: " ++ show res
188188
else case res of
189189
Left UserInterrupt -> return ()
190-
_ -> error $ "withCreateProcess didn't throw UserInterrupt: " ++ show res
190+
_ -> error $ "expected UserInterrupt, got " ++ show res
191191

192192
unless (null es) $
193193
error $ "uncaught exceptions: " ++ show es

0 commit comments

Comments
 (0)