32"""Verifies that Google Test warns the user when not initialized properly."""
34import gtest_test_utils
45 if expected != actual:
46 print(
'Expected: %s' % (expected,))
47 print(
' Actual: %s' % (actual,))
52 """Runs the given command and verifies its exit code and output."""
56 if p.exited
and p.exit_code == 0:
57 Assert(
'IMPORTANT NOTICE' in p.output);
58 Assert(
'InitGoogleTest' in p.output)
66if __name__ ==
'__main__':
def TestExitCodeAndOutput(command)
def AssertEq(expected, actual)
def GetTestExecutablePath(executable_name, build_dir=None)
def testExitCodeAndOutput(self)