summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorBung <crc32@qq.com>2022-08-30 00:09:14 +0800
committerGitHub <noreply@github.com>2022-08-29 18:09:14 +0200
commit04e4a5ec0e35fc7e1c346c2d002e8487b4b48cb5 (patch)
tree8e5bffa3e6412bdbbad2beb9f3dddef85a0861fc /tests
parentcc81866da1d045c6702e1c3814fa8ea3e15d53da (diff)
downloadNim-04e4a5ec0e35fc7e1c346c2d002e8487b4b48cb5.tar.gz
fix #19600 No error checking on fclose (#19836)
* fix #19600 No error checking on fclose

* add IOError to open
Diffstat (limited to 'tests')
-rw-r--r--tests/misc/t19600.nim9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/misc/t19600.nim b/tests/misc/t19600.nim
new file mode 100644
index 000000000..3708dac18
--- /dev/null
+++ b/tests/misc/t19600.nim
@@ -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")