summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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