Update for fixed #6441 (unable to compile lexical_cast with BOOST_NO_STD_LOCALE defined)

Now test must compile under VC, removed some warnings.

[SVN r77117]
This commit is contained in:
Antony Polukhin
2012-02-25 17:32:26 +00:00
parent 25d880f5eb
commit 0dded6d3a7
2 changed files with 2 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ test-suite conversion
[ run lexical_cast_pointers_test.cpp ../../test/build//boost_unit_test_framework/<link>static ] [ run lexical_cast_pointers_test.cpp ../../test/build//boost_unit_test_framework/<link>static ]
[ compile lexical_cast_typedefed_wchar_test.cpp : <toolset>msvc:<nowchar>on ] [ compile lexical_cast_typedefed_wchar_test.cpp : <toolset>msvc:<nowchar>on ]
[ run lexical_cast_typedefed_wchar_test_runtime.cpp ../../test/build//boost_unit_test_framework/<link>static : : : <toolset>msvc:<nowchar>on ] [ run lexical_cast_typedefed_wchar_test_runtime.cpp ../../test/build//boost_unit_test_framework/<link>static : : : <toolset>msvc:<nowchar>on ]
[ run lexical_cast_no_locale_test.cpp ../../test/build//boost_unit_test_framework/<link>static : : : <define>BOOST_NO_STD_LOCALE ] [ run lexical_cast_no_locale_test.cpp ../../test/build//boost_unit_test_framework/<link>static : : : <define>BOOST_NO_STD_LOCALE <define>BOOST_LEXICAL_CAST_ASSUME_C_LOCALE ]
[ run lexical_cast_no_exceptions_test.cpp ../../test/build//boost_unit_test_framework/<link>static : : : <define>BOOST_NO_EXCEPTIONS ] [ run lexical_cast_no_exceptions_test.cpp ../../test/build//boost_unit_test_framework/<link>static : : : <define>BOOST_NO_EXCEPTIONS ]
; ;
#Add missing flags, when numeric_cast compilation with exceptions disabled will be fixed: #Add missing flags, when numeric_cast compilation with exceptions disabled will be fixed:

View File

@@ -113,7 +113,7 @@ void test_empty_3()
v = lexical_cast<Escape>(100); v = lexical_cast<Escape>(100);
BOOST_CHECK_EQUAL(lexical_cast<int>(v), 100); BOOST_CHECK_EQUAL(lexical_cast<int>(v), 100);
BOOST_CHECK_EQUAL(lexical_cast<unsigned int>(v), 100); BOOST_CHECK_EQUAL(lexical_cast<unsigned int>(v), 100u);
v = lexical_cast<Escape>(0.0); v = lexical_cast<Escape>(0.0);
BOOST_CHECK_EQUAL(lexical_cast<double>(v), 0.0); BOOST_CHECK_EQUAL(lexical_cast<double>(v), 0.0);