[llvm] r338008 - [AsmParser] Fix preserve-comments-crlf.s on FreeBSD
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 25 23:07:04 PDT 2018
Author: maskray
Date: Wed Jul 25 23:07:03 2018
New Revision: 338008
URL: http://llvm.org/viewvc/llvm-project?rev=338008&view=rev
Log:
[AsmParser] Fix preserve-comments-crlf.s on FreeBSD
--strip-trailing-cr is a diffutils option which is also available on
BSD-licensed diff introduced in FreeBSD 11.2, however, it has a bug
comparing files mixing \r and \r\n. Use -b (POSIX) instead.
Modified:
llvm/trunk/test/MC/AsmParser/preserve-comments-crlf.s
Modified: llvm/trunk/test/MC/AsmParser/preserve-comments-crlf.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/AsmParser/preserve-comments-crlf.s?rev=338008&r1=338007&r2=338008&view=diff
==============================================================================
--- llvm/trunk/test/MC/AsmParser/preserve-comments-crlf.s (original)
+++ llvm/trunk/test/MC/AsmParser/preserve-comments-crlf.s Wed Jul 25 23:07:03 2018
@@ -1,6 +1,6 @@
#REQUIRES: shell
#RUN: llvm-mc -preserve-comments -n -triple i386-linux-gnu < %s > %t
- #RUN: diff --strip-trailing-cr %s %t
+ #RUN: diff -b %s %t
.text
foo: #Comment here
More information about the llvm-commits
mailing list