xref: /llvm-project/lldb/test/API/sanity/TestModuleCacheSanity.py (revision 2238dcc39358353cac21df75c3c3286ab20b8f53)
1"""
2This is a sanity check that verifies that the module cache path is set
3correctly and points inside the default test build directory.
4"""
5
6
7import lldb
8import lldbsuite.test.lldbutil as lldbutil
9from lldbsuite.test.lldbtest import *
10
11
12class ModuleCacheSanityTestCase(TestBase):
13    NO_DEBUG_INFO_TESTCASE = True
14
15    def test(self):
16        self.expect(
17            "settings show symbols.clang-modules-cache-path",
18            substrs=["lldb-test-build.noindex", "module-cache-lldb"],
19        )
20