diff options
author | Matthew Voss <matthew.voss@sony.com> | 2018-07-19 00:25:00 +0000 |
---|---|---|
committer | Matthew Voss <matthew.voss@sony.com> | 2018-07-19 00:25:00 +0000 |
commit | 385df7539a532c43119655dec04b7ac50111b2cb (patch) | |
tree | 12b6a5d0b63e3503457e07b656b8b18720bfa739 | |
parent | 9befb0edb8bc0ba4a1d6e35447aaf14f8a0d1124 (diff) |
Remove scheduling dependency from XRay :: Posix/fork_basic_logging.cc
Summary:
We've been seeing intermittent failures on our internal bots and we suspect
this may be due to the OS scheduling the child process to run before the parent
process.
This version ensures that the parent and child can be run in either order.
Reviewers: Maknee, dberris
Reviewed By: dberris
Subscribers: delcypher, #sanitizers, Maknee, llvm-commits
Differential Revision: https://reviews.llvm.org/D49501
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@337432 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/xray/TestCases/Posix/fork_basic_logging.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/xray/TestCases/Posix/fork_basic_logging.cc b/test/xray/TestCases/Posix/fork_basic_logging.cc index 0f893872a..dcfbdf413 100644 --- a/test/xray/TestCases/Posix/fork_basic_logging.cc +++ b/test/xray/TestCases/Posix/fork_basic_logging.cc @@ -70,12 +70,12 @@ int main() if(fork()) { print_parent_or_child(); - // CHECK: Parent with tid + // CHECK-DAG: Parent with tid } else { print_parent_or_child(); - // CHECK: Child with tid + // CHECK-DAG: Child with tid } return 0; } |