[Lldb-commits] [lldb] r138677 - /lldb/trunk/test/help/TestHelp.py
Johnny Chen
johnny.chen at apple.com
Fri Aug 26 16:50:10 PDT 2011
Author: johnny
Date: Fri Aug 26 18:50:10 2011
New Revision: 138677
URL: http://llvm.org/viewvc/llvm-project?rev=138677&view=rev
Log:
Update the test case in light of recent change of LLDB-Info.plist to track Apple Generic Version number
from the Xcode project file.
Modified:
lldb/trunk/test/help/TestHelp.py
Modified: lldb/trunk/test/help/TestHelp.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/help/TestHelp.py?rev=138677&r1=138676&r2=138677&view=diff
==============================================================================
--- lldb/trunk/test/help/TestHelp.py (original)
+++ lldb/trunk/test/help/TestHelp.py Fri Aug 26 18:50:10 2011
@@ -58,8 +58,10 @@
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."""
More information about the lldb-commits
mailing list