Skip to content

Commit 9f46748

Browse files
committed
TestMathLib: limit libc++ workaround in toDoubleNumber() to MacOS [skip ci]
1 parent 4697def commit 9f46748

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/testmathlib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ class TestMathLib : public TestFixture {
657657

658658
ASSERT_THROW_INTERNAL_EQUALS(MathLib::toDoubleNumber("invalid"), INTERNAL, "Internal Error. MathLib::toDoubleNumber: conversion failed: invalid");
659659

660-
#ifdef _LIBCPP_VERSION
660+
#if defined(_LIBCPP_VERSION) && (defined(__APPLE__) && defined(__MACH__))
661661
ASSERT_THROW_INTERNAL_EQUALS(MathLib::toDoubleNumber("1invalid"), INTERNAL, "Internal Error. MathLib::toDoubleNumber: conversion failed: 1invalid");
662662
ASSERT_THROW_INTERNAL_EQUALS(MathLib::toDoubleNumber("1.1invalid"), INTERNAL, "Internal Error. MathLib::toDoubleNumber: conversion failed: 1.1invalid");
663663
#else

0 commit comments

Comments
 (0)