Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#12507 closed Bugs (fixed)

Boost.test --report_sink parameter broken

Reported by: albertasva@… Owned by: Raffi Enficiaud
Milestone: Boost 1.63.0 Component: test
Version: Boost 1.62.0 Severity: Showstopper
Keywords: Cc:

Description

Boost.test 1.62.0 application fails when parameter --report_sink is specified:

E:\test\BoostUnitTest1.exe --report_sink=x.txt
Boost.Test framework internal error: unknown reason

E:\test\BoostUnitTest1.exe --report_sink=stderr
Boost.Test framework internal error: unknown reason

E:\test\BoostUnitTest1.exe --report_sink=stdout
Boost.Test framework internal error: unknown reason

Previously used version 1.55.0 correctly processed --report_sink parameter

Debug and Release builds fails the same way.

Test project genrated using Boost Unit Test Adapter extensin for Visual Studio, but failure occurs on any Boost.test application that I tried.

Platform: Windows 10

Tool: Visual Studio 2015 (Community)

Build options: Boost static libraries and test projects compiled with static C++ runtime libraries (compiler option /MT or /MTd)

Change History (6)

comment:1 by anonymous, 6 years ago

Boost.test 1.62.0 application also fails when parameter --log_sink is specified:

./BoostUnitTest1 --log_format=XML --log_level=all --log_sink=BoostUnitTest1.xml
Test setup error: Access with invalid type for argument corresponding to parameter log_sink

Note: the code above worked fine in boost version 1.61.

Platforms: Windows 10 & Fedora 24

Tools: mingw 5.3.0 and gcc 6.2.1

However, a workaround for --log_sink is to use --logger:

./BoostUnitTest1 --logger=XML,all,BoostUnitTest1.xml

comment:2 by Raffi Enficiaud, 6 years ago

Milestone: To Be DeterminedBoost 1.63.0
Owner: changed from Gennadiy Rozental to Raffi Enficiaud
Severity: ProblemShowstopper

Yes, I am really sorry for this bug. It is already fixed in a branch, but we definitely need more smoke testing on this.

comment:3 by Raffi Enficiaud, 6 years ago

Status: newassigned

comment:4 by Raffi Enficiaud, 6 years ago

Merged to master (rev cd74a43a784bff0d9c4768fa26f5f1f2b1359014)

comment:5 by Raffi Enficiaud, 6 years ago

Resolution: fixed
Status: assignedclosed

in reply to:  4 comment:6 by koeza1146@…, 5 years ago

Replying to Raffi Enficiaud:

Merged to master (rev cd74a43a784bff0d9c4768fa26f5f1f2b1359014)

Note: See TracTickets for help on using tickets.