llvm-project/lldb/test/Shell/Subprocess/vfork-follow-parent-wp.test
Michał Górny f659bf00b4 [lldb] [test] Add synchronization fix Subprocess test flakiness
Add synchronization routines to ensure that Subprocess tests output
in a predictable order, and all test strings are output before the tests
terminate.

Differential Revision: https://reviews.llvm.org/D109495
2021-09-10 09:11:08 +02:00

15 lines
443 B
Plaintext

# REQUIRES: native && dbregs-set
# UNSUPPORTED: system-windows
# UNSUPPORTED: system-darwin
# RUN: %clangxx_host -g %p/Inputs/fork.cpp -DTEST_FORK=vfork -o %t
# RUN: %lldb -b -s %s %t | FileCheck %s
process launch -s
watchpoint set variable -w write g_val
# CHECK: Watchpoint created:
continue
# CHECK-NOT: function run in parent
# CHECK: stop reason = watchpoint
continue
# CHECK: function run in parent
# CHECK: function run in exec'd child