Opened 5 years ago

Closed 4 years ago

#13395 closed Bugs (worksforme)

Boost Test does not use BOOST_TEST_COLOR_OUTPUT

Reported by: alarobric@… Owned by: Gennadiy Rozental
Milestone: To Be Determined Component: test
Version: Boost 1.63.0 Severity: Problem
Keywords: Cc: Raffi Enficiaud

Description

Boost Test help describes option to get colored output. When using --color_output=yes or -x on the command line I get colored output as expected, but the help also describes an environment variable BOOST_TEST_COLOR_OUTPUT. This does not seem to work, and a quick glance at the code doesn't seem to show this string used anywhere other than the documentation options.

Change History (3)

comment:1 by Raffi Enficiaud, 5 years ago

The string BOOST_TEST_COLOR_OUTPUT is in the file include/boost/test/impl/unit_test_parameters.ipp, and I believe it is used. Would you please check again? How do you run your binary with this env variable?

comment:2 by Raffi Enficiaud, 5 years ago

Cc: Raffi Enficiaud added

Kind reminder

comment:3 by Raffi Enficiaud, 4 years ago

Resolution: worksforme
Status: newclosed

I just checked the code of 1.63 and 1.68 (in prep) and this

BOOST_TEST_COLOR_OUTPUT=0 smoke-ts-included
BOOST_TEST_COLOR_OUTPUT=1 smoke-ts-included
BOOST_TEST_COLOR_OUTPUT= smoke-ts-included
BOOST_TEST_COLOR_OUTPUT=yes smoke-ts-included
BOOST_TEST_COLOR_OUTPUT=no smoke-ts-included

is working as expected. Closing.

Note: See TracTickets for help on using tickets.