summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/settings/TestSettings.py
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2018-01-19 23:24:35 +0000
committerAdrian Prantl <aprantl@apple.com>2018-01-19 23:24:35 +0000
commit595048f3ecf3317aa2d32bed5141a526415f5aea (patch)
tree92980c57a7209f1ec112bb5f938b2021fec08f21 /lldb/packages/Python/lldbsuite/test/settings/TestSettings.py
parentce8746d178dba08ae576c7f53448772d6728d2f5 (diff)
downloadbcm5719-llvm-595048f3ecf3317aa2d32bed5141a526415f5aea.tar.gz
bcm5719-llvm-595048f3ecf3317aa2d32bed5141a526415f5aea.zip
Wrap all references to build artifacts in the LLDB testsuite (NFC)
in TestBase::getBuildArtifact(). This NFC commit is in preparation for https://reviews.llvm.org/D42281 (compile the LLDB tests out-of-tree). Differential Revision: https://reviews.llvm.org/D42280 llvm-svn: 323007
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/settings/TestSettings.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/settings/TestSettings.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/settings/TestSettings.py b/lldb/packages/Python/lldbsuite/test/settings/TestSettings.py
index 5e1cd44c01b..717c0744b1b 100644
--- a/lldb/packages/Python/lldbsuite/test/settings/TestSettings.py
+++ b/lldb/packages/Python/lldbsuite/test/settings/TestSettings.py
@@ -125,7 +125,7 @@ class SettingsCommandTestCase(TestBase):
"""Test that 'set frame-format' with a backtick char in the format string works as well as fullpath."""
self.build()
- exe = os.path.join(os.getcwd(), "a.out")
+ exe = self.getBuildArtifact("a.out")
self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
def cleanup():
@@ -161,7 +161,7 @@ class SettingsCommandTestCase(TestBase):
"""Test that after 'set auto-confirm true', manual confirmation should not kick in."""
self.build()
- exe = os.path.join(os.getcwd(), "a.out")
+ exe = self.getBuildArtifact("a.out")
self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
self.runCmd("settings set auto-confirm true")
@@ -186,7 +186,7 @@ class SettingsCommandTestCase(TestBase):
"""Test that user options for the disassembler take effect."""
self.build()
- exe = os.path.join(os.getcwd(), "a.out")
+ exe = self.getBuildArtifact("a.out")
self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
# AT&T syntax
@@ -219,7 +219,7 @@ class SettingsCommandTestCase(TestBase):
def test_run_args_and_env_vars(self):
"""Test that run-args and env-vars are passed to the launched process."""
self.build()
- exe = os.path.join(os.getcwd(), "a.out")
+ exe = self.getBuildArtifact("a.out")
self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
# Set the run-args and the env-vars.
@@ -253,7 +253,7 @@ class SettingsCommandTestCase(TestBase):
"""Test that the host env vars are passed to the launched process."""
self.build()
- exe = os.path.join(os.getcwd(), "a.out")
+ exe = self.getBuildArtifact("a.out")
self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
# By default, inherit-env is 'true'.
@@ -292,7 +292,7 @@ class SettingsCommandTestCase(TestBase):
"""Test that setting target.error/output-path for the launched process works."""
self.build()
- exe = os.path.join(os.getcwd(), "a.out")
+ exe = self.getBuildArtifact("a.out")
self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
# Set the error-path and output-path and verify both are set.
OpenPOWER on IntegriCloud