30 """Unit test utilities for Google C++ Mocking Framework."""
35 from googletest.test
import gtest_test_utils
39 """Returns the absolute path of the directory where the .py files are."""
45 """Returns the absolute path of the test binary given its name.
47 The function will print a message and abort the program if the resulting file
51 executable_name: name of the test binary that the test script runs.
54 The absolute path of the test binary.
61 """Returns the argument to exit(), or -1 if exit() wasn't called.
64 exit_code: the result value of os.system(command).
74 if os.WIFEXITED(exit_code):
75 return os.WEXITSTATUS(exit_code)
85 TestCase = gtest_test_utils.TestCase
86 environ = gtest_test_utils.environ
87 SetEnvVar = gtest_test_utils.SetEnvVar
88 PREMATURE_EXIT_FILE_ENV_VAR = gtest_test_utils.PREMATURE_EXIT_FILE_ENV_VAR
94 """Runs the unit test."""