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
62be6f34
Commit
62be6f34
authored
Feb 27, 2018
by
Xiaoyi Zhang
Browse files
Merge branch 'variant_matcher' of
https://github.com/zhangxy988/googletest
into variant_matcher
parents
2eb31c18
b951c652
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
2 deletions
+16
-2
googletest/include/gtest/internal/gtest-port.h
googletest/include/gtest/internal/gtest-port.h
+10
-0
googletest/src/gtest-death-test.cc
googletest/src/gtest-death-test.cc
+5
-1
googletest/test/gtest_env_var_test.py
googletest/test/gtest_env_var_test.py
+1
-1
No files found.
googletest/include/gtest/internal/gtest-port.h
View file @
62be6f34
...
...
@@ -107,6 +107,12 @@
// GTEST_CREATE_SHARED_LIBRARY
// - Define to 1 when compiling Google Test itself
// as a shared library.
// GTEST_DEFAULT_DEATH_TEST_STYLE
// - The default value of --gtest_death_test_style.
// The legacy default has been "fast" in the open
// source version since 2008. The recommended value
// is "threadsafe", and can be set in
// custom/gtest-port.h.
// Platform-indicating macros
// --------------------------
...
...
@@ -974,6 +980,10 @@ using ::std::tuple_size;
# define GTEST_API_
#endif // GTEST_API_
#ifndef GTEST_DEFAULT_DEATH_TEST_STYLE
# define GTEST_DEFAULT_DEATH_TEST_STYLE "fast"
#endif // GTEST_DEFAULT_DEATH_TEST_STYLE
#ifdef __GNUC__
// Ask the compiler to never inline a given function.
# define GTEST_NO_INLINE_ __attribute__((noinline))
...
...
googletest/src/gtest-death-test.cc
View file @
62be6f34
...
...
@@ -73,7 +73,11 @@ namespace testing {
// Constants.
// The default death test style.
static
const
char
kDefaultDeathTestStyle
[]
=
"threadsafe"
;
//
// This is defined in internal/gtest-port.h as "fast", but can be overridden by
// a definition in internal/custom/gtest-port.h. The recommended value, which is
// used internally at Google, is "threadsafe".
static
const
char
kDefaultDeathTestStyle
[]
=
GTEST_DEFAULT_DEATH_TEST_STYLE
;
GTEST_DEFINE_string_
(
death_test_style
,
...
...
googletest/test/gtest_env_var_test.py
View file @
62be6f34
...
...
@@ -92,7 +92,7 @@ class GTestEnvVarTest(gtest_test_utils.TestCase):
TestFlag
(
'print_time'
,
'0'
,
'1'
)
TestFlag
(
'repeat'
,
'999'
,
'1'
)
TestFlag
(
'throw_on_failure'
,
'1'
,
'0'
)
TestFlag
(
'death_test_style'
,
'fast'
,
'threadsafe'
)
TestFlag
(
'death_test_style'
,
'threadsafe'
,
'fast'
)
TestFlag
(
'catch_exceptions'
,
'0'
,
'1'
)
if
IS_LINUX
:
...
...
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