Commit 30e05da5 authored by Dominik Charousset's avatar Dominik Charousset

Disable unit test coloring on Windows

parent 53e183b3
...@@ -566,7 +566,7 @@ int main(int argc, char** argv) { ...@@ -566,7 +566,7 @@ int main(int argc, char** argv) {
} }
// our simple command line parser. // our simple command line parser.
auto res = message_builder(cli_argv, cli_argv + divider - 1).extract_opts({ auto res = message_builder(cli_argv, cli_argv + divider - 1).extract_opts({
{"no-colors,n", "disable coloring"}, {"no-colors,n", "disable coloring (ignored on Windows)"},
{"log-file,l", "set output file", log_file}, {"log-file,l", "set output file", log_file},
{"console-verbosity,v", "set verbosity level of console (1-5)", {"console-verbosity,v", "set verbosity level of console (1-5)",
verbosity_console}, verbosity_console},
...@@ -602,7 +602,11 @@ int main(int argc, char** argv) { ...@@ -602,7 +602,11 @@ int main(int argc, char** argv) {
<< res.helptext << std::endl; << res.helptext << std::endl;
return 1; return 1;
} }
# ifndef CAF_WINDOWS
auto colorize = res.opts.count("no-colors") == 0; auto colorize = res.opts.count("no-colors") == 0;
# else
auto colorize = false;
# endif
std::vector<char*> args; std::vector<char*> args;
if (divider < argc) { if (divider < argc) {
// make a new args vector that contains argv[0] and all remaining args // make a new args vector that contains argv[0] and all remaining args
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment