Added a test case for setting term-width, too.

llvm-svn: 113219
This commit is contained in:
Johnny Chen 2010-09-07 17:31:05 +00:00
parent f336abfcd2
commit a37764b5ae
1 changed files with 14 additions and 0 deletions

View File

@ -25,6 +25,20 @@ class SettingsCommandTestCase(TestBase):
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