r195047 - Make test/Driver/clang_f_opts.c not write to the test dir

Hans Wennborg hans at hanshq.net
Mon Nov 18 13:58:34 PST 2013


Author: hans
Date: Mon Nov 18 15:58:33 2013
New Revision: 195047

URL: http://llvm.org/viewvc/llvm-project?rev=195047&view=rev
Log:
Make test/Driver/clang_f_opts.c not write to the test dir

After r195009, the test would write a .o file to the test dir. Send that to
/dev/null instead. Also fix the typo in test/Frontend/invalid-o-level.c.

Modified:
    cfe/trunk/test/Driver/clang_f_opts.c
    cfe/trunk/test/Frontend/invalid-o-level.c

Modified: cfe/trunk/test/Driver/clang_f_opts.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/clang_f_opts.c?rev=195047&r1=195046&r2=195047&view=diff
==============================================================================
--- cfe/trunk/test/Driver/clang_f_opts.c (original)
+++ cfe/trunk/test/Driver/clang_f_opts.c Mon Nov 18 15:58:33 2013
@@ -110,7 +110,7 @@
 // CHECK-MAX-O: warning: -O4 is equivalent to -O3
 // CHECK-MAX-O: -O3
 
-// RUN: %clang -S -O20 %s 2>&1 | FileCheck -check-prefix=CHECK-INVALID-O %s
+// RUN: %clang -S -O20 -o /dev/null %s 2>&1 | FileCheck -check-prefix=CHECK-INVALID-O %s
 // CHECK-INVALID-O: warning: optimization level '-O20' is unsupported; using '-O3' instead.
 
 // Test that we don't error on these.

Modified: cfe/trunk/test/Frontend/invalid-o-level.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/invalid-o-level.c?rev=195047&r1=195046&r2=195047&view=diff
==============================================================================
--- cfe/trunk/test/Frontend/invalid-o-level.c (original)
+++ cfe/trunk/test/Frontend/invalid-o-level.c Mon Nov 18 15:58:33 2013
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -O900 -o /dev/nul 2> %t.log
+// RUN: %clang_cc1 %s -O900 -o /dev/null 2> %t.log
 // RUN: FileCheck %s -input-file=%t.log
 
 // CHECK: warning: optimization level '-O900' is unsupported; using '-O3' instead.





More information about the cfe-commits mailing list