[MC][test] Fix non-portable GNU diff option

Summary: This patch replaces the non-portable GNU diff option `--strip-trailing-cr` with the POSIX `-b` option in two test files.

Reviewers: daltenty, jasonliu

Reviewed By: daltenty

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D72745
This commit is contained in:
Hubert Tong 2020-01-16 11:28:37 -05:00
parent 81eaa3ddd0
commit 1794158f90
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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