From be5df46f26ce05b36e0b1091ac961f553b9ea967 Mon Sep 17 00:00:00 2001 From: Hans Wennborg <hans@hanshq.net> Date: Mon, 18 Nov 2013 21:58:33 +0000 Subject: [PATCH] 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. llvm-svn: 195047 --- clang/test/Driver/clang_f_opts.c | 2 +- clang/test/Frontend/invalid-o-level.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/test/Driver/clang_f_opts.c b/clang/test/Driver/clang_f_opts.c index e6867ab18a2c..3f3a8f6db077 100644 --- a/clang/test/Driver/clang_f_opts.c +++ b/clang/test/Driver/clang_f_opts.c @@ -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. diff --git a/clang/test/Frontend/invalid-o-level.c b/clang/test/Frontend/invalid-o-level.c index 1b800188e0e4..1b5c51f65a5a 100644 --- a/clang/test/Frontend/invalid-o-level.c +++ b/clang/test/Frontend/invalid-o-level.c @@ -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.