diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-05-08 00:29:04 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-05-08 00:29:04 +0000 |
commit | 7032265efe50d7218312f1fc9f2b58829db49d1b (patch) | |
tree | 08eb0d51a7ece489413b939bc9986d49bd71c271 | |
parent | 258796e3c7311a23528b45ca601439ebd7746ea4 (diff) |
Robustify test
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156349 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Index/availability.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/Index/availability.c b/test/Index/availability.c index ddbeb3a42d..e6b1273aca 100644 --- a/test/Index/availability.c +++ b/test/Index/availability.c @@ -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) + |