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