mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 01:44:37 +00:00
* Make 'echo' raise IOError when fwrite/fflush fail * Fix fwrite return value comparison * Add test for echo raising error and don't fail to release locks in echo * Fix exitcode expectation * Make 'echo' raise IOError on Windows if it fails * Add nimLegacyEchoNoRaise for prior no-IOError echo behavior * Use checkErrMaybe template
12 lines
147 B
Nim
12 lines
147 B
Nim
discard """
|
|
action: run
|
|
exitcode: 0
|
|
targets: "c cpp"
|
|
disabled: openbsd
|
|
"""
|
|
|
|
echo "foo1"
|
|
close stdout
|
|
doAssertRaises(IOError):
|
|
echo "foo"
|