Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r74174 - in trunk: libs/locale/test status
From: artyomtnk_at_[hidden]
Date: 2011-08-31 03:08:08


Author: artyom
Date: 2011-08-31 03:08:07 EDT (Wed, 31 Aug 2011)
New Revision: 74174
URL: http://svn.boost.org/trac/boost/changeset/74174

Log:
Fixing unit test, It does not seems that the standard
requires that error would not be reported on first codecvt failure...

Text files modified:
   trunk/libs/locale/test/test_codepage.cpp | 11 +++++++++--
   trunk/status/explicit-failures-markup.xml | 5 +++--
   2 files changed, 12 insertions(+), 4 deletions(-)

Modified: trunk/libs/locale/test/test_codepage.cpp
==============================================================================
--- trunk/libs/locale/test/test_codepage.cpp (original)
+++ trunk/libs/locale/test/test_codepage.cpp 2011-08-31 03:08:07 EDT (Wed, 31 Aug 2011)
@@ -87,8 +87,15 @@
     stream_type f1("testi.txt",stream_type::in);
     f1.imbue(l);
     Char c;
- for(int i=0;i<pos;i++)
- TEST(f1.get(c));
+ for(int i=0;i<pos;i++) {
+ f1.get(c);
+ if(f1.fail()) { // failed before as detected errors at forward;
+ return;
+ }
+ TEST(f1);
+ }
+ // if the pos above suceed, at this point
+ // it MUST fail
     TEST(f1.get(c).fail());
 }
 

Modified: trunk/status/explicit-failures-markup.xml
==============================================================================
--- trunk/status/explicit-failures-markup.xml (original)
+++ trunk/status/explicit-failures-markup.xml 2011-08-31 03:08:07 EDT (Wed, 31 Aug 2011)
@@ -6454,10 +6454,11 @@
 
         <mark-expected-failures>
             <test name="test_codepage"/>
- <toolset name="msvc-9.0~stlport5.2"/>
             <toolset name="pathscale-4*"/>
             <note author="Artyom Beilis">
- Problems with wide file stream I/O.
+ Problems with wide file stream I/O.
+ Currently unresolved due to lack of access to the
+ compiler.
             </note>
         </mark-expected-failures>
     </library>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk