[Lldb-commits] [lldb] r113219 - /lldb/trunk/test/settings/TestSettings.py
Johnny Chen
johnny.chen at apple.com
Tue Sep 7 10:31:06 PDT 2010
Author: johnny
Date: Tue Sep 7 12:31:05 2010
New Revision: 113219
URL: http://llvm.org/viewvc/llvm-project?rev=113219&view=rev
Log:
Added a test case for setting term-width, too.
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=113219&r1=113218&r2=113219&view=diff
==============================================================================
--- lldb/trunk/test/settings/TestSettings.py (original)
+++ lldb/trunk/test/settings/TestSettings.py Tue Sep 7 12:31:05 2010
@@ -25,6 +25,20 @@
self.expect("settings show",
substrs = ["prompt (string) = 'lldb2'"])
+ def test_set_term_width(self):
+ """Test that 'set term-width' actually changes the term-width."""
+
+ # No '-o' option is needed for static setting.
+ self.runCmd("settings set term-width 70")
+
+ # Immediately test the setting.
+ self.expect("settings show term-width",
+ startstr = "term-width (int) = '70'")
+
+ # The overall display should also reflect the new setting.
+ self.expect("settings show",
+ startstr = "term-width (int) = 70")
+
if __name__ == '__main__':
import atexit
More information about the lldb-commits
mailing list