[clang] f9096b8 - [clang][deps] NFC: Align path separator conversion in tests
Jan Svoboda via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 16 05:40:36 PDT 2022
Author: Jan Svoboda
Date: 2022-03-16T13:40:09+01:00
New Revision: f9096b89ddc1efe30fc6235abf79253544831fe0
URL: https://github.com/llvm/llvm-project/commit/f9096b89ddc1efe30fc6235abf79253544831fe0
DIFF: https://github.com/llvm/llvm-project/commit/f9096b89ddc1efe30fc6235abf79253544831fe0.diff
LOG: [clang][deps] NFC: Align path separator conversion in tests
This is the only test in the ClangScanDeps suite that doesn't convert (double) backslashes to forward slashes.
Added:
Modified:
clang/test/ClangScanDeps/header-search-pruning.cpp
Removed:
################################################################################
diff --git a/clang/test/ClangScanDeps/header-search-pruning.cpp b/clang/test/ClangScanDeps/header-search-pruning.cpp
index c966c20b4a4c8..0632cccbac643 100644
--- a/clang/test/ClangScanDeps/header-search-pruning.cpp
+++ b/clang/test/ClangScanDeps/header-search-pruning.cpp
@@ -6,13 +6,13 @@
// RUN: sed -e "s|DIR|%/t|g" -e "s|DEFINES|-DINCLUDE_A -DINCLUDE_B|g" %S/Inputs/header-search-pruning/cdb.json > %t/cdb_ab.json
//
// RUN: clang-scan-deps -compilation-database %t/cdb_a.json -format experimental-full -optimize-args >> %t/result_a.json
-// RUN: cat %t/result_a.json | sed 's/\\/\//g' | FileCheck --check-prefixes=CHECK_A %s
+// RUN: cat %t/result_a.json | sed 's:\\\\\?:/:g' | FileCheck --check-prefixes=CHECK_A %s
//
// RUN: clang-scan-deps -compilation-database %t/cdb_b.json -format experimental-full -optimize-args >> %t/result_b.json
-// RUN: cat %t/result_b.json | sed 's/\\/\//g' | FileCheck --check-prefixes=CHECK_B %s
+// RUN: cat %t/result_b.json | sed 's:\\\\\?:/:g' | FileCheck --check-prefixes=CHECK_B %s
//
// RUN: clang-scan-deps -compilation-database %t/cdb_ab.json -format experimental-full -optimize-args >> %t/result_ab.json
-// RUN: cat %t/result_ab.json | sed 's/\\/\//g' | FileCheck --check-prefixes=CHECK_AB %s
+// RUN: cat %t/result_ab.json | sed 's:\\\\\?:/:g' | FileCheck --check-prefixes=CHECK_AB %s
#include "mod.h"
More information about the cfe-commits
mailing list