summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/warnings/uuid/TestAddDsymCommand.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/warnings/uuid/TestAddDsymCommand.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/warnings/uuid/TestAddDsymCommand.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/warnings/uuid/TestAddDsymCommand.py b/lldb/packages/Python/lldbsuite/test/warnings/uuid/TestAddDsymCommand.py
index 11a7d6f41fb..c75f7f293fa 100644
--- a/lldb/packages/Python/lldbsuite/test/warnings/uuid/TestAddDsymCommand.py
+++ b/lldb/packages/Python/lldbsuite/test/warnings/uuid/TestAddDsymCommand.py
@@ -64,7 +64,7 @@ class AddDsymCommandCase(TestBase):
def generate_main_cpp(self, version=0):
"""Generate main.cpp from main.cpp.template."""
- temp = os.path.join(os.getcwd(), self.template)
+ temp = os.path.join(self.getSourceDir(), self.template)
with open(temp, 'r') as f:
content = f.read()
@@ -72,7 +72,8 @@ class AddDsymCommandCase(TestBase):
'%ADD_EXTRA_CODE%',
'printf("This is version %d\\n");' %
version)
- src = os.path.join(os.getcwd(), self.source)
+ self.makeBuildDir()
+ src = os.path.join(self.getBuildDir(), self.source)
with open(src, 'w') as f:
f.write(new_content)
@@ -86,11 +87,13 @@ class AddDsymCommandCase(TestBase):
exe_path = self.getBuildArtifact(exe_name)
self.runCmd("file " + exe_path, CURRENT_EXECUTABLE_SET)
- wrong_path = os.path.join("%s.dSYM" % exe_name, "Contents")
+ wrong_path = os.path.join(self.getBuildDir(),
+ "%s.dSYM" % exe_name, "Contents")
self.expect("add-dsym " + wrong_path, error=True,
substrs=['invalid module path'])
right_path = os.path.join(
+ self.getBuildDir(),
"%s.dSYM" %
exe_path,
"Contents",
@@ -108,6 +111,7 @@ class AddDsymCommandCase(TestBase):
# This time, the UUID should match and we expect some feedback from
# lldb.
right_path = os.path.join(
+ self.getBuildDir(),
"%s.dSYM" %
exe_path,
"Contents",
OpenPOWER on IntegriCloud