aboutsummaryrefslogtreecommitdiffstats
path: root/googlemock/test/gmock_output_test.py
diff options
context:
space:
mode:
authorConor Burgess <Burgess.Conor@gmail.com>2018-02-12 17:35:07 +0000
committerGitHub <noreply@github.com>2018-02-12 17:35:07 +0000
commitf11a8f9131584cf4009eca8af8a66e920c1b7391 (patch)
tree06cf7b6488c5980a90bcc355f186047f8b5a16c0 /googlemock/test/gmock_output_test.py
parent27bb844e5c31a0a67b7b4864ffb2b80ae2803882 (diff)
parent15392f1a38fa0b8c3f13a9732e94b209069efa1c (diff)
downloadgoogletest-f11a8f9131584cf4009eca8af8a66e920c1b7391.tar.gz
googletest-f11a8f9131584cf4009eca8af8a66e920c1b7391.tar.bz2
googletest-f11a8f9131584cf4009eca8af8a66e920c1b7391.zip
Merge branch 'master' into fix-argc
Diffstat (limited to 'googlemock/test/gmock_output_test.py')
-rwxr-xr-xgooglemock/test/gmock_output_test.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/googlemock/test/gmock_output_test.py b/googlemock/test/gmock_output_test.py
index eced8a81..9d73d570 100755
--- a/googlemock/test/gmock_output_test.py
+++ b/googlemock/test/gmock_output_test.py
@@ -31,11 +31,11 @@
"""Tests the text output of Google C++ Mocking Framework.
-SYNOPSIS
- gmock_output_test.py --build_dir=BUILD/DIR --gengolden
- # where BUILD/DIR contains the built gmock_output_test_ file.
- gmock_output_test.py --gengolden
- gmock_output_test.py
+To update the golden file:
+gmock_output_test.py --build_dir=BUILD/DIR --gengolden
+# where BUILD/DIR contains the built gmock_output_test_ file.
+gmock_output_test.py --gengolden
+gmock_output_test.py
"""
__author__ = 'wan@google.com (Zhanyong Wan)'
@@ -176,5 +176,8 @@ if __name__ == '__main__':
golden_file = open(GOLDEN_PATH, 'wb')
golden_file.write(output)
golden_file.close()
+ # Suppress the error "googletest was imported but a call to its main()
+ # was never detected."
+ os._exit(0)
else:
gmock_test_utils.Main()