r359512 - Make test more robust by writing stdout/stderr to different files.

Douglas Yung via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 29 15:57:16 PDT 2019


Author: dyung
Date: Mon Apr 29 15:57:15 2019
New Revision: 359512

URL: http://llvm.org/viewvc/llvm-project?rev=359512&view=rev
Log:
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.

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

Modified: cfe/trunk/test/Index/missing_vfs.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/missing_vfs.c?rev=359512&r1=359511&r2=359512&view=diff
==============================================================================
--- cfe/trunk/test/Index/missing_vfs.c (original)
+++ cfe/trunk/test/Index/missing_vfs.c Mon Apr 29 15:57:15 2019
@@ -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);




More information about the cfe-commits mailing list