summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDouglas Yung <douglas.yung@sony.com>2019-04-29 22:57:15 +0000
committerDouglas Yung <douglas.yung@sony.com>2019-04-29 22:57:15 +0000
commit71a069a6ebdaea8a2881b5f2837a0e75dcd74351 (patch)
tree45d286e3e223300b686977c77afb21af072b9c4c
parentfbebf8caed44af2049f8f1ebe470c76c03ec780b (diff)
Make test more robust by writing stdout/stderr to different files.
Our internal build bots were failing this test randomly as the stderr output was emitted to the file in the middle of the stdout output line that the test was checking. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@359512 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Index/missing_vfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Index/missing_vfs.c b/test/Index/missing_vfs.c
index 61aedd41cf..f3baf33d8d 100644
--- a/test/Index/missing_vfs.c
+++ b/test/Index/missing_vfs.c
@@ -1,6 +1,6 @@
-// RUN: c-index-test -test-load-source local %s -ivfsoverlay %t/does-not-exist.yaml &> %t.out
-// RUN: FileCheck -check-prefix=STDERR %s < %t.out
+// RUN: c-index-test -test-load-source local %s -ivfsoverlay %t/does-not-exist.yaml > %t.stdout 2> %t.stderr
+// RUN: FileCheck -check-prefix=STDERR %s < %t.stderr
// STDERR: fatal error: virtual filesystem overlay file '{{.*}}' not found
-// RUN: FileCheck %s < %t.out
+// RUN: FileCheck %s < %t.stdout
// CHECK: missing_vfs.c:[[@LINE+1]]:6: FunctionDecl=foo:[[@LINE+1]]:6
void foo(void);