r207797 - use 'diff' rather than 'cmp -s' in a test
Lubos Lunak
l.lunak at centrum.cz
Thu May 1 14:36:09 PDT 2014
Author: llunak
Date: Thu May 1 16:36:08 2014
New Revision: 207797
URL: http://llvm.org/viewvc/llvm-project?rev=207797&view=rev
Log:
use 'diff' rather than 'cmp -s' in a test
That's what all tests use, no idea where I got the latter from.
Modified:
cfe/trunk/test/Frontend/rewrite-includes-messages.c
Modified: cfe/trunk/test/Frontend/rewrite-includes-messages.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/rewrite-includes-messages.c?rev=207797&r1=207796&r2=207797&view=diff
==============================================================================
--- cfe/trunk/test/Frontend/rewrite-includes-messages.c (original)
+++ cfe/trunk/test/Frontend/rewrite-includes-messages.c Thu May 1 16:36:08 2014
@@ -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
More information about the cfe-commits
mailing list