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
93e267a9
Commit
93e267a9
authored
May 31, 2018
by
Fabrice de Gans-Riberi
Browse files
Clean up
parent
0a6edf3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
googletest/src/gtest-death-test.cc
googletest/src/gtest-death-test.cc
+1
-5
No files found.
googletest/src/gtest-death-test.cc
View file @
93e267a9
...
@@ -945,13 +945,9 @@ DeathTest::TestRole FuchsiaDeathTest::AssumeRole() {
...
@@ -945,13 +945,9 @@ DeathTest::TestRole FuchsiaDeathTest::AssumeRole() {
};
};
// Spawn the child process.
// Spawn the child process.
char
err_msg
[
255
];
status
=
fdio_spawn_etc
(
ZX_HANDLE_INVALID
,
FDIO_SPAWN_CLONE_ALL
,
status
=
fdio_spawn_etc
(
ZX_HANDLE_INVALID
,
FDIO_SPAWN_CLONE_ALL
,
args
.
Argv
()[
0
],
args
.
Argv
(),
nullptr
,
1
,
args
.
Argv
()[
0
],
args
.
Argv
(),
nullptr
,
1
,
&
add_handle_action
,
&
child_process_
,
err_msg
);
&
add_handle_action
,
&
child_process_
,
nullptr
);
if
(
status
!=
ZX_OK
)
{
GTEST_LOG_
(
ERROR
)
<<
err_msg
;
}
GTEST_DEATH_TEST_CHECK_
(
status
==
ZX_OK
);
GTEST_DEATH_TEST_CHECK_
(
status
==
ZX_OK
);
set_spawned
(
true
);
set_spawned
(
true
);
...
...
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