[clang] e074044 - [clang][scan-deps] fix new test for readonly work trees
Augie Fackler via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 14 07:10:45 PDT 2025
Author: Augie Fackler
Date: 2025-07-14T10:09:11-04:00
New Revision: e074044a120d5fd2f7aef8f868e8618c6909e568
URL: https://github.com/llvm/llvm-project/commit/e074044a120d5fd2f7aef8f868e8618c6909e568
DIFF: https://github.com/llvm/llvm-project/commit/e074044a120d5fd2f7aef8f868e8618c6909e568.diff
LOG: [clang][scan-deps] fix new test for readonly work trees
Our setup runs tests with bazel in such a way that the work tree is
readonly, which was causing this test to fail because it couldn't write
the .o file. This fixes that, which was new in 15c3793cdf94 when this
test was introduced.
Added:
Modified:
clang/test/ClangScanDeps/visible-modules.c
Removed:
################################################################################
diff --git a/clang/test/ClangScanDeps/visible-modules.c b/clang/test/ClangScanDeps/visible-modules.c
index 77716a4956f00..201ce630ef0fa 100644
--- a/clang/test/ClangScanDeps/visible-modules.c
+++ b/clang/test/ClangScanDeps/visible-modules.c
@@ -30,7 +30,7 @@
// RUN: %clang @%t/A.rsp
/// Verify compilation & scan agree with each other.
-// RUN: not %clang @%t/tu.rsp 2>&1 | FileCheck %s --check-prefix=COMPILE
+// RUN: not %clang @%t/tu.rsp -o %t/blah.o 2>&1 | FileCheck %s --check-prefix=COMPILE
// SINGLE: "visible-clang-modules": [
// SINGLE-NEXT: "A"
More information about the cfe-commits
mailing list