Benchmark defaults to "auto" for deciding to whether to use color or not, as part of the following conditional:
if ((FLAGS_benchmark_color == "auto" && IsColorTerminal()) ||
IsTruthyFlagValue(FLAGS_benchmark_color)) {
// print color.
}
But IsTruthyFlagValue is permissive and returns true for the string "auto", causing IsColorTerminal() to be ignored.
Benchmark defaults to "auto" for deciding to whether to use color or not, as part of the following conditional:
But
IsTruthyFlagValueis permissive and returnstruefor the string "auto", causingIsColorTerminal()to be ignored.