summaryrefslogtreecommitdiff
path: root/tests/test_document.cpp
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-11-04 09:58:04 +0100
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-11-04 09:58:04 +0100
commitb2a0ae13b61ba8cc9834f01851e2a643bae534fe (patch)
tree5f9b01ae02b280115f0733fd2d78a895edce5c35 /tests/test_document.cpp
parent650c67a663515a3b76144a7dc16b26df0a8f2372 (diff)
parent3950ee0433aaed3c35eaee7548bae5b00ee22a80 (diff)
Merge branch 'master' into compact
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 2cc39a6..2774a07 100644
--- a/tests/test_document.cpp
+++ b/tests/test_document.cpp
@@ -301,6 +301,10 @@ TEST(document_load_file_error)
CHECK(doc.load_file("filedoesnotexist").status == status_file_not_found);
+#ifndef _WIN32
+ CHECK(doc.load_file("/dev/tty").status == status_io_error);
+#endif
+
test_runner::_memory_fail_threshold = 1;
CHECK(doc.load_file("tests/data/small.xml").status == status_out_of_memory);
}