]> granicus.if.org Git - clang/commitdiff
use 'diff' rather than 'cmp -s' in a test
authorLubos Lunak <l.lunak@centrum.cz>
Thu, 1 May 2014 21:36:08 +0000 (21:36 +0000)
committerLubos Lunak <l.lunak@centrum.cz>
Thu, 1 May 2014 21:36:08 +0000 (21:36 +0000)
That's what all tests use, no idea where I got the latter from.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207797 91177308-0d34-0410-b5e6-96231b3b80d8

test/Frontend/rewrite-includes-messages.c

index 37b970669f16dbde68cae8e5e1f344e1df66e75f..b7170afc0e00f6cb28ea38e8bc99a4d855fef9cc 100644 (file)
@@ -1,6 +1,6 @@
 // RUN: %clang -E -frewrite-includes %s -I%S/Inputs/ | %clang -Wall -Wunused-macros -x c -c - 2> %t.1
 // RUN: %clang -I%S/Inputs/ -Wall -Wunused-macros -c %s 2> %t.2
-// RUN: cmp -s %t.1 %t.2
+// RUN: diff %t.1 %t.2
 // expected-no-diagnostics
 // REQUIRES: shell