diff options
author | Andy Schwerin <schwerin@10gen.com> | 2013-03-14 10:56:02 -0400 |
---|---|---|
committer | Andy Schwerin <schwerin@10gen.com> | 2013-03-14 10:56:02 -0400 |
commit | cb7e10a27b58b860880d9fd38c3d1bd2000bbe83 (patch) | |
tree | 2e6d19e675f1f4e60e414964e640b11d6c779536 /src/mongo/base/parse_number_test.cpp | |
parent | 047778363178a9040f92ca14df8ae0114903d5cd (diff) | |
download | mongo-cb7e10a27b58b860880d9fd38c3d1bd2000bbe83.tar.gz |
SERVER-8936 Do not test parsing hexadecimal floating point on Solaris; not supported.
Diffstat (limited to 'src/mongo/base/parse_number_test.cpp')
-rw-r--r-- | src/mongo/base/parse_number_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/base/parse_number_test.cpp b/src/mongo/base/parse_number_test.cpp index 53d9ba70544..82c70bf6fb7 100644 --- a/src/mongo/base/parse_number_test.cpp +++ b/src/mongo/base/parse_number_test.cpp @@ -285,9 +285,9 @@ namespace { ASSERT_PARSES(double, "12e-8", 12e-8); ASSERT_PARSES(double, "-485.381e-8", -485.381e-8); -#ifndef _WIN32 +#if !(defined(_WIN32) || defined(__sunos)) // Parse hexadecimal representations of a double. Hex literals not supported by MSVC, and - // not parseable by the Windows SDK libc. + // not parseable by the Windows SDK libc or the Solaris libc in the mode we build. ASSERT_PARSES(double, "0xff", 0xff); ASSERT_PARSES(double, "-0xff", -0xff); |