aboutsummaryrefslogtreecommitdiff
path: root/tests/files.cpp
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-06-02 20:56:07 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-06-02 20:56:07 -0700
commite94f8f736b347d23d714f3b07cd44629f5b1ab93 (patch)
tree17e4b3c22a8589ad5fa05794c46b57346f859530 /tests/files.cpp
parent79e6d4c8d0fbd7068b41e4ad1b149d574237c756 (diff)
create /dev/null; issue #1226
Diffstat (limited to 'tests/files.cpp')
-rw-r--r--tests/files.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/files.cpp b/tests/files.cpp
index 04baa151..176cdb62 100644
--- a/tests/files.cpp
+++ b/tests/files.cpp
@@ -56,6 +56,9 @@ int main()
fwrite(data, 1, 5, outf);
fclose(outf);
+ FILE *devNull = fopen("/dev/null", "rb");
+ assert(devNull);
+
char data2[10];
FILE *inf = fopen("go.out", "rb");
int num = fread(data2, 1, 10, inf);