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
4e13415f
Unverified
Commit
4e13415f
authored
Aug 09, 2018
by
Gennadiy Civil
Committed by
GitHub
Aug 09, 2018
Browse files
Merge branch 'master' into master
parents
db43df6d
4843eafd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
4 deletions
+11
-4
googlemock/test/gmock_output_test.py
googlemock/test/gmock_output_test.py
+2
-1
googletest/include/gtest/internal/gtest-port.h
googletest/include/gtest/internal/gtest-port.h
+2
-0
googletest/src/gtest-death-test.cc
googletest/src/gtest-death-test.cc
+6
-3
googletest/src/gtest.cc
googletest/src/gtest.cc
+1
-0
No files found.
googlemock/test/gmock_output_test.py
View file @
4e13415f
...
@@ -33,9 +33,10 @@
...
@@ -33,9 +33,10 @@
To update the golden file:
To update the golden file:
gmock_output_test.py --build_dir=BUILD/DIR --gengolden
gmock_output_test.py --build_dir=BUILD/DIR --gengolden
#
where BUILD/DIR contains the built gmock_output_test_ file.
where BUILD/DIR contains the built gmock_output_test_ file.
gmock_output_test.py --gengolden
gmock_output_test.py --gengolden
gmock_output_test.py
gmock_output_test.py
"""
"""
__author__
=
'wan@google.com (Zhanyong Wan)'
__author__
=
'wan@google.com (Zhanyong Wan)'
...
...
googletest/include/gtest/internal/gtest-port.h
View file @
4e13415f
...
@@ -180,6 +180,7 @@
...
@@ -180,6 +180,7 @@
// GTEST_HAS_TYPED_TEST - typed tests
// GTEST_HAS_TYPED_TEST - typed tests
// GTEST_HAS_TYPED_TEST_P - type-parameterized tests
// GTEST_HAS_TYPED_TEST_P - type-parameterized tests
// GTEST_IS_THREADSAFE - Google Test is thread-safe.
// GTEST_IS_THREADSAFE - Google Test is thread-safe.
// GOOGLETEST_CM0007 DO NOT DELETE
// GTEST_USES_POSIX_RE - enhanced POSIX regex is used. Do not confuse with
// GTEST_USES_POSIX_RE - enhanced POSIX regex is used. Do not confuse with
// GTEST_HAS_POSIX_RE (see above) which users can
// GTEST_HAS_POSIX_RE (see above) which users can
// define themselves.
// define themselves.
...
@@ -231,6 +232,7 @@
...
@@ -231,6 +232,7 @@
// Regular expressions:
// Regular expressions:
// RE - a simple regular expression class using the POSIX
// RE - a simple regular expression class using the POSIX
// Extended Regular Expression syntax on UNIX-like platforms
// Extended Regular Expression syntax on UNIX-like platforms
// GOOGLETEST_CM0008 DO NOT DELETE
// or a reduced regular exception syntax on other
// or a reduced regular exception syntax on other
// platforms, including Windows.
// platforms, including Windows.
// Logging:
// Logging:
...
...
googletest/src/gtest-death-test.cc
View file @
4e13415f
...
@@ -233,11 +233,14 @@ static std::string DeathTestThreadWarning(size_t thread_count) {
...
@@ -233,11 +233,14 @@ static std::string DeathTestThreadWarning(size_t thread_count) {
Message
msg
;
Message
msg
;
msg
<<
"Death tests use fork(), which is unsafe particularly"
msg
<<
"Death tests use fork(), which is unsafe particularly"
<<
" in a threaded context. For this test, "
<<
GTEST_NAME_
<<
" "
;
<<
" in a threaded context. For this test, "
<<
GTEST_NAME_
<<
" "
;
if
(
thread_count
==
0
)
if
(
thread_count
==
0
)
{
msg
<<
"couldn't detect the number of threads."
;
msg
<<
"couldn't detect the number of threads."
;
else
}
else
{
msg
<<
"detected "
<<
thread_count
<<
" threads."
;
msg
<<
"detected "
<<
thread_count
<<
" threads."
;
msg
<<
" See https://github.com/google/googletest/blob/master/googletest/docs/advanced.md#death-tests-and-threads"
}
msg
<<
" See "
"https://github.com/google/googletest/blob/master/googletest/docs/"
"advanced.md#death-tests-and-threads"
<<
" for more explanation and suggested solutions, especially if"
<<
" for more explanation and suggested solutions, especially if"
<<
" this is the last message you see before your test times out."
;
<<
" this is the last message you see before your test times out."
;
return
msg
.
GetString
();
return
msg
.
GetString
();
...
...
googletest/src/gtest.cc
View file @
4e13415f
...
@@ -3590,6 +3590,7 @@ std::string XmlUnitTestResultPrinter::RemoveInvalidXmlCharacters(
...
@@ -3590,6 +3590,7 @@ std::string XmlUnitTestResultPrinter::RemoveInvalidXmlCharacters(
// The following routines generate an XML representation of a UnitTest
// The following routines generate an XML representation of a UnitTest
// object.
// object.
// GOOGLETEST_CM0009 DO NOT DELETE
//
//
// This is how Google Test concepts map to the DTD:
// This is how Google Test concepts map to the DTD:
//
//
...
...
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