Skip to content
This repository was archived by the owner on Nov 11, 2024. It is now read-only.

Commit bd00ad5

Browse files
author
Alex Rønne Petersen
committed
Update tests to include exit codes.
1 parent 52a8f83 commit bd00ad5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

chk/check.fs

+3-3
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ testLogic <- fun p ->
178178
assertRecv p "^ throw new Exception\(\);$"
179179
assertRecv p "^System.Exception: Exception of type 'System.Exception' was thrown.$"
180180
send p "kill"
181-
assertRecv p "^Inferior process '\d*' \('throw.exe'\) exited$"
181+
assertRecv p "^Inferior process '\d*' \('throw.exe'\) exited with code '0'$"
182182
send p "quit"
183183
runTest ()
184184

@@ -192,7 +192,7 @@ testLogic <- fun p ->
192192
assertRecv p "^#0 \[0x[A-Fa-f0-9]{8}\] Print.main at .*/chk/fs/print.fs:3$"
193193
assertRecv p "^ printfn \"Hello World\"$"
194194
send p "kill"
195-
assertRecv p "^Inferior process '\d*' \('print.exe'\) exited$"
195+
assertRecv p "^Inferior process '\d*' \('print.exe'\) exited with code '0'$"
196196
send p "quit"
197197
runTest ()
198198

@@ -206,7 +206,7 @@ testLogic <- fun p ->
206206
assertRecv p "^#0 \[0x[A-Fa-f0-9]{8}\] Program.Main at .*/chk/cs/cwl.cs:6$"
207207
assertRecv p "^ {$"
208208
send p "kill"
209-
assertRecv p "^Inferior process '\d*' \('cwl.exe'\) exited$"
209+
assertRecv p "^Inferior process '\d*' \('cwl.exe'\) exited with code '0'$"
210210
send p "quit"
211211
runTest ()
212212

0 commit comments

Comments
 (0)