Skip to content

Commit 7802d95

Browse files
committed
Print errors from integration tests
1 parent b13f159 commit 7802d95

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

unison-cli-integration/integration-tests/IntegrationTests/ArgumentParsing.hs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
module IntegrationTests.ArgumentParsing where
44

5+
import Control.Monad (when)
56
import Data.List (intercalate)
67
import Data.Time (diffUTCTime, getCurrentTime)
78
import EasyTest
@@ -71,10 +72,12 @@ test = do
7172
expectExitCode :: ExitCode -> FilePath -> [String] -> String -> Test ()
7273
expectExitCode expected cmd args stdin = scope (intercalate " " (cmd : args)) do
7374
start <- io $ getCurrentTime
74-
(code, _, _) <- io $ readProcessWithExitCode cmd args stdin
75+
(code, _, stdErr) <- io $ readProcessWithExitCode cmd args stdin
7576
end <- io $ getCurrentTime
7677
let diff = diffUTCTime end start
7778
note $ printf "\n[Time: %s sec]" $ show diff
79+
when (code /= expected) do
80+
note ("stderr:\n" <> stdErr)
7881
expectEqual code expected
7982

8083
defaultArgs :: [String]

unison-runtime/src/Unison/Runtime/ANF/Serialize.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ getCont v =
944944
refs <- getList getReference
945945
vals <- getMap getReference (getValue v)
946946
cont <- getCont v
947-
pure $ Mark (ua + ba) refs vals cont
947+
pure $ Mark ba refs vals cont
948948
| otherwise ->
949949
Mark
950950
<$> getWord64be

0 commit comments

Comments
 (0)