xref: /llvm-project/lldb/test/API/commands/version/TestVersion.py (revision 2238dcc39358353cac21df75c3c3286ab20b8f53)
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