xref: /llvm-project/lldb/test/Shell/Subprocess/fork-follow-parent-wp.test (revision f659bf00b4c0f33947bbce19113ac7cd28e5da86)
1# REQUIRES: native && dbregs-set
2# UNSUPPORTED: system-windows
3# RUN: %clangxx_host -g %p/Inputs/fork.cpp -DTEST_FORK=fork -o %t
4# RUN: %lldb -b -s %s %t | FileCheck %s
5process launch -s
6watchpoint set variable -w write g_val
7# CHECK: Watchpoint created:
8continue
9# CHECK-NOT: function run in parent
10# CHECK: stop reason = watchpoint
11continue
12# CHECK: function run in parent
13# CHECK: function run in exec'd child
14