|
Boost : |
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2002-07-24 04:37:01
Subject test is failing at runtime when compiled with native iostream implementation. BTW it is passing when compiling with STLPort one. Here is an output:
The original data is:
Hello world
-16
34.5679
true
The data is (again):
Hello world
-@@@@@@@16
+@@@@34.5678901
eurt
.../boost/libs/io/test/ios_state_test.cpp(173) : error in "call_test_main": test 69L == output.iword(my_index) failed
Got the expected I/O failure: "iostream object has eofbitset".
.../boost/libs/io/test/ios_state_test.cpp(101) : error in "call_test_main": test 42L == cout.iword(my_index) failed
The data is (a third time; adding the numbers):
Hello world
+@18.5678901
eurt
.../boost/libs/io/test/ios_state_test.cpp(233) : error in "call_test_main": test 69L == output.iword(my_index) failed
Got the expected I/O failure: "iostream object has eofbitset".
.../boost/libs/io/test/ios_state_test.cpp(117) : error in "call_test_main": test 42L == cout.iword(my_index) failed
Gennadiy.
P.S. When we switch to the new Test Library I would recomment to change most of BOOST_TEST equality checks to BOOST_CHECK_EQUAL. This will make output more expressive, cause you will see failed value
_____________________________________________________________
A free email account your friends will never forget!
Get YOURNAME_at_[hidden] at http://www.emailaccount.com/
_____________________________________________________________
Promote your group and strengthen ties to your members with email_at_[hidden] by Everyone.net http://www.everyone.net/?btn=tag
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk