
1 Oct
2004
1 Oct
'04
8:28 a.m.
Subject test fails at runtime with following output: Running 58 test cases... ../libs/test/test/basic_cstring_test.cpp(419): error in "io_test": ostr.is_equal( "test" ) failed. Output content: "tes" ../libs/test/test/basic_cstring_test.cpp(419): error in "io_test": ostr.is_equal( "test" ) failed. Output content: "tes" *** 2 failures detected in test suite "basic_cstring test" Interesting lines are: bcs1 = "test"; ... ostr << std::setw( 3 ) << bcs1; BOOST_CHECK( ostr.is_equal( "test" ) ); Looks like setw manipulator set maximum field width, while it supposed to set minimum. Is this compiler/STL bug? Gennadiy.