Skip to content

Commit 47f1555

Browse files
committed
[lldb] Rewrote with lldbutil function
1 parent cb1c55b commit 47f1555

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lldb/test/API/tools/lldb-server/TestGdbRemoteForkNonStop.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from lldbsuite.test.decorators import *
22
from lldbsuite.test.lldbtest import *
3-
3+
from lldbsuite.test.lldbutil import append_to_process_working_directory
44
from fork_testbase import GdbRemoteForkTestBase
55

66

@@ -156,8 +156,8 @@ def get_all_output_via_vStdio(self, output_test):
156156

157157
@add_test_categories(["fork"])
158158
def test_c_both_nonstop(self):
159-
lock1 = self.getWorkingDirArtifact("lock1")
160-
lock2 = self.getWorkingDirArtifact("lock2")
159+
lock1 = lldbutil.append_to_process_working_directory(self, "lock1")
160+
lock2 = lldbutil.append_to_process_working_directory(self, "lock2")
161161
parent_pid, parent_tid, child_pid, child_tid = self.start_fork_test(
162162
[
163163
"fork",
@@ -194,8 +194,8 @@ def test_c_both_nonstop(self):
194194

195195
@add_test_categories(["fork"])
196196
def test_vCont_both_nonstop(self):
197-
lock1 = self.getWorkingDirArtifact("lock1")
198-
lock2 = self.getWorkingDirArtifact("lock2")
197+
lock1 = lldbutil.append_to_process_working_directory(self, "lock1")
198+
lock2 = lldbutil.append_to_process_working_directory(self, "lock2")
199199
parent_pid, parent_tid, child_pid, child_tid = self.start_fork_test(
200200
[
201201
"fork",
@@ -227,8 +227,8 @@ def test_vCont_both_nonstop(self):
227227
self.assertIn("PID: {}".format(int(child_pid, 16)).encode(), output)
228228

229229
def vCont_both_nonstop_test(self, vCont_packet):
230-
lock1 = self.getWorkingDirArtifact("lock1")
231-
lock2 = self.getWorkingDirArtifact("lock2")
230+
lock1 = lldbutil.append_to_process_working_directory(self, "lock1")
231+
lock2 = lldbutil.append_to_process_working_directory(self, "lock2")
232232
parent_pid, parent_tid, child_pid, child_tid = self.start_fork_test(
233233
[
234234
"fork",

0 commit comments

Comments
 (0)