summaryrefslogtreecommitdiffstats
path: root/lldb/test/settings/TestSettings.py
diff options
context:
space:
mode:
authorCaroline Tice <ctice@apple.com>2010-09-20 20:44:43 +0000
committerCaroline Tice <ctice@apple.com>2010-09-20 20:44:43 +0000
commitdaccaa9e83e497c761d2012461c83947826be68d (patch)
tree00066f13e4de1e161ce0a880f1a7f5cba2c22a46 /lldb/test/settings/TestSettings.py
parentc9cb0caeb7be722d906c5c3fa53adb7d04a9c8e9 (diff)
downloadbcm5719-llvm-daccaa9e83e497c761d2012461c83947826be68d.tar.gz
bcm5719-llvm-daccaa9e83e497c761d2012461c83947826be68d.zip
Add UserSettings to Target class, making Target settings
the parent of Process settings; add 'default-arch' as a class-wide setting for Target. Replace lldb::GetDefaultArchitecture with Target::GetDefaultArchitecture & Target::SetDefaultArchitecture. Add 'use-external-editor' as user setting to Debugger class & update code appropriately. Add Error parameter to methods that get user settings, for easier reporting of bad requests. Fix various other minor related bugs. Fix test cases to work with new changes. llvm-svn: 114352
Diffstat (limited to 'lldb/test/settings/TestSettings.py')
-rw-r--r--lldb/test/settings/TestSettings.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/lldb/test/settings/TestSettings.py b/lldb/test/settings/TestSettings.py
index 04e4ad0d288..9a43f122791 100644
--- a/lldb/test/settings/TestSettings.py
+++ b/lldb/test/settings/TestSettings.py
@@ -61,8 +61,8 @@ class SettingsCommandTestCase(TestBase):
self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
# Set the run-args and the env-vars.
- self.runCmd('settings set process.run-args A B C')
- self.runCmd('settings set process.env-vars ["MY_ENV_VAR"]=YES')
+ self.runCmd('settings set target.process.run-args A B C')
+ self.runCmd('settings set target.process.env-vars ["MY_ENV_VAR"]=YES')
self.runCmd("run", RUN_SUCCEEDED)
@@ -76,18 +76,18 @@ class SettingsCommandTestCase(TestBase):
@unittest2.expectedFailure
# rdar://problem/8435794
- # settings set process.output-path does not seem to work
+ # settings set target.process.output-path does not seem to work
def test_set_output_path(self):
- """Test that setting process.output-path for the launched process works."""
+ """Test that setting target.process.output-path for the launched process works."""
self.buildDefault()
exe = os.path.join(os.getcwd(), "a.out")
self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
# Set the output-path and verify it is set.
- self.runCmd("settings set process.output-path 'stdout.txt'")
- self.expect("settings show process.output-path",
- startstr = "process.output-path (string) = 'stdout.txt'")
+ self.runCmd("settings set target.process.output-path 'stdout.txt'")
+ self.expect("settings show target.process.output-path",
+ startstr = "target.process.output-path (string) = 'stdout.txt'")
self.runCmd("run", RUN_SUCCEEDED)
OpenPOWER on IntegriCloud