From 09fb51554e7d1ef78a73e9f1736e9ed8476c3085 Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Thu, 9 Jun 2016 15:29:59 +0000 Subject: [profile] Fix test to bail on failed waitpid in instrprof-file_ex.c This resolves PR28066. Patch by David Binderman! git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@272268 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/profile/Inputs/instrprof-file_ex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/profile/Inputs') diff --git a/test/profile/Inputs/instrprof-file_ex.c b/test/profile/Inputs/instrprof-file_ex.c index ba5657111..106e58989 100644 --- a/test/profile/Inputs/instrprof-file_ex.c +++ b/test/profile/Inputs/instrprof-file_ex.c @@ -45,7 +45,7 @@ int main(int argc, char *argv[]) { // In parent for (i = 0; i < 10; i++) { int child_status; - if ((tid = waitpid(child[i], &child_status, 0) == -1)) + if ((tid = waitpid(child[i], &child_status, 0)) == -1) break; } F = lprofOpenFileEx(FN); -- cgit v1.2.3