aboutsummaryrefslogtreecommitdiff
path: root/clang/test/ExtractAPI/known_files_only.c
diff options
context:
space:
mode:
authorZixu Wang <zixu_wang@apple.com>2022-04-11 10:52:36 -0700
committerZixu Wang <zixu_wang@apple.com>2022-04-12 10:00:15 -0700
commite08c435401bc335c687b693591feafd7dbca1455 (patch)
tree21ed343e53f68ce1dac0cde67f9902109bd57ec8 /clang/test/ExtractAPI/known_files_only.c
parente90110e696c72e5f1f72df6d11a71acf38e4e400 (diff)
downloadllvm-e08c435401bc335c687b693591feafd7dbca1455.zip
llvm-e08c435401bc335c687b693591feafd7dbca1455.tar.gz
llvm-e08c435401bc335c687b693591feafd7dbca1455.tar.bz2
[clang][ExtractAPI][NFC] Fix sed delimiter in test
Fix path replacement in sed (properly this time) using lit regex_replacement. Differential Revision: https://reviews.llvm.org/D123526 Co-authored-by: Michele Scandale <michele.scandale@gmail.com> Co-authored-by: Zixu Wang <9819235+zixu-w@users.noreply.github.com>
Diffstat (limited to 'clang/test/ExtractAPI/known_files_only.c')
-rw-r--r--clang/test/ExtractAPI/known_files_only.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/ExtractAPI/known_files_only.c b/clang/test/ExtractAPI/known_files_only.c
index 6baba4e..ddb6e577 100644
--- a/clang/test/ExtractAPI/known_files_only.c
+++ b/clang/test/ExtractAPI/known_files_only.c
@@ -1,7 +1,7 @@
// RUN: rm -rf %t
// RUN: split-file %s %t
-// RUN: sed -e "s@INPUT_DIR@%/t@g" %t/reference.output.json.in >> \
-// RUN: %t/reference.output.json
+// RUN: sed -e "s@INPUT_DIR@%{/t:regex_replacement}@g" \
+// RUN: %t/reference.output.json.in >> %t/reference.output.json
// RUN: %clang -extract-api --product-name=GlobalRecord -target arm64-apple-macosx \
// RUN: %t/input1.h -o %t/output.json | FileCheck -allow-empty %s