summaryrefslogtreecommitdiff
path: root/tests/test_document.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_document.cpp')
-rw-r--r--tests/test_document.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_document.cpp b/tests/test_document.cpp
index b9095cf..2ea0f84 100644
--- a/tests/test_document.cpp
+++ b/tests/test_document.cpp
@@ -84,11 +84,15 @@ TEST(document_load_file_error)
CHECK(doc.load_file("filedoesnotexist").status == status_file_not_found);
+#ifdef __linux
+ CHECK(doc.load_file("/dev/null").status == status_io_error);
+#else
#ifndef __DMC__ // Digital Mars CRT does not like 'con' pseudo-file
CHECK(doc.load_file("con").status == status_io_error);
#endif
CHECK(doc.load_file("nul").status == status_io_error);
+#endif
test_runner::_memory_fail_threshold = 1;
CHECK(doc.load_file("tests/data/small.xml").status == status_out_of_memory);