1 //===- unittests/Driver/ModuleCacheTest.cpp -------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // Unit tests for the LLDB module cache API.
11 //===----------------------------------------------------------------------===//
13 #include "clang/Driver/Driver.h"
14 #include "gtest/gtest.h"
15 using namespace clang
;
16 using namespace clang::driver
;
20 TEST(ModuleCacheTest
, GetTargetAndMode
) {
22 Driver::getDefaultModuleCachePath(Buf
);
24 EXPECT_TRUE(Path
.find("clang") != Path
.npos
);
25 EXPECT_TRUE(Path
.ends_with("ModuleCache"));
27 } // end anonymous namespace.