[PATCH] D72745: [MC][test] Fix non-portable GNU diff option

Hubert Tong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 16 08:38:23 PST 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG1794158f90f9: [MC][test] Fix non-portable GNU diff option (authored by hubert.reinterpretcast).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D72745/new/

https://reviews.llvm.org/D72745

Files:
  llvm/test/MC/ARM/preserve-comments-arm.s
  llvm/test/MC/AsmParser/preserve-comments.s


Index: llvm/test/MC/AsmParser/preserve-comments.s
===================================================================
--- llvm/test/MC/AsmParser/preserve-comments.s
+++ llvm/test/MC/AsmParser/preserve-comments.s
@@ -1,5 +1,5 @@
 	#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
Index: llvm/test/MC/ARM/preserve-comments-arm.s
===================================================================
--- llvm/test/MC/ARM/preserve-comments-arm.s
+++ llvm/test/MC/ARM/preserve-comments-arm.s
@@ -1,6 +1,6 @@
 	@RUN: llvm-mc -preserve-comments -n -triple arm-eabi < %s > %t
 	@RUN: sed 's/#[C]omment/@Comment/g' %s > %t2
-	@RUN: diff --strip-trailing-cr %t %t2
+	@RUN: diff -b %t %t2
 	.text
 
 	mov	r0, r0


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72745.238514.patch
Type: text/x-patch
Size: 810 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200116/8cbd446d/attachment.bin>


More information about the llvm-commits mailing list