catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Ensure that console_width.hpp includes user_config.hpp first
- Commit
85c00eb946b04a55a41aa131fb3f2050fa2f8b44- Author
- Martin Hořeňovský ·
- Parents
3a18a688a07e
Changes
src/catch2/internal/catch_console_width.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/catch2/internal/catch_console_width.hpp b/src/catch2/internal/catch_console_width.hpp index ad868e33..7156ec4e 100644 --- a/src/catch2/internal/catch_console_width.hpp +++ b/src/catch2/internal/catch_console_width.hpp @@ -8,6 +8,10 @@ #ifndef CATCH_CONSOLE_WIDTH_HPP_INCLUDED #define CATCH_CONSOLE_WIDTH_HPP_INCLUDED +// This include must be kept so that user's configured value for CONSOLE_WIDTH +// is used before we attempt to provide a default value +#include <catch2/catch_user_config.hpp> + #ifndef CATCH_CONFIG_CONSOLE_WIDTH #define CATCH_CONFIG_CONSOLE_WIDTH 80 #endif