[Boost-bugs] [Boost C++ Libraries] #5037: test_output fails on trivial "inf" and "nan" formatting differences

Subject: [Boost-bugs] [Boost C++ Libraries] #5037: test_output fails on trivial "inf" and "nan" formatting differences
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-01-04 16:25:35


#5037: test_output fails on trivial "inf" and "nan" formatting differences
----------------------------------------+-----------------------------------
 Reporter: Jim Bell <jim@…> | Owner: matthiasschabel
     Type: Bugs | Status: new
Milestone: Boost 1.46.0 | Component: units
  Version: Boost Development Trunk | Severity: Regression
 Keywords: |
----------------------------------------+-----------------------------------
 test_output fails on trivial, platform-specific output formatting
 differences. In the output below you see different forms of expected
 results: "1.#INF", "-1.#INF", "-nan", etc.

 Since (I think) C++ doesn't define these specifically, perhaps a regex
 should be used to capture all variants.

 [http://tinyurl.com/2fkt6zl Mingw-64 GCC 4.6, as of 1/4/2011]:
 {{{
 ../libs/units/test/test_output.cpp(322): error in
 "test_output_autoprefixed_quantity_name": check ss.str() == "inf meter"
 failed [1.#INF meter != inf meter]
 ../libs/units/test/test_output.cpp(322): error in
 "test_output_autoprefixed_quantity_name": check ss.str() == L"inf meter"
 failed
 ../libs/units/test/test_output.cpp(323): error in
 "test_output_autoprefixed_quantity_name": check ss.str() == "-inf meter"
 failed [-1.#INF meter != -inf meter]
 ../libs/units/test/test_output.cpp(323): error in
 "test_output_autoprefixed_quantity_name": check ss.str() == L"-inf meter"
 failed
 ../libs/units/test/test_output.cpp(324): error in
 "test_output_autoprefixed_quantity_name": check ss.str() == "nan meter"
 failed [1.#QNAN meter != nan meter]
 ../libs/units/test/test_output.cpp(324): error in
 "test_output_autoprefixed_quantity_name": check ss.str() == L"nan meter"
 failed
 ../libs/units/test/test_output.cpp(325): error in
 "test_output_autoprefixed_quantity_name": check ss.str() == "-nan meter"
 failed [-1.#IND meter != -nan meter]
 ../libs/units/test/test_output.cpp(325): error in
 "test_output_autoprefixed_quantity_name": check ss.str() == L"-nan meter"
 failed
 }}}

 ----

 [http://tinyurl.com/34hpsfj FreeBSD8 GCC 4.2.1, as of 1/4/2011]:
 {{{
 ../libs/units/test/test_output.cpp(325): error in
 "test_output_autoprefixed_quantity_name": check ss.str() == "-nan meter"
 failed [nan meter != -nan meter]
 ../libs/units/test/test_output.cpp(325): error in
 "test_output_autoprefixed_quantity_name": check ss.str() == L"-nan meter"
 failed
 }}}

 ----

 Other platform failures are similiar.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5037>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:05 UTC