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