fix #19600 No error checking on fclose (#19836)

* fix #19600 No error checking on fclose

* add IOError to open
This commit is contained in:
Bung
2022-08-30 00:09:14 +08:00
committed by GitHub
parent cc81866da1
commit 04e4a5ec0e
2 changed files with 13 additions and 2 deletions

9
tests/misc/t19600.nim Normal file
View File

@@ -0,0 +1,9 @@
discard """
targets: "c cpp"
disabled: "win"
disabled: "osx"
exitcode: 1
outputsub: "No space left on device"
"""
writeFile("/dev/full", "hello\n")