diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-06-02 20:56:07 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-06-02 20:56:07 -0700 |
commit | e94f8f736b347d23d714f3b07cd44629f5b1ab93 (patch) | |
tree | 17e4b3c22a8589ad5fa05794c46b57346f859530 /tests/files.cpp | |
parent | 79e6d4c8d0fbd7068b41e4ad1b149d574237c756 (diff) |
create /dev/null; issue #1226
Diffstat (limited to 'tests/files.cpp')
-rw-r--r-- | tests/files.cpp | 3 |
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); |