|
2 | 2 | Test lldb settings command.
|
3 | 3 | """
|
4 | 4 |
|
5 |
| - |
6 | 5 | import json
|
7 | 6 | import os
|
8 | 7 | import re
|
@@ -150,14 +149,22 @@ def test_set_term_width(self):
|
150 | 149 | self.expect(
|
151 | 150 | "settings show term-width",
|
152 | 151 | SETTING_MSG("term-width"),
|
153 |
| - startstr="term-width (int) = 70", |
| 152 | + startstr="term-width (unsigned) = 70", |
154 | 153 | )
|
155 | 154 |
|
156 | 155 | # The overall display should also reflect the new setting.
|
157 | 156 | self.expect(
|
158 | 157 | "settings show",
|
159 | 158 | SETTING_MSG("term-width"),
|
160 |
| - substrs=["term-width (int) = 70"], |
| 159 | + substrs=["term-width (unsigned) = 70"], |
| 160 | + ) |
| 161 | + |
| 162 | + self.dbg.SetTerminalWidth(60) |
| 163 | + |
| 164 | + self.expect( |
| 165 | + "settings show", |
| 166 | + SETTING_MSG("term-width"), |
| 167 | + substrs=["term-width (unsigned) = 60"], |
161 | 168 | )
|
162 | 169 |
|
163 | 170 | # rdar://problem/10712130
|
@@ -592,7 +599,7 @@ def test_settings_with_trailing_whitespace(self):
|
592 | 599 | self.expect(
|
593 | 600 | "settings show term-width",
|
594 | 601 | SETTING_MSG("term-width"),
|
595 |
| - startstr="term-width (int) = 60", |
| 602 | + startstr="term-width (unsigned) = 60", |
596 | 603 | )
|
597 | 604 | self.runCmd("settings clear term-width", check=False)
|
598 | 605 | # string
|
|
0 commit comments