[MC][test] Fix non-portable GNU diff option
authorHubert Tong <hubert.reinterpretcast@gmail.com>
Thu, 16 Jan 2020 16:28:37 +0000 (11:28 -0500)
committerHubert Tong <hubert.reinterpretcast@gmail.com>
Thu, 16 Jan 2020 16:29:24 +0000 (11:29 -0500)
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

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

index fe8f508..830e512 100644 (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
index 90a71ea..27c5b2e 100644 (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