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


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@113219 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/settings/TestSettings.py b/test/settings/TestSettings.py
index 35b12f9..10cfedc 100644
--- a/test/settings/TestSettings.py
+++ b/test/settings/TestSettings.py
@@ -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