From f5f6ddf219c9adbbb369cd4def3d559d5601ea03 Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Mon, 20 Feb 2017 13:28:31 -0700 Subject: [PATCH] Disable tests on MSVC for broken literal handling --- unittests/integer_literal_test.cpp | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/unittests/integer_literal_test.cpp b/unittests/integer_literal_test.cpp index 9ac88081..114883c4 100644 --- a/unittests/integer_literal_test.cpp +++ b/unittests/integer_literal_test.cpp @@ -192,12 +192,18 @@ int main() && TEST_LITERAL(255) && TEST_LITERAL(65535) && TEST_LITERAL(16777215) - && TEST_LITERAL(4294967295) +#ifndef CHAISCRIPT_MSVC + // bug in cl.exe causes this to be incorrectly parsed as an unsigned + && TEST_LITERAL(4294967295) +#endif && TEST_LITERAL_SIGNED(-255) && TEST_LITERAL_SIGNED(-65535) && TEST_LITERAL_SIGNED(-16777215) - && TEST_LITERAL_SIGNED(-4294967295) +#ifndef CHAISCRIPT_MSVC + // bug in cl.exe causes this to be incorrectly parsed as an unsigned + && TEST_LITERAL_SIGNED(-4294967295) +#endif && TEST_LITERAL(255u) && TEST_LITERAL(65535u) @@ -212,12 +218,18 @@ int main() && TEST_LITERAL(255l) && TEST_LITERAL(65535l) && TEST_LITERAL(16777215l) - && TEST_LITERAL(4294967295l) +#ifndef CHAISCRIPT_MSVC + // bug in cl.exe causes this to be incorrectly parsed as an unsigned + && TEST_LITERAL(4294967295l) +#endif && TEST_LITERAL_SIGNED(-255l) && TEST_LITERAL_SIGNED(-65535l) && TEST_LITERAL_SIGNED(-16777215l) - && TEST_LITERAL_SIGNED(-4294967295l) +#ifndef CHAISCRIPT_MSVC + // bug in cl.exe causes this to be incorrectly parsed as an unsigned + && TEST_LITERAL_SIGNED(-4294967295l) +#endif && TEST_LITERAL(255ul) && TEST_LITERAL(65535ul)