Skip to content

Commit

Permalink
[clang][tests] Fix CAS tests after upstream llvm#108539
Browse files Browse the repository at this point in the history
Fix clang path output in clang-scan-deps output after upstream change
makes the tool to return full path to clang.
  • Loading branch information
cachemeifyoucan committed Sep 17, 2024
1 parent ed6a5e2 commit 4b9ce22
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions clang/test/ClangScanDeps/cas-trees.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@
// COMBINED: remark: compile job cache miss for '[[T1_CACHE_KEY]]'
// COMBINED-NEXT: remark: compile job cache miss for '[[T2_CACHE_KEY]]'

// RUN: clang-scan-deps -compilation-database %t/cdb.json -cas-path %t/cas -format experimental-tree -emit-cas-compdb | FileCheck %s -DPREFIX=%/t -check-prefix=COMPDB
// RUN: clang-scan-deps -compilation-database %t/cdb.json -cas-path %t/cas -format experimental-tree -emit-cas-compdb | FileCheck %s -DPREFIX=%/t -DCLANG=%clang -check-prefix=COMPDB
// COMPDB: [
// COMPDB: {
// COMPDB: "file": "[[PREFIX]]/t1.c",
// COMPDB: "directory": "[[PREFIX]]",
// COMPDB: "arguments": [
// COMPDB: "clang",
// COMPDB: "[[CLANG]]",
// COMPDB: "-cc1",
// COMPDB: "-fcas-path",
// COMPDB: "[[PREFIX]]/cas",
Expand Down
4 changes: 2 additions & 2 deletions clang/test/ClangScanDeps/include-tree-with-pch.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
// RUN: echo "FULL DEPS START" >> %t/full.txt
// RUN: cat %t/deps.json | sed 's:\\\\\?:/:g' >> %t/full.txt

// RUN: FileCheck %s -DPREFIX=%/t -check-prefix=FULL -input-file %t/full.txt
// RUN: FileCheck %s -DPREFIX=%/t -DCLANG=%clang -check-prefix=FULL -input-file %t/full.txt

// Capture the tree id from experimental-include-tree ; ensure that it matches
// the result from experimental-full.
Expand Down Expand Up @@ -57,7 +57,7 @@
// FULL-NEXT: "t.c"
// FULL-NOT: "t.c"
// FULL: ]
// FULL: "executable": "clang"
// FULL: "executable": "[[CLANG]]"
// FULL: "file-deps": [
// FULL-NEXT: "[[PREFIX]]/t.c"
// FULL-NEXT: "[[PREFIX]]/t.h"
Expand Down
4 changes: 2 additions & 2 deletions clang/test/ClangScanDeps/include-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
// RUN: echo "FULL DEPS START" >> %t/full.txt
// RUN: cat %t/deps.json | sed 's:\\\\\?:/:g' >> %t/full.txt

// RUN: FileCheck %s -DPREFIX=%/t -check-prefix=FULL -input-file %t/full.txt
// RUN: FileCheck %s -DPREFIX=%/t -DCLANG=%clang -check-prefix=FULL -input-file %t/full.txt

// Capture the tree id from experimental-include-tree ; ensure that it matches
// the result from experimental-full.
Expand Down Expand Up @@ -67,7 +67,7 @@
// FULL-NEXT: "t.c"
// FULL-NOT: "t.c"
// FULL: ]
// FULL: "executable": "clang"
// FULL: "executable": "[[CLANG]]"
// FULL: "file-deps": [
// FULL-NEXT: "[[PREFIX]]/t.c"
// FULL-NEXT: "[[PREFIX]]/top.h"
Expand Down

0 comments on commit 4b9ce22

Please sign in to comment.