@@ -78,17 +78,19 @@ def test_with_process_launch_api(self):
78
78
@expectedFailureNetBSD
79
79
def test_with_attach_to_process_with_id_api (self ):
80
80
"""Create target, spawn a process, and attach to it with process id."""
81
- exe = '%s_%d' % (self .getBuildArtifact ( self . testMethodName ) , os .getpid ())
81
+ exe = '%s_%d' % (self .testMethodName , os .getpid ())
82
82
d = {'EXE' : exe }
83
83
self .build (dictionary = d )
84
84
self .setTearDownCleanup (dictionary = d )
85
- target = self .dbg .CreateTarget (exe )
85
+ target = self .dbg .CreateTarget (self . getBuildArtifact ( exe ) )
86
86
87
87
# Spawn a new process
88
88
token = exe + '.token'
89
- if os .path .exists (token ):
90
- os .remove (token )
91
- popen = self .spawnSubprocess (exe , [token ])
89
+ if not lldb .remote_platform :
90
+ token = self .getBuildArtifact (token )
91
+ if os .path .exists (token ):
92
+ os .remove (token )
93
+ popen = self .spawnSubprocess (self .getBuildArtifact (exe ), [token ])
92
94
self .addTearDownHook (self .cleanupSubprocesses )
93
95
lldbutil .wait_for_file_on_target (self , token )
94
96
@@ -110,17 +112,19 @@ def test_with_attach_to_process_with_id_api(self):
110
112
@expectedFailureNetBSD
111
113
def test_with_attach_to_process_with_name_api (self ):
112
114
"""Create target, spawn a process, and attach to it with process name."""
113
- exe = '%s_%d' % (self .getBuildArtifact ( self . testMethodName ) , os .getpid ())
115
+ exe = '%s_%d' % (self .testMethodName , os .getpid ())
114
116
d = {'EXE' : exe }
115
117
self .build (dictionary = d )
116
118
self .setTearDownCleanup (dictionary = d )
117
- target = self .dbg .CreateTarget (exe )
119
+ target = self .dbg .CreateTarget (self . getBuildArtifact ( exe ) )
118
120
119
121
# Spawn a new process.
120
122
token = exe + '.token'
121
- if os .path .exists (token ):
122
- os .remove (token )
123
- popen = self .spawnSubprocess (exe , [token ])
123
+ if not lldb .remote_platform :
124
+ token = self .getBuildArtifact (token )
125
+ if os .path .exists (token ):
126
+ os .remove (token )
127
+ popen = self .spawnSubprocess (self .getBuildArtifact (exe ), [token ])
124
128
self .addTearDownHook (self .cleanupSubprocesses )
125
129
lldbutil .wait_for_file_on_target (self , token )
126
130
0 commit comments