googletest-env-var-test.py (googletest-release-1.10.0) | : | googletest-env-var-test.py (googletest-release-1.11.0) | ||
---|---|---|---|---|
skipping to change at line 82 | skipping to change at line 82 | |||
SetEnvVar(env_var, None) | SetEnvVar(env_var, None) | |||
AssertEq(default_val, GetFlag(flag)) | AssertEq(default_val, GetFlag(flag)) | |||
class GTestEnvVarTest(gtest_test_utils.TestCase): | class GTestEnvVarTest(gtest_test_utils.TestCase): | |||
def testEnvVarAffectsFlag(self): | def testEnvVarAffectsFlag(self): | |||
"""Tests that environment variable should affect the corresponding flag.""" | """Tests that environment variable should affect the corresponding flag.""" | |||
TestFlag('break_on_failure', '1', '0') | TestFlag('break_on_failure', '1', '0') | |||
TestFlag('color', 'yes', 'auto') | TestFlag('color', 'yes', 'auto') | |||
SetEnvVar('TESTBRIDGE_TEST_RUNNER_FAIL_FAST', None) # For 'fail_fast' test | ||||
TestFlag('fail_fast', '1', '0') | ||||
TestFlag('filter', 'FooTest.Bar', '*') | TestFlag('filter', 'FooTest.Bar', '*') | |||
SetEnvVar('XML_OUTPUT_FILE', None) # For 'output' test | SetEnvVar('XML_OUTPUT_FILE', None) # For 'output' test | |||
TestFlag('output', 'xml:tmp/foo.xml', '') | TestFlag('output', 'xml:tmp/foo.xml', '') | |||
TestFlag('brief', '1', '0') | ||||
TestFlag('print_time', '0', '1') | TestFlag('print_time', '0', '1') | |||
TestFlag('repeat', '999', '1') | TestFlag('repeat', '999', '1') | |||
TestFlag('throw_on_failure', '1', '0') | TestFlag('throw_on_failure', '1', '0') | |||
TestFlag('death_test_style', 'threadsafe', 'fast') | TestFlag('death_test_style', 'threadsafe', 'fast') | |||
TestFlag('catch_exceptions', '0', '1') | TestFlag('catch_exceptions', '0', '1') | |||
if IS_LINUX: | if IS_LINUX: | |||
TestFlag('death_test_use_fork', '1', '0') | TestFlag('death_test_use_fork', '1', '0') | |||
TestFlag('stack_trace_depth', '0', '100') | TestFlag('stack_trace_depth', '0', '100') | |||
End of changes. 2 change blocks. | ||||
0 lines changed or deleted | 3 lines changed or added |