[cfe-commits] r85908 - in /cfe/trunk/test: Frontend/dependency-gen.c PCH/pr4489.c
Daniel Dunbar
daniel at zuster.org
Tue Nov 3 09:56:19 PST 2009
Author: ddunbar
Date: Tue Nov 3 11:56:18 2009
New Revision: 85908
URL: http://llvm.org/viewvc/llvm-project?rev=85908&view=rev
Log:
Fix tests to not depend on /dev/null existing.
Modified:
cfe/trunk/test/Frontend/dependency-gen.c
cfe/trunk/test/PCH/pr4489.c
Modified: cfe/trunk/test/Frontend/dependency-gen.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/dependency-gen.c?rev=85908&r1=85907&r2=85908&view=diff
==============================================================================
--- cfe/trunk/test/Frontend/dependency-gen.c (original)
+++ cfe/trunk/test/Frontend/dependency-gen.c Tue Nov 3 11:56:18 2009
@@ -1,7 +1,8 @@
// rdar://6533411
-// RUN: clang -MD -MF %t.d -c -x c -o %t.o /dev/null &&
+// RUN: clang -MD -MF %t.d -c -x c -o %t.o %s &&
// RUN: grep '.*dependency-gen.*:' %t.d &&
-// RUN: grep '/dev/null' %t.d &&
+// RUN: grep 'dependency-gen.c' %t.d &&
-// RUN: clang -M -x c /dev/null -o %t.deps &&
-// RUN: grep 'null.o: /dev/null' %t.deps
+// RUN: clang -M -x c %s -o %t.d &&
+// RUN: grep '.*dependency-gen.*:' %t.d &&
+// RUN: grep 'dependency-gen.c' %t.d
Modified: cfe/trunk/test/PCH/pr4489.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/PCH/pr4489.c?rev=85908&r1=85907&r2=85908&view=diff
==============================================================================
--- cfe/trunk/test/PCH/pr4489.c (original)
+++ cfe/trunk/test/PCH/pr4489.c Tue Nov 3 11:56:18 2009
@@ -1,5 +1,6 @@
// RUN: clang -x c-header -o %t.pch %s &&
-// RUN: clang -include %t -x c /dev/null -emit-llvm -S -o -
+// RUN: echo > %t.empty.c &&
+// RUN: clang -include %t -x c %t.empty.c -emit-llvm -S -o -
// PR 4489: Crash with PCH
// PR 4492: Crash with PCH (round two)
// PR 4509: Crash with PCH (round three)
@@ -37,4 +38,4 @@
{
extern char e;
fprintf (0, "asdf");
-}
\ No newline at end of file
+}
More information about the cfe-commits
mailing list