mirror of
https://github.com/google/googletest.git
synced 2024-12-27 02:01:25 +08:00
Adds a test for the GTEST_PRINT_TIME env var. By Balazs.Dan@gmail.com.
This commit is contained in:
parent
15cbe5f70a
commit
d88da49d02
@ -101,6 +101,7 @@ def TestEnvVarAffectsFlag(command):
|
||||
TestFlag(command, 'color', 'yes', 'auto')
|
||||
TestFlag(command, 'filter', 'FooTest.Bar', '*')
|
||||
TestFlag(command, 'output', 'tmp/foo.xml', '')
|
||||
TestFlag(command, 'print_time', '1', '0')
|
||||
TestFlag(command, 'repeat', '999', '1')
|
||||
|
||||
if IS_WINDOWS:
|
||||
|
@ -81,6 +81,11 @@ void PrintFlag(const char* flag) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (strcmp(flag, "print_time") == 0) {
|
||||
cout << GTEST_FLAG(print_time);
|
||||
return;
|
||||
}
|
||||
|
||||
if (strcmp(flag, "repeat") == 0) {
|
||||
cout << GTEST_FLAG(repeat);
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user