1import lldb 2from lldbsuite.test.lldbtest import * 3from lldbsuite.test.decorators import * 4 5class VersionTestCase(TestBase): 6 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("version a", error=True, 17 substrs=["'version' doesn't take any arguments."]) 18