[Lldb-commits] [lldb] r114846 - /lldb/trunk/test/settings/TestSettings.py

Johnny Chen johnny.chen at apple.com
Mon Sep 27 10:36:59 PDT 2010


Author: johnny
Date: Mon Sep 27 12:36:59 2010
New Revision: 114846

URL: http://llvm.org/viewvc/llvm-project?rev=114846&view=rev
Log:
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.

Modified:
    lldb/trunk/test/settings/TestSettings.py

Modified: lldb/trunk/test/settings/TestSettings.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/settings/TestSettings.py?rev=114846&r1=114845&r2=114846&view=diff
==============================================================================
--- lldb/trunk/test/settings/TestSettings.py (original)
+++ lldb/trunk/test/settings/TestSettings.py Mon Sep 27 12:36:59 2010
@@ -19,8 +19,8 @@
     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 @@
         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."""
 





More information about the lldb-commits mailing list