summaryrefslogtreecommitdiff
path: root/tests/gtest_main.cpp
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2017-11-29 00:23:11 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-11-29 00:23:11 +0000
commit0a25aa60a2a7cc6b681dd2e31321000cedbff77e (patch)
tree71a9010357ac5f4c35035066e6676a9857a4a547 /tests/gtest_main.cpp
parent72dcf2340ffb3215bb5f71515d2b59ec88d331a4 (diff)
parentcabc77f9172d74ff0bfc56d0797a6a8255b14f2a (diff)
Merge "Always wrap waitpid in TEMP_FAILURE_RETRY."
Diffstat (limited to 'tests/gtest_main.cpp')
-rw-r--r--tests/gtest_main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gtest_main.cpp b/tests/gtest_main.cpp
index 3f59a9c04..33dbfd933 100644
--- a/tests/gtest_main.cpp
+++ b/tests/gtest_main.cpp
@@ -324,7 +324,7 @@ static bool EnumerateTests(int argc, char** argv, std::vector<TestCase>& testcas
}
int status;
- if (waitpid(pid, &status, 0) != pid) {
+ if (TEMP_FAILURE_RETRY(waitpid(pid, &status, 0)) != pid) {
perror("waitpid");
return false;
}