Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
6723b6c5
Commit
6723b6c5
authored
Jan 23, 2018
by
Gennadiy Civil
Browse files
Merging, upstream
http://cl/182836545
parent
bbb17ad0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
10 deletions
+8
-10
googletest/test/gtest_repeat_test.cc
googletest/test/gtest_repeat_test.cc
+1
-1
googletest/test/gtest_uninitialized_test.py
googletest/test/gtest_uninitialized_test.py
+2
-3
googletest/test/gtest_uninitialized_test_.cc
googletest/test/gtest_uninitialized_test_.cc
+2
-2
googletest/test/gtest_unittest.cc
googletest/test/gtest_unittest.cc
+3
-3
googletest/test/gtest_xml_test_utils.py
googletest/test/gtest_xml_test_utils.py
+0
-1
No files found.
googletest/test/gtest_repeat_test.cc
View file @
6723b6c5
...
@@ -67,7 +67,7 @@ namespace {
...
@@ -67,7 +67,7 @@ namespace {
// Used for verifying that global environment set-up and tear-down are
// 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_set_up_count
=
0
;
int
g_environment_tear_down_count
=
0
;
int
g_environment_tear_down_count
=
0
;
...
...
googletest/test/gtest_uninitialized_test.py
View file @
6723b6c5
...
@@ -36,7 +36,6 @@ __author__ = 'wan@google.com (Zhanyong Wan)'
...
@@ -36,7 +36,6 @@ __author__ = 'wan@google.com (Zhanyong Wan)'
import
os
import
os
import
gtest_test_utils
import
gtest_test_utils
COMMAND
=
gtest_test_utils
.
GetTestExecutablePath
(
'gtest_uninitialized_test_'
)
COMMAND
=
gtest_test_utils
.
GetTestExecutablePath
(
'gtest_uninitialized_test_'
)
...
@@ -57,8 +56,8 @@ def TestExitCodeAndOutput(command):
...
@@ -57,8 +56,8 @@ def TestExitCodeAndOutput(command):
# Verifies that 'command' exits with code 1.
# Verifies that 'command' exits with code 1.
p
=
gtest_test_utils
.
Subprocess
(
command
)
p
=
gtest_test_utils
.
Subprocess
(
command
)
Assert
(
p
.
exited
)
if
p
.
exited
and
p
.
exit_code
==
0
:
Assert
Eq
(
1
,
p
.
exit_code
)
Assert
(
'IMPORTANT NOTICE'
in
p
.
output
);
Assert
(
'InitGoogleTest'
in
p
.
output
)
Assert
(
'InitGoogleTest'
in
p
.
output
)
...
...
googletest/test/gtest_uninitialized_test_.cc
View file @
6723b6c5
...
@@ -34,8 +34,8 @@
...
@@ -34,8 +34,8 @@
TEST
(
DummyTest
,
Dummy
)
{
TEST
(
DummyTest
,
Dummy
)
{
// This test doesn't verify anything. We just need it to create a
// This test doesn't verify anything. We just need it to create a
// realistic stage for testing the behavior of Google Test when
// realistic stage for testing the behavior of Google Test when
// RUN_ALL_TESTS() is called without
testing::InitGoogleTest() being
// RUN_ALL_TESTS() is called without
// called first.
//
testing::InitGoogleTest() being
called first.
}
}
int
main
()
{
int
main
()
{
...
...
googletest/test/gtest_unittest.cc
View file @
6723b6c5
...
@@ -34,9 +34,9 @@
...
@@ -34,9 +34,9 @@
#include "gtest/gtest.h"
#include "gtest/gtest.h"
// Verifies that the command line flag variables can be accessed
// Verifies that the command line flag variables can be accessed
in
//
in
code once
<
gtest/gtest.h
>
has been
#included.
// code once
"
gtest/gtest.h
"
has been
// Do not move it after other #includes.
//
#included.
Do not move it after other
gtest
#includes.
TEST
(
CommandLineFlagsTest
,
CanBeAccessedInCodeOnceGTestHIsIncluded
)
{
TEST
(
CommandLineFlagsTest
,
CanBeAccessedInCodeOnceGTestHIsIncluded
)
{
bool
dummy
=
testing
::
GTEST_FLAG
(
also_run_disabled_tests
)
bool
dummy
=
testing
::
GTEST_FLAG
(
also_run_disabled_tests
)
||
testing
::
GTEST_FLAG
(
break_on_failure
)
||
testing
::
GTEST_FLAG
(
break_on_failure
)
...
...
googletest/test/gtest_xml_test_utils.py
View file @
6723b6c5
...
@@ -35,7 +35,6 @@ import gtest_test_utils
...
@@ -35,7 +35,6 @@ import gtest_test_utils
from
xml.dom
import
minidom
,
Node
from
xml.dom
import
minidom
,
Node
GTEST_OUTPUT_FLAG
=
'--gtest_output'
GTEST_DEFAULT_OUTPUT_FILE
=
'test_detail.xml'
GTEST_DEFAULT_OUTPUT_FILE
=
'test_detail.xml'
class
GTestXMLTestCase
(
gtest_test_utils
.
TestCase
):
class
GTestXMLTestCase
(
gtest_test_utils
.
TestCase
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment