[all-commits] [llvm/llvm-project] ca1cc5: [gcov][test] Call wait() to make gcov-fork.c reliable
Fangrui Song via All-commits
all-commits at lists.llvm.org
Sat Jul 18 11:11:08 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: ca1cc5c4e067d496e92e775bd0ac30c1b775bb62
https://github.com/llvm/llvm-project/commit/ca1cc5c4e067d496e92e775bd0ac30c1b775bb62
Author: Fangrui Song <i at maskray.me>
Date: 2020-07-18 (Sat, 18 Jul 2020)
Changed paths:
M compiler-rt/test/profile/Posix/gcov-fork.c
Log Message:
-----------
[gcov][test] Call wait() to make gcov-fork.c reliable
If the parent exit before the child, the line counts might be 1.
next:18'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
26: 1: 21: if (fork() == -1) return 1; // CHECK-NEXT: 1: [[#@LINE]]:
next:18'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
27: 1: 22: func2(); // CHECK-NEXT: 2: [[#@LINE]]:
next:18'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
28: 1: 23: return 0; // CHECK-NEXT: 2: [[#@LINE]]:
next:18'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
More information about the All-commits
mailing list