From 6cae695cc798db60df44a06192f98c46787ecebf Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Mon, 28 Jan 2013 20:51:27 +0000 Subject: [PATCH] [driver] Revise this test to remove the dependency on the integrate assembler. llvm-svn: 173715 --- clang/test/Driver/output-file-cleanup.c | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/clang/test/Driver/output-file-cleanup.c b/clang/test/Driver/output-file-cleanup.c index 10a8134..a8a16d3 100644 --- a/clang/test/Driver/output-file-cleanup.c +++ b/clang/test/Driver/output-file-cleanup.c @@ -1,20 +1,18 @@ -// RUN: touch %t.o -// RUN: not %clang -c -DCRASH -o %t.o -MMD -MF %t.d %s -// RUN: test ! -f %t.o +// RUN: touch %t.s +// RUN: not %clang -S -DCRASH -o %t.s -MMD -MF %t.d %s +// RUN: test ! -f %t.s // RUN: test ! -f %t.d -// RUN: touch %t.o -// RUN: not %clang -c -DMISSING -o %t.o -MMD -MF %t.d %s -// RUN: test ! -f %t.o +// RUN: touch %t.s +// RUN: not %clang -S -DMISSING -o %t.s -MMD -MF %t.d %s +// RUN: test ! -f %t.s // RUN: test ! -f %t.d -// RUN: touch %t.o -// RUN: not %clang -c -o %t.o -MMD -MF %t.d %s -// RUN: test ! -f %t.o +// RUN: touch %t.s +// RUN: not %clang -S -o %t.s -MMD -MF %t.d %s +// RUN: test ! -f %t.s // RUN: test -f %t.d -// FIXME: %t.o is not touched with -no-integrated-as. -// XFAIL: mingw32,powerpc,arm // REQUIRES: shell // REQUIRES: crash-recovery @@ -28,13 +26,13 @@ invalid C code // RUN: touch %t1.c // RUN: echo "invalid C code" > %t2.c -// RUN: cd %T && not %clang -c %t1.c %t2.c -// RUN: test -f %t1.o -// RUN: test ! -f %t2.o +// RUN: cd %T && not %clang -S %t1.c %t2.c +// RUN: test -f %t1.s +// RUN: test ! -f %t2.s // RUN: touch %t1.c // RUN: touch %t2.c // RUN: chmod -r %t2.c -// RUN: cd %T && not %clang -c %t1.c %t2.c -// RUN: test -f %t1.o -// RUN: test ! -f %t2.o +// RUN: cd %T && not %clang -S %t1.c %t2.c +// RUN: test -f %t1.s +// RUN: test ! -f %t2.s -- 2.7.4