summaryrefslogtreecommitdiffstats
path: root/lldb/test/help/TestHelp.py
diff options
context:
space:
mode:
authorDaniel Malea <daniel.malea@intel.com>2013-02-28 16:51:15 +0000
committerDaniel Malea <daniel.malea@intel.com>2013-02-28 16:51:15 +0000
commit3b92f0095e40cb7368f37450ca90e69734eef103 (patch)
treecc4ec96333762e88cdbc9da34150d245f40caaf4 /lldb/test/help/TestHelp.py
parentf38da0dc754f8ad8417f2566c2e23fc40df723e6 (diff)
downloadbcm5719-llvm-3b92f0095e40cb7368f37450ca90e69734eef103.tar.gz
bcm5719-llvm-3b92f0095e40cb7368f37450ca90e69734eef103.zip
Remove LLDB dependency on xcodeworkspace (on Linux) for version number
- make LLDB version number match Clang (and the Debian package) - use the same revision detection magic that Clang uses to report SVN/Git revisions - update test case as per above Example output: $ lldb -v lldb version 3.3 (https://dmalea@llvm.org/svn/llvm-project/lldb/trunk revision 176211 clang revision 176208 llvm revision 176208) ss This line, and those below, will be ignored-- M source/lldb.cpp M test/help/TestHelp.py M source/Makefile llvm-svn: 176268
Diffstat (limited to 'lldb/test/help/TestHelp.py')
-rw-r--r--lldb/test/help/TestHelp.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/lldb/test/help/TestHelp.py b/lldb/test/help/TestHelp.py
index 839874d1973..a4520814468 100644
--- a/lldb/test/help/TestHelp.py
+++ b/lldb/test/help/TestHelp.py
@@ -77,8 +77,13 @@ class HelpCommandTestCase(TestBase):
version_str = self.version_number_string()
import re
match = re.match('[0-9]+', version_str)
+ if sys.platform.startswith("darwin"):
+ search_regexp = ['LLDB-' + (version_str if match else '[0-9]+')]
+ else:
+ search_regexp = ['lldb version (\d|\.)+.*$']
+
self.expect("version",
- patterns = ['LLDB-' + (version_str if match else '[0-9]+')])
+ patterns = search_regexp)
def test_help_should_not_crash_lldb(self):
"""Command 'help disasm' should not crash lldb."""
OpenPOWER on IntegriCloud