Skip to content

Commit

Permalink
fix for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Dec 4, 2020
1 parent 57043e8 commit 41f552c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/exception/t13115.nim
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ else:
for opt in ["-d:nim_t13115_static", ""]:
let cmd = fmt"{nim} r -b:{b} -d:nim_t13115 {opt} --hints:off {file}"
let (outp, exitCode) = execCmdEx(cmd)
doAssert msg in outp, cmd & "\n" & msg
when defined windows:
# `\0` not preserved on windows
doAssert "` and works fine!" in outp, cmd & "\n" & msg
else:
doAssert msg in outp, cmd & "\n" & msg
doAssert exitCode == 1
main()

0 comments on commit 41f552c

Please sign in to comment.