Skip to content

Commit

Permalink
Print errors from integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisPenner committed Oct 11, 2024
1 parent b13f159 commit 7802d95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

module IntegrationTests.ArgumentParsing where

import Control.Monad (when)
import Data.List (intercalate)
import Data.Time (diffUTCTime, getCurrentTime)
import EasyTest
Expand Down Expand Up @@ -71,10 +72,12 @@ test = do
expectExitCode :: ExitCode -> FilePath -> [String] -> String -> Test ()
expectExitCode expected cmd args stdin = scope (intercalate " " (cmd : args)) do
start <- io $ getCurrentTime
(code, _, _) <- io $ readProcessWithExitCode cmd args stdin
(code, _, stdErr) <- io $ readProcessWithExitCode cmd args stdin
end <- io $ getCurrentTime
let diff = diffUTCTime end start
note $ printf "\n[Time: %s sec]" $ show diff
when (code /= expected) do
note ("stderr:\n" <> stdErr)
expectEqual code expected

defaultArgs :: [String]
Expand Down
2 changes: 1 addition & 1 deletion unison-runtime/src/Unison/Runtime/ANF/Serialize.hs
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ getCont v =
refs <- getList getReference
vals <- getMap getReference (getValue v)
cont <- getCont v
pure $ Mark (ua + ba) refs vals cont
pure $ Mark ba refs vals cont
| otherwise ->
Mark
<$> getWord64be
Expand Down

0 comments on commit 7802d95

Please sign in to comment.