From b109172d993edacd9853a8bbb8128a94da014399 Mon Sep 17 00:00:00 2001 From: Mikhail Goncharov Date: Fri, 4 Jun 2021 18:10:17 +0200 Subject: [PATCH] [clang] use a different name for generated test cdb if build system copied source files as readonly, then override of db_tu.json will fail --- clang/test/ClangScanDeps/modules-pch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/test/ClangScanDeps/modules-pch.c b/clang/test/ClangScanDeps/modules-pch.c index 44b1a0d..ddb6949 100644 --- a/clang/test/ClangScanDeps/modules-pch.c +++ b/clang/test/ClangScanDeps/modules-pch.c @@ -8,6 +8,6 @@ // Scan dependencies of the TU: // -// RUN: sed "s|DIR|%/t|g" %S/Inputs/modules-pch/cdb_tu.json > %t/cdb_tu.json -// RUN: clang-scan-deps -compilation-database %t/cdb_tu.json -format experimental-full \ +// RUN: sed "s|DIR|%/t|g" %S/Inputs/modules-pch/cdb_tu.json > %t/cdb.json +// RUN: clang-scan-deps -compilation-database %t/cdb.json -format experimental-full \ // RUN: -generate-modules-path-args -module-files-dir %t/build -- 2.7.4