From e08c435401bc335c687b693591feafd7dbca1455 Mon Sep 17 00:00:00 2001 From: Zixu Wang Date: Mon, 11 Apr 2022 10:52:36 -0700 Subject: [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 Co-authored-by: Zixu Wang <9819235+zixu-w@users.noreply.github.com> --- clang/test/ExtractAPI/known_files_only.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/test/ExtractAPI/known_files_only.c') 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 -- cgit v1.1