diff options
Diffstat (limited to 'lldb/test/help/TestHelp.py')
| -rw-r--r-- | lldb/test/help/TestHelp.py | 7 |
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.""" |

