forked from OSchip/llvm-project
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:
parent
4f3cb540a6
commit
4cd2a8e2f4
|
@ -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."""
|
||||
|
|
Loading…
Reference in New Issue