19 lines · python
1import lldb2from lldbsuite.test.lldbtest import *3from lldbsuite.test.decorators import *4 5 6class VersionTestCase(TestBase):7 @no_debug_info_test8 def test_version(self):9 # Should work even when people patch the output,10 # so let's just assume that every vendor at least mentions11 # 'lldb' in their version string.12 self.expect("version", substrs=["lldb"])13 14 @no_debug_info_test15 def test_version_invalid_invocation(self):16 self.expect(17 "version a", error=True, substrs=["'version' doesn't take any arguments."]18 )19