Update the test case in light of recent change of LLDB-Info.plist to track Apple Generic Version number

from the Xcode project file.

llvm-svn: 138677
This commit is contained in:
Johnny Chen 2011-08-26 23:50:10 +00:00
parent 4f3cb540a6
commit 4cd2a8e2f4
1 changed files with 3 additions and 1 deletions

View File

@ -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."""