summaryrefslogtreecommitdiff
path: root/tests/test_xpath.cpp
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-11-19 16:34:57 -0800
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-11-19 16:34:57 -0800
commit417048d8cb8eb7cf3f4391aacd915b654f98c18e (patch)
tree35a4a34a5ff887490261df66eb507e75a0395855 /tests/test_xpath.cpp
parent1a06d7d3de3d2f30eaf3d56b7b2d0fa3446d46d8 (diff)
tests: Fix tests on various compilers
Some compilers don't handle NaNs properly. Some compilers don't implement fmod in a IEEE-compatible way. Some compilers have exception handling codegen bugs (DMC...).
Diffstat (limited to 'tests/test_xpath.cpp')
-rw-r--r--tests/test_xpath.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_xpath.cpp b/tests/test_xpath.cpp
index e410882..f5b4c66 100644
--- a/tests/test_xpath.cpp
+++ b/tests/test_xpath.cpp
@@ -639,9 +639,11 @@ TEST(xpath_allocate_string_out_of_memory)
#else
try
{
+ #ifndef __DMC__ // DigitalMars exception handling crashes instead of catching the exception...
xpath_query q(query.c_str());
CHECK_FORCE_FAIL("Expected out of memory exception");
+ #endif
}
catch (const std::bad_alloc&)
{