From 88bd2601c013e349fa907b3f878312a94e16e9f6 Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Tue, 21 Feb 2023 14:37:18 -0800 Subject: [PATCH] [Test] Set gitattributes for line endings in tapi inputs LLVM's parsing of .tbd files errors out with "unsupported file type" if the tbd files have CRLF line endings. Add gitattributes for the inputs to avoid test failures on windows. Differential Revision: https://reviews.llvm.org/D144527 --- llvm/.gitattributes | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/.gitattributes b/llvm/.gitattributes index b07b652..fe68b09 100644 --- a/llvm/.gitattributes +++ b/llvm/.gitattributes @@ -22,7 +22,9 @@ test/MC/AsmParser/preserve-comments-crlf.s text eol=crlf test/tools/llvm-mca/X86/directives-handle-crlf.s text eol=crlf # These files must have LF line endings because the test requires exact matching +test/Object/Inputs/*.tbd eol=lf test/tools/llvm-strings/radix.test text eol=lf +test/tools/llvm-tapi-diff/Inputs/*.tbd text eol=lf test/tools/split-file/basic.test text eol=lf test/tools/split-file/Inputs/basic-*.txt eol=lf test/tools/split-file/basic.crlf.test text eol=crlf -- 2.7.4