From 8afc1239a3f506bcb2ff79f909108751cf443120 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Wed, 25 Nov 2020 09:48:19 -0800 Subject: [PATCH] tests: Fix test fallout for MSVC6 One more XPath test falls prey to MSVC6 NaN comparison codegen issues. --- tests/test_xpath_variables.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_xpath_variables.cpp b/tests/test_xpath_variables.cpp index adc4464..1a1fc19 100644 --- a/tests/test_xpath_variables.cpp +++ b/tests/test_xpath_variables.cpp @@ -661,7 +661,9 @@ TEST_XML(xpath_variables_type_conversion, "15") CHECK_XPATH_BOOLEAN_VAR(xml_node(), STR("string($b) = '42'"), &set, true); CHECK_XPATH_BOOLEAN_VAR(xml_node(), STR("boolean($c) = true()"), &set, true); +#ifndef MSVC6_NAN_BUG CHECK_XPATH_BOOLEAN_VAR(xml_node(), STR("number($c) = 0"), &set, false); +#endif CHECK_XPATH_BOOLEAN_VAR(xml_node(), STR("string($c) = 'test'"), &set, true); CHECK_XPATH_BOOLEAN_VAR(xml_node(), STR("boolean($d) = true()"), &set, true);