[cfe-commits] r156349 - /cfe/trunk/test/Index/availability.c

Douglas Gregor dgregor at apple.com
Mon May 7 17:29:05 PDT 2012


Author: dgregor
Date: Mon May  7 19:29:04 2012
New Revision: 156349

URL: http://llvm.org/viewvc/llvm-project?rev=156349&view=rev
Log:
Robustify test

Modified:
    cfe/trunk/test/Index/availability.c

Modified: cfe/trunk/test/Index/availability.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/availability.c?rev=156349&r1=156348&r2=156349&view=diff
==============================================================================
--- cfe/trunk/test/Index/availability.c (original)
+++ cfe/trunk/test/Index/availability.c Mon May  7 19:29:04 2012
@@ -2,5 +2,9 @@
 
 void foo(void) __attribute__((availability(macosx,introduced=10.4,deprecated=10.5,obsoleted=10.7), availability(ios,introduced=3.2,deprecated=4.1)));
 
-// RUN: c-index-test -test-load-source all %s | FileCheck %s
-// CHECK: (ios, introduced=3.2, deprecated=4.1)  (macosx, introduced=10.4, deprecated=10.5, obsoleted=10.7)
+// RUN: c-index-test -test-load-source all %s > %t
+// RUN: FileCheck -check-prefix=CHECK-1 %s < %t
+// RUN: FileCheck -check-prefix=CHECK-2 %s < %t
+// CHECK-1: (ios, introduced=3.2, deprecated=4.1) 
+// CHECK-2: (macosx, introduced=10.4, deprecated=10.5, obsoleted=10.7)
+





More information about the cfe-commits mailing list