Skip to content

Commit fe9d844

Browse files
committed
[lldb/Test] Generate YAML binary in build directory
Although it's not entirely clear to me why, this test was generating its binary in the source directory instead of the build directory. This patch fixes that following the same approach as other tests.
1 parent 8e7e6a8 commit fe9d844

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

lldb/test/API/functionalities/show_location/TestShowLocationDwarf5.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,9 @@ class TestTargetSourceMap(TestBase):
1414
def test_source_map(self):
1515
# Set the target soure map to map "./" to the current test directory.
1616
yaml_path = os.path.join(self.getSourceDir(), "a.yaml")
17-
yaml_base, ext = os.path.splitext(yaml_path)
18-
obj_path = self.getBuildArtifact(yaml_base)
17+
obj_path = self.getBuildArtifact('a.out')
1918
self.yaml2obj(yaml_path, obj_path)
2019

21-
def cleanup():
22-
if os.path.exists(obj_path):
23-
os.unlink(obj_path)
24-
25-
# Execute the cleanup function during test case tear down.
26-
self.addTearDownHook(cleanup)
27-
2820
# Create a target with the object file we just created from YAML
2921
target = self.dbg.CreateTarget(obj_path)
3022

0 commit comments

Comments
 (0)