summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2010-09-27 17:36:59 +0000
committerJohnny Chen <johnny.chen@apple.com>2010-09-27 17:36:59 +0000
commit23cb3716df6c15a895a3aa690f21db903cd0b9bd (patch)
tree8d09dff57366000253c861b3b9a2ed1cb349a8fd
parent30e8d58dbdcefcb09192548a9f9a02c32bfac910 (diff)
downloadbcm5719-llvm-23cb3716df6c15a895a3aa690f21db903cd0b9bd.tar.gz
bcm5719-llvm-23cb3716df6c15a895a3aa690f21db903cd0b9bd.zip
Updated test case to "settings set prompt 'lldb2'" since the '-o' option is gone.
Also added "settings set -r prompt" to reset the prompt afterwards. llvm-svn: 114846
-rw-r--r--lldb/test/settings/TestSettings.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/lldb/test/settings/TestSettings.py b/lldb/test/settings/TestSettings.py
index 9a43f122791..9cd3f48adc2 100644
--- a/lldb/test/settings/TestSettings.py
+++ b/lldb/test/settings/TestSettings.py
@@ -19,8 +19,8 @@ class SettingsCommandTestCase(TestBase):
def test_set_prompt(self):
"""Test that 'set prompt' actually changes the prompt."""
- # Use '-o' option to override the existing instance setting.
- self.runCmd("settings set -o prompt 'lldb2'")
+ # Set prompt to 'lldb2'.
+ self.runCmd("settings set prompt 'lldb2'")
# Immediately test the setting.
self.expect("settings show prompt",
@@ -30,6 +30,9 @@ class SettingsCommandTestCase(TestBase):
self.expect("settings show",
substrs = ["prompt (string) = 'lldb2'"])
+ # Use '-r' option to reset to the original default prompt.
+ self.runCmd("settings set -r prompt")
+
def test_set_term_width(self):
"""Test that 'set term-width' actually changes the term-width."""
OpenPOWER on IntegriCloud