We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1227c4 commit ae3f7e2Copy full SHA for ae3f7e2
test/main.hs
@@ -183,11 +183,11 @@ testInterruptWith = run "interrupt withCreateProcess" $ do
183
waitForProcess p
184
if isWindows
185
then case res of
186
- Right (ExitFailure _) -> return ()
187
- _ -> error $ "withCreateProcess didn't exit with error: " ++ show res
+ Right _ -> return ()
+ _ -> error $ "unexpected exception: " ++ show res
188
else case res of
189
Left UserInterrupt -> return ()
190
- _ -> error $ "withCreateProcess didn't throw UserInterrupt: " ++ show res
+ _ -> error $ "expected UserInterrupt, got " ++ show res
191
192
unless (null es) $
193
error $ "uncaught exceptions: " ++ show es
0 commit comments