diff options
Diffstat (limited to 'lldb/test/help/TestHelp.py')
| -rw-r--r-- | lldb/test/help/TestHelp.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/test/help/TestHelp.py b/lldb/test/help/TestHelp.py index 3c338a762a4..e21fa1e7ccf 100644 --- a/lldb/test/help/TestHelp.py +++ b/lldb/test/help/TestHelp.py @@ -58,8 +58,10 @@ class HelpCommandTestCase(TestBase): self.expect("help version", substrs = ['Show version of LLDB debugger.']) version_str = self.version_number_string() + import re + match = re.match('[0-9]+', version_str) self.expect("version", - patterns = ['LLDB-' + (version_str if version_str else '[0-9]+')]) + patterns = ['LLDB-' + (version_str if match else '[0-9]+')]) def test_help_should_not_crash_lldb(self): """Command 'help disasm' should not crash lldb.""" |

