r194071 - Make test run reliably

Alp Toker alp at nuanti.com
Tue Nov 5 04:45:43 PST 2013


Author: alp
Date: Tue Nov  5 06:45:43 2013
New Revision: 194071

URL: http://llvm.org/viewvc/llvm-project?rev=194071&view=rev
Log:
Make test run reliably

llc waits for input on stdin, which was not provided in this test. It
was running only thanks to a quirk in the way lit concatenates
commands.

Modified:
    cfe/trunk/test/Preprocessor/iwithprefix.c

Modified: cfe/trunk/test/Preprocessor/iwithprefix.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Preprocessor/iwithprefix.c?rev=194071&r1=194070&r2=194071&view=diff
==============================================================================
--- cfe/trunk/test/Preprocessor/iwithprefix.c (original)
+++ cfe/trunk/test/Preprocessor/iwithprefix.c Tue Nov  5 06:45:43 2013
@@ -4,9 +4,8 @@
 // RUN: mkdir -p %t.tmps/first %t.tmps/second
 // RUN: %clang_cc1 -triple x86_64-unknown-unknown \
 // RUN:   -iprefix %t.tmps/ -iwithprefix second \
-// RUN:    -isystem %t.tmps/first -v 2> %t.out
-// RUN: cat %t.out
-// RUN: FileCheck < %t.out %s
+// RUN:    -isystem %t.tmps/first -v %s 2> %t.out
+// RUN: FileCheck %s < %t.out
 
 // CHECK: #include <...> search starts here:
 // CHECK: {{.*}}.tmps/first





More information about the cfe-commits mailing list