[Boost-bugs] [Boost C++ Libraries] #9537: const_string_test example fails

Subject: [Boost-bugs] [Boost C++ Libraries] #9537: const_string_test example fails
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-12-31 00:07:05


#9537: const_string_test example fails
----------------------------------+---------------------
 Reporter: Richard <legalize@…> | Owner: rogeeff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: test
  Version: Boost 1.55.0 | Severity: Problem
 Keywords: |
----------------------------------+---------------------
 example/const_string_test.cpp fails because example/const_string.hpp
 doesn't define a member function at() that throws an exception. It simply
 indexes m_begin, which is a char* pointer.

 {{{
 testing.capture-output
 ..\..\..\bin.v2\libs\test\example\const_string_test.test\msvc-11.0\debug\const_string_test.run
 ====== BEGIN OUTPUT ======
 Running 6 test cases...
 const_string_test.cpp(71): error in "data_access_test": exception
 std::out_of_range is expected

 *** 1 failure detected in test suite "const_string test"

 EXIT STATUS: 201
 ====== END OUTPUT ======


 "..\..\..\bin.v2\libs\test\example\const_string_test.test\msvc-11.0\debug\const_string_test.exe"
> "..\..\..\bin.v2\libs\te
     set status=%ERRORLEVEL%
     echo. >>
 "..\..\..\bin.v2\libs\test\example\const_string_test.test\msvc-11.0\debug\const_string_test.output"
     echo EXIT STATUS: %status% >>
 "..\..\..\bin.v2\libs\test\example\const_string_test.test\msvc-11.0\debug\const_string_test.outp
     if %status% EQU 0 (
         copy
 "..\..\..\bin.v2\libs\test\example\const_string_test.test\msvc-11.0\debug\const_string_test.output"
 "..\..\..\bin.v2\
     )
     set verbose=0
     if %status% NEQ 0 (
         set verbose=1
     )
     if %verbose% EQU 1 (
         echo ====== BEGIN OUTPUT ======
         type
 "..\..\..\bin.v2\libs\test\example\const_string_test.test\msvc-11.0\debug\const_string_test.output"
         echo ====== END OUTPUT ======
     )
     exit %status%

 ...failed testing.capture-output
 ..\..\..\bin.v2\libs\test\example\const_string_test.test\msvc-11.0\debug\const_string_test.run...
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9537>
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:15 UTC