summaryrefslogtreecommitdiffstats
path: root/lldb/test/settings/TestSettings.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/settings/TestSettings.py')
-rw-r--r--lldb/test/settings/TestSettings.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/lldb/test/settings/TestSettings.py b/lldb/test/settings/TestSettings.py
index 14054c17ddf..27fa8964727 100644
--- a/lldb/test/settings/TestSettings.py
+++ b/lldb/test/settings/TestSettings.py
@@ -373,10 +373,14 @@ class SettingsCommandTestCase(TestBase):
startstr = 'target.arg0 (string) = "cde"')
self.runCmd("settings clear target.arg0", check=False)
# file
- self.runCmd ("settings set target.output-path /bin/ls") # Set to known value
- self.runCmd ("settings set target.output-path /bin/cat ") # Set to new value with trailing whitespaces
+ path1 = os.path.join(os.getcwd(), "path1.txt")
+ path2 = os.path.join(os.getcwd(), "path2.txt")
+ self.runCmd ("settings set target.output-path %s" % path1) # Set to known value
self.expect ("settings show target.output-path", SETTING_MSG("target.output-path"),
- startstr = 'target.output-path (file) = ', substrs=['/bin/cat"'])
+ startstr = 'target.output-path (file) = ', substrs=[path1])
+ self.runCmd ("settings set target.output-path %s " % path2) # Set to new value with trailing whitespaces
+ self.expect ("settings show target.output-path", SETTING_MSG("target.output-path"),
+ startstr = 'target.output-path (file) = ', substrs=[path2])
self.runCmd("settings clear target.output-path", check=False)
# enum
self.runCmd ("settings set stop-disassembly-display never") # Set to known value
OpenPOWER on IntegriCloud