diff options
author | Gennadiy Civil <misterg@google.com> | 2018-01-23 15:15:28 (GMT) |
---|---|---|
committer | Gennadiy Civil <misterg@google.com> | 2018-01-23 15:15:28 (GMT) |
commit | 6723b6c588e2dda587682e96e1f1fe0235d3eece (patch) | |
tree | 867d50177ff2df06a1653b28d9f7c50392cf3b29 /googletest/test | |
parent | bbb17ad0f78cd2c6fbf5931c522db0a30deceb0a (diff) | |
download | googletest-6723b6c588e2dda587682e96e1f1fe0235d3eece.zip googletest-6723b6c588e2dda587682e96e1f1fe0235d3eece.tar.gz googletest-6723b6c588e2dda587682e96e1f1fe0235d3eece.tar.bz2 |
Merging, upstream http://cl/182836545
Diffstat (limited to 'googletest/test')
-rw-r--r-- | googletest/test/gtest_repeat_test.cc | 2 | ||||
-rwxr-xr-x | googletest/test/gtest_uninitialized_test.py | 5 | ||||
-rw-r--r-- | googletest/test/gtest_uninitialized_test_.cc | 4 | ||||
-rw-r--r-- | googletest/test/gtest_unittest.cc | 6 | ||||
-rwxr-xr-x | googletest/test/gtest_xml_test_utils.py | 1 |
5 files changed, 8 insertions, 10 deletions
diff --git a/googletest/test/gtest_repeat_test.cc b/googletest/test/gtest_repeat_test.cc index b9e65e4..3171604 100644 --- a/googletest/test/gtest_repeat_test.cc +++ b/googletest/test/gtest_repeat_test.cc @@ -67,7 +67,7 @@ namespace { // Used for verifying that global environment set-up and tear-down are -// inside the gtest_repeat loop. +// inside the --gtest_repeat loop. int g_environment_set_up_count = 0; int g_environment_tear_down_count = 0; diff --git a/googletest/test/gtest_uninitialized_test.py b/googletest/test/gtest_uninitialized_test.py index 41bc481..574db77 100755 --- a/googletest/test/gtest_uninitialized_test.py +++ b/googletest/test/gtest_uninitialized_test.py @@ -36,7 +36,6 @@ __author__ = 'wan@google.com (Zhanyong Wan)' import os import gtest_test_utils - COMMAND = gtest_test_utils.GetTestExecutablePath('gtest_uninitialized_test_') @@ -57,8 +56,8 @@ def TestExitCodeAndOutput(command): # Verifies that 'command' exits with code 1. p = gtest_test_utils.Subprocess(command) - Assert(p.exited) - AssertEq(1, p.exit_code) + if p.exited and p.exit_code == 0: + Assert('IMPORTANT NOTICE' in p.output); Assert('InitGoogleTest' in p.output) diff --git a/googletest/test/gtest_uninitialized_test_.cc b/googletest/test/gtest_uninitialized_test_.cc index 4431698..502b0ad 100644 --- a/googletest/test/gtest_uninitialized_test_.cc +++ b/googletest/test/gtest_uninitialized_test_.cc @@ -34,8 +34,8 @@ TEST(DummyTest, Dummy) { // This test doesn't verify anything. We just need it to create a // realistic stage for testing the behavior of Google Test when - // RUN_ALL_TESTS() is called without testing::InitGoogleTest() being - // called first. + // RUN_ALL_TESTS() is called without + // testing::InitGoogleTest() being called first. } int main() { diff --git a/googletest/test/gtest_unittest.cc b/googletest/test/gtest_unittest.cc index 5394562..a45927d 100644 --- a/googletest/test/gtest_unittest.cc +++ b/googletest/test/gtest_unittest.cc @@ -34,9 +34,9 @@ #include "gtest/gtest.h" -// Verifies that the command line flag variables can be accessed -// in code once <gtest/gtest.h> has been #included. -// Do not move it after other #includes. +// Verifies that the command line flag variables can be accessed in +// code once "gtest/gtest.h" has been +// #included. Do not move it after other gtest #includes. TEST(CommandLineFlagsTest, CanBeAccessedInCodeOnceGTestHIsIncluded) { bool dummy = testing::GTEST_FLAG(also_run_disabled_tests) || testing::GTEST_FLAG(break_on_failure) diff --git a/googletest/test/gtest_xml_test_utils.py b/googletest/test/gtest_xml_test_utils.py index 6694519..30c25d9 100755 --- a/googletest/test/gtest_xml_test_utils.py +++ b/googletest/test/gtest_xml_test_utils.py @@ -35,7 +35,6 @@ import gtest_test_utils from xml.dom import minidom, Node -GTEST_OUTPUT_FLAG = '--gtest_output' GTEST_DEFAULT_OUTPUT_FILE = 'test_detail.xml' class GTestXMLTestCase(gtest_test_utils.TestCase): |