Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Console colors are not restored on Windows #254

Closed
valiko-ua opened this issue Feb 23, 2020 · 3 comments
Closed

Console colors are not restored on Windows #254

valiko-ua opened this issue Feb 23, 2020 · 3 comments
Assignees
Labels
Milestone

Comments

@valiko-ua
Copy link

Failing tests set color to red and do not restore (on Windows), so that all subsequent output is red.

Program to reproduce:

#define BOOST_TEST_MODULE My Test
#include <boost/test/included/unit_test.hpp>
BOOST_AUTO_TEST_CASE(my_test)
{
    int i = 1;
    BOOST_TEST(i == 2);
    BOOST_TEST(i == 3);
}

boost_test_bug_win

@raffienficiaud
Copy link
Member

Fix on branch topic/GH-254-color-restored-windows. Would be good if you give a try.

@valiko-ua
Copy link
Author

I tested on Windows: commit 63ab1f2 fixes this bug. Colors are restored.

raffienficiaud added a commit that referenced this issue Apr 4, 2020
* topic/GH-254-color-restored-windows:
  Change log
  Fixing CMakeLists.txt header include order
  Warning removal
  "setcolor" now uses an external state for all state restoration scenarios
@raffienficiaud raffienficiaud added next In "next" branch and removed fix-proposed labels Apr 4, 2020
@raffienficiaud raffienficiaud added this to the 1.73 milestone Apr 6, 2020
@raffienficiaud raffienficiaud added develop and removed next In "next" branch develop labels Apr 6, 2020
@raffienficiaud
Copy link
Member

Fixed in master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants