[NFC][tests] Replace use of GNUisms in usage of diff
... the POSIX options suffice. This maintains compatibility with the system `diff` on platforms like AIX.
This commit is contained in:
parent
00808e321c
commit
09fc7796e5
|
@ -1,8 +1,8 @@
|
|||
RUN: apinotes-test %S/Inputs/Frameworks/SimpleKit.framework/Headers/SimpleKit.apinotes > %t.result
|
||||
RUN: not diff --strip-trailing-cr --ed %t.result %S/Inputs/Frameworks/SimpleKit.framework/Headers/SimpleKit.apinotes | FileCheck %s
|
||||
RUN: not diff -b -e %t.result %S/Inputs/Frameworks/SimpleKit.framework/Headers/SimpleKit.apinotes | FileCheck %s
|
||||
|
||||
The `--ed` parameter to `diff` is not implemented in the builtin diff, assume
|
||||
that we have a GNU compatible diff when we have a shell.
|
||||
The `-e` option of `diff` is not implemented in the builtin diff, assume
|
||||
that we have a POSIX compatible diff when we have a shell.
|
||||
REQUIRES: shell
|
||||
|
||||
We expect only the document markers to be emitted
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
RUN: apinotes-test %S/Inputs/Frameworks/Simple.framework/Headers/Simple.apinotes > %t.result
|
||||
RUN: not diff --strip-trailing-cr %S/Inputs/Frameworks/Simple.framework/Headers/Simple.apinotes %t.result | FileCheck %s
|
||||
RUN: not diff -b %S/Inputs/Frameworks/Simple.framework/Headers/Simple.apinotes %t.result | FileCheck %s
|
||||
|
||||
Avoid Windows as the diff output differs due to line-endings and different diff
|
||||
implementations.
|
||||
|
|
Loading…
Reference in a new issue