[llvm] 88bd260 - [Test] Set gitattributes for line endings in tapi inputs

Justin Bogner via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 21 16:07:51 PST 2023


Author: Justin Bogner
Date: 2023-02-21T16:07:08-08:00
New Revision: 88bd2601c013e349fa907b3f878312a94e16e9f6

URL: https://github.com/llvm/llvm-project/commit/88bd2601c013e349fa907b3f878312a94e16e9f6
DIFF: https://github.com/llvm/llvm-project/commit/88bd2601c013e349fa907b3f878312a94e16e9f6.diff

LOG: [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

Added: 
    

Modified: 
    llvm/.gitattributes

Removed: 
    


################################################################################
diff  --git a/llvm/.gitattributes b/llvm/.gitattributes
index b07b652eee02..fe68b096c31f 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


        


More information about the llvm-commits mailing list