]> granicus.if.org Git - clang/commitdiff
Make test run reliably
authorAlp Toker <alp@nuanti.com>
Tue, 5 Nov 2013 12:45:43 +0000 (12:45 +0000)
committerAlp Toker <alp@nuanti.com>
Tue, 5 Nov 2013 12:45:43 +0000 (12:45 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194071 91177308-0d34-0410-b5e6-96231b3b80d8

test/Preprocessor/iwithprefix.c

index 28ced43b473563ff6a81cd8acfe7f4f7f40a8392..59935ac1b8b5f7d258e58c9af2bb4569d49a00e8 100644 (file)
@@ -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