on master help sign in
Print out messages during library testing
commitdc188030e5b8a0c26375a09f51dedcf3a05e221c authorMax New <maxsnew@gmail.com> dateMon 9 Jun 2014, 21:18 (12 years ago) parent0bc1f4b
1 file changed+4−2
tests/libraries/LibraryTest.hs+4−2
tests/libraries/LibraryTest.hs+4−2
@@ -43,7 +43,9 @@ main = do
4343runCmd :: String -> [String] -> IO ()
4444runCmd cmd args = do
4545 putStrLn (cmd ++ " " ++ unwords args)
46− (exitCode, _stdout, stderr) <- readProcessWithExitCode cmd args ""
46+ (exitCode, stdout, stderr) <- readProcessWithExitCode cmd args ""
47+ putStr stdout
48+ putStr stderr
4749 case exitCode of
4850 ExitSuccess -> return ()
49− ExitFailure _ -> error stderr
51+ ExitFailure _ -> exitWith exitCode