Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
cda39064
Commit
cda39064
authored
Nov 10, 2020
by
Mark Barolak
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3090 from knutpett:working_dir_on_diskless
PiperOrigin-RevId: 341604408
parents
fbef0711
e5686bb1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
gtest-internal-inl.h
googletest/src/gtest-internal-inl.h
+2
-0
No files found.
googletest/src/gtest-internal-inl.h
View file @
cda39064
...
@@ -682,6 +682,7 @@ class GTEST_API_ UnitTestImpl {
...
@@ -682,6 +682,7 @@ class GTEST_API_ UnitTestImpl {
void
AddTestInfo
(
internal
::
SetUpTestSuiteFunc
set_up_tc
,
void
AddTestInfo
(
internal
::
SetUpTestSuiteFunc
set_up_tc
,
internal
::
TearDownTestSuiteFunc
tear_down_tc
,
internal
::
TearDownTestSuiteFunc
tear_down_tc
,
TestInfo
*
test_info
)
{
TestInfo
*
test_info
)
{
#if GTEST_HAS_DEATH_TEST
// In order to support thread-safe death tests, we need to
// In order to support thread-safe death tests, we need to
// remember the original working directory when the test program
// remember the original working directory when the test program
// was first invoked. We cannot do this in RUN_ALL_TESTS(), as
// was first invoked. We cannot do this in RUN_ALL_TESTS(), as
...
@@ -694,6 +695,7 @@ class GTEST_API_ UnitTestImpl {
...
@@ -694,6 +695,7 @@ class GTEST_API_ UnitTestImpl {
GTEST_CHECK_
(
!
original_working_dir_
.
IsEmpty
())
GTEST_CHECK_
(
!
original_working_dir_
.
IsEmpty
())
<<
"Failed to get the current working directory."
;
<<
"Failed to get the current working directory."
;
}
}
#endif // GTEST_HAS_DEATH_TEST
GetTestSuite
(
test_info
->
test_suite_name
(),
test_info
->
type_param
(),
GetTestSuite
(
test_info
->
test_suite_name
(),
test_info
->
type_param
(),
set_up_tc
,
tear_down_tc
)
set_up_tc
,
tear_down_tc
)
...
...
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