summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2017-12-22 11:03:27 -0800
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2017-12-22 11:30:15 -0800
commita55f575a03537a3d7a2d76bf208016df34968d3f (patch)
tree47f6dbb2d737ceadabc8f001a6ca55f2cc5ba9b6
parentcb7b78b0394c8cd88fa0e212a63c1a497272a088 (diff)
tests: Fix OSX test failure
Apparently at some point OSX behavior when reading /dev/tty switched from "can't open the file" to "the file can be opened and 0 bytes can be read from it" which generates a wrong error and doesn't exercise the code path we care about.
-rw-r--r--tests/test_document.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_document.cpp b/tests/test_document.cpp
index 08d836c..a909007 100644
--- a/tests/test_document.cpp
+++ b/tests/test_document.cpp
@@ -598,7 +598,9 @@ TEST(document_load_file_special_folder)
// status_out_of_memory is somewhat counter-intuitive but on Linux ftell returns LONG_MAX for directories
CHECK(result.status == status_file_not_found || result.status == status_io_error || result.status == status_out_of_memory);
}
+#endif
+#if defined(__linux__)
TEST(document_load_file_special_device)
{
xml_document doc;