diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-03 17:56:18 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-03 17:56:18 +0000 |
commit | eec7d75a4edb8b58a5239d27cb86edd7ce08471b (patch) | |
tree | 703b1b3446c04d9088f42483f430cb060cf5ac6d /clang | |
parent | 9840df0c40b599525e7bd737041e9e738a43ca18 (diff) | |
download | bcm5719-llvm-eec7d75a4edb8b58a5239d27cb86edd7ce08471b.tar.gz bcm5719-llvm-eec7d75a4edb8b58a5239d27cb86edd7ce08471b.zip |
Fix tests to not depend on /dev/null existing.
llvm-svn: 85908
Diffstat (limited to 'clang')
-rw-r--r-- | clang/test/Frontend/dependency-gen.c | 9 | ||||
-rw-r--r-- | clang/test/PCH/pr4489.c | 5 |
2 files changed, 8 insertions, 6 deletions
diff --git a/clang/test/Frontend/dependency-gen.c b/clang/test/Frontend/dependency-gen.c index 4a1611aecff..953869912bb 100644 --- a/clang/test/Frontend/dependency-gen.c +++ b/clang/test/Frontend/dependency-gen.c @@ -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 diff --git a/clang/test/PCH/pr4489.c b/clang/test/PCH/pr4489.c index 7730819e921..d05d5cd7dda 100644 --- a/clang/test/PCH/pr4489.c +++ b/clang/test/PCH/pr4489.c @@ -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 @@ void y1(void) { extern char e; fprintf (0, "asdf"); -}
\ No newline at end of file +} |