Opened 9 years ago
Closed 7 years ago
#9537 closed Bugs (fixed)
const_string_test example fails
Reported by: | Owned by: | Raffi Enficiaud | |
---|---|---|---|
Milestone: | Boost 1.59.0 | Component: | test |
Version: | Boost 1.55.0 | Severity: | Problem |
Keywords: | Cc: |
Description
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...
Change History (2)
comment:1 by , 9 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 7 years ago
Milestone: | To Be Determined → Boost 1.59.0 |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
fixed in branch feature/quickbookdoc