summaryrefslogtreecommitdiff
path: root/test/profile/Inputs
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2016-06-09 15:29:59 +0000
committerVedant Kumar <vsk@apple.com>2016-06-09 15:29:59 +0000
commit09fb51554e7d1ef78a73e9f1736e9ed8476c3085 (patch)
tree8906a77fd375d243c8e80030c9e222110bd324d8 /test/profile/Inputs
parent8be0a4ba49d80b27d9a1e3906bef25f674f1c195 (diff)
[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
Diffstat (limited to 'test/profile/Inputs')
-rw-r--r--test/profile/Inputs/instrprof-file_ex.c2
1 files changed, 1 insertions, 1 deletions
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);