summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/file.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/file.cpp b/test/file.cpp
index f458f355..b80667ae 100644
--- a/test/file.cpp
+++ b/test/file.cpp
@@ -49,6 +49,11 @@ protected:
return TestFail;
}
+ if (File::exists("/dev")) {
+ cerr << "Directories should not be treated as files" << endl;
+ return TestFail;
+ }
+
/* Test unnamed file. */
File file;