diff options
| author | John MacFarlane <[email protected]> | 2022-01-21 17:28:02 -0800 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2022-01-21 17:28:02 -0800 |
| commit | 24fa3ffddb9bb97232fb72472659edc278891177 (patch) | |
| tree | e87e97f22b5d7f71f60ad206b000bfd9abe564cd /test/Tests/Command.hs | |
| parent | 9e0d146837c3bd759fd2b65002f3dfe07c96ff36 (diff) | |
Fix compiler warnings.
Diffstat (limited to 'test/Tests/Command.hs')
| -rw-r--r-- | test/Tests/Command.hs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/Tests/Command.hs b/test/Tests/Command.hs index 0fa06be8c..fcd5efc9a 100644 --- a/test/Tests/Command.hs +++ b/test/Tests/Command.hs @@ -43,7 +43,6 @@ import Data.List (isSuffixOf) import System.Directory import System.Exit import System.FilePath ((</>)) -import System.IO (hPutStr, stderr) import System.IO.Unsafe (unsafePerformIO) import System.Process import Test.Tasty @@ -65,10 +64,10 @@ execTest testExePath cmd inp = do let err = unlines . map ("2> " ++) . lines $ err' -- filter \r so the tests will work on Windows machines let out'' = filter (/= '\r') $ err ++ out' - let out' = out'' ++ case ec of + let out = out'' ++ case ec of ExitFailure !n -> "=> " ++ show n ++ "\n" ExitSuccess -> "" - return (ec, out') + return (ec, out) pandocToEmulate :: Bool -> String -> String pandocToEmulate True ('p':'a':'n':'d':'o':'c':cs) = |
