From a55f575a03537a3d7a2d76bf208016df34968d3f Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Fri, 22 Dec 2017 11:03:27 -0800 Subject: 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. --- tests/test_document.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') 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; -- cgit v1.2.3