File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
unison-cli-integration/integration-tests/IntegrationTests
unison-runtime/src/Unison/Runtime/ANF Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
module IntegrationTests.ArgumentParsing where
4
4
5
+ import Control.Monad (when )
5
6
import Data.List (intercalate )
6
7
import Data.Time (diffUTCTime , getCurrentTime )
7
8
import EasyTest
@@ -71,10 +72,12 @@ test = do
71
72
expectExitCode :: ExitCode -> FilePath -> [String ] -> String -> Test ()
72
73
expectExitCode expected cmd args stdin = scope (intercalate " " (cmd : args)) do
73
74
start <- io $ getCurrentTime
74
- (code, _, _ ) <- io $ readProcessWithExitCode cmd args stdin
75
+ (code, _, stdErr ) <- io $ readProcessWithExitCode cmd args stdin
75
76
end <- io $ getCurrentTime
76
77
let diff = diffUTCTime end start
77
78
note $ printf " \n [Time: %s sec]" $ show diff
79
+ when (code /= expected) do
80
+ note (" stderr:\n " <> stdErr)
78
81
expectEqual code expected
79
82
80
83
defaultArgs :: [String ]
Original file line number Diff line number Diff line change @@ -944,7 +944,7 @@ getCont v =
944
944
refs <- getList getReference
945
945
vals <- getMap getReference (getValue v)
946
946
cont <- getCont v
947
- pure $ Mark (ua + ba) refs vals cont
947
+ pure $ Mark ba refs vals cont
948
948
| otherwise ->
949
949
Mark
950
950
<$> getWord64be
You can’t perform that action at this time.
0 commit comments