https://github.com/cyndyishida created https://github.com/llvm/llvm-project/pull/229155
Pipe the output through %scan-deps-filter to capture only the expected results. The CHECK lines are unchanged. >From 06e3d7b0fd0d5737979cd59d8e8afdd983ca9987 Mon Sep 17 00:00:00 2001 From: Cyndy Ishida <[email protected]> Date: Sat, 3 Oct 2026 13:06:24 -0700 Subject: [PATCH] [clang][deps][test] Filter modules-in-stable-dirs output with scan-deps-filter, NFC Pipe the output through %scan-deps-filter, to only capture the expected results. The CHECK lines are unchanged. --- clang/test/ClangScanDeps/modules-in-stable-dirs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clang/test/ClangScanDeps/modules-in-stable-dirs.c b/clang/test/ClangScanDeps/modules-in-stable-dirs.c index f54e09fecee94..688d5463c1380 100644 --- a/clang/test/ClangScanDeps/modules-in-stable-dirs.c +++ b/clang/test/ClangScanDeps/modules-in-stable-dirs.c @@ -14,7 +14,9 @@ // RUN: sed -e "s|DIR|%/t|g" %t/overlay.json.template > %t/overlay.json // RUN: clang-scan-deps -compilation-database %t/compile-commands.json \ // RUN: -j 1 -format experimental-full > %t/deps.db -// RUN: cat %t/deps.db | sed 's:\\\\\?:/:g' | FileCheck %s -DPREFIX=%/t +// RUN: cat %t/deps.db | sed 's:\\\\\?:/:g' \ +// RUN: | %scan-deps-filter --fields=modules.is-in-stable-directories,modules.name,modules.command-line \ +// RUN: | FileCheck %s -DPREFIX=%/t // CHECK: "modules": [ // CHECK-NEXT: { _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
