[compiler-rt] r272268 - [profile] Fix test to bail on failed waitpid in instrprof-file_ex.c
Vedant Kumar via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 9 08:30:02 PDT 2016
Author: vedantk
Date: Thu Jun 9 10:29:59 2016
New Revision: 272268
URL: http://llvm.org/viewvc/llvm-project?rev=272268&view=rev
Log:
[profile] Fix test to bail on failed waitpid in instrprof-file_ex.c
This resolves PR28066.
Patch by David Binderman!
Modified:
compiler-rt/trunk/test/profile/Inputs/instrprof-file_ex.c
Modified: compiler-rt/trunk/test/profile/Inputs/instrprof-file_ex.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/profile/Inputs/instrprof-file_ex.c?rev=272268&r1=272267&r2=272268&view=diff
==============================================================================
--- compiler-rt/trunk/test/profile/Inputs/instrprof-file_ex.c (original)
+++ compiler-rt/trunk/test/profile/Inputs/instrprof-file_ex.c Thu Jun 9 10:29:59 2016
@@ -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);
More information about the llvm-commits
mailing list