0
0
mirror of https://github.com/zeux/pugixml.git synced 2024-12-27 05:11:09 +08:00

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.
This commit is contained in:
Arseny Kapoulkine 2017-12-22 11:03:27 -08:00
parent cb7b78b039
commit a55f575a03

View File

@ -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;