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