[llvm] [llvm-rc] Handle Windows line endings in tag-html test (PR #113000)

Daniel Paoliello via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 21 10:33:21 PDT 2024


https://github.com/dpaoliello updated https://github.com/llvm/llvm-project/pull/113000

>From 509f48254dcfc53893704f0de2e8e1043f3fef05 Mon Sep 17 00:00:00 2001
From: "Daniel Paoliello (HE/HIM)" <danpao at microsoft.com>
Date: Fri, 18 Oct 2024 16:21:50 -0700
Subject: [PATCH] Handle Windows line endings in tag-html test

---
 llvm/test/tools/llvm-rc/tag-html.test | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/llvm/test/tools/llvm-rc/tag-html.test b/llvm/test/tools/llvm-rc/tag-html.test
index 3620fe954ba1c8..e0fe2e659dd0ee 100644
--- a/llvm/test/tools/llvm-rc/tag-html.test
+++ b/llvm/test/tools/llvm-rc/tag-html.test
@@ -1,5 +1,7 @@
 ; RUN: rm -rf %t && mkdir %t && cd %t
-; RUN: cp %p/Inputs/webpage*.html .
+; Remove `\r` in case Git on Windows decided to checkout with Windows newlines.
+; RUN: tr -d '\r' <%p/Inputs/webpage1.html > ./webpage1.html
+; RUN: tr -d '\r' <%p/Inputs/webpage2.html > ./webpage2.html
 ; RUN: llvm-rc -no-preprocess /FO %t/tag-html.res -- %p/Inputs/tag-html.rc
 ; RUN: llvm-readobj %t/tag-html.res | FileCheck %s --check-prefix HTML
 



More information about the llvm-commits mailing list