summaryrefslogtreecommitdiffstats
path: root/lldb/test/help/TestHelp.py
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-08-26 23:50:10 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-08-26 23:50:10 +0000
commit4cd2a8e2f4e55b969bd657a97743ea599086fefd (patch)
tree96122938c0da7c2c75e7907ff9e74d733f99dd82 /lldb/test/help/TestHelp.py
parent4f3cb540a65573e57b14480681ec0a694a24c6c0 (diff)
downloadbcm5719-llvm-4cd2a8e2f4e55b969bd657a97743ea599086fefd.tar.gz
bcm5719-llvm-4cd2a8e2f4e55b969bd657a97743ea599086fefd.zip
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
Diffstat (limited to 'lldb/test/help/TestHelp.py')
-rw-r--r--lldb/test/help/TestHelp.py4
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."""
OpenPOWER on IntegriCloud