googletest-break-on-failure-unittest.py (googletest-release-1.11.0) | : | googletest-break-on-failure-unittest.py (googletest-release-1.12.0) | ||
---|---|---|---|---|
skipping to change at line 42 | skipping to change at line 42 | |||
"""Unit test for Google Test's break-on-failure mode. | """Unit test for Google Test's break-on-failure mode. | |||
A user can ask Google Test to seg-fault when an assertion fails, using | A user can ask Google Test to seg-fault when an assertion fails, using | |||
either the GTEST_BREAK_ON_FAILURE environment variable or the | either the GTEST_BREAK_ON_FAILURE environment variable or the | |||
--gtest_break_on_failure flag. This script tests such functionality | --gtest_break_on_failure flag. This script tests such functionality | |||
by invoking googletest-break-on-failure-unittest_ (a program written with | by invoking googletest-break-on-failure-unittest_ (a program written with | |||
Google Test) with different environments and command line flags. | Google Test) with different environments and command line flags. | |||
""" | """ | |||
import os | import os | |||
import gtest_test_utils | from googletest.test import gtest_test_utils | |||
# Constants. | # Constants. | |||
IS_WINDOWS = os.name == 'nt' | IS_WINDOWS = os.name == 'nt' | |||
# The environment variable for enabling/disabling the break-on-failure mode. | # The environment variable for enabling/disabling the break-on-failure mode. | |||
BREAK_ON_FAILURE_ENV_VAR = 'GTEST_BREAK_ON_FAILURE' | BREAK_ON_FAILURE_ENV_VAR = 'GTEST_BREAK_ON_FAILURE' | |||
# The command line flag for enabling/disabling the break-on-failure mode. | # The command line flag for enabling/disabling the break-on-failure mode. | |||
BREAK_ON_FAILURE_FLAG = 'gtest_break_on_failure' | BREAK_ON_FAILURE_FLAG = 'gtest_break_on_failure' | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |