r187376 - Make this test not try to write on object file and test all of the

Chandler Carruth chandlerc at gmail.com
Mon Jul 29 13:29:53 PDT 2013


Author: chandlerc
Date: Mon Jul 29 15:29:53 2013
New Revision: 187376

URL: http://llvm.org/viewvc/llvm-project?rev=187376&view=rev
Log:
Make this test not try to write on object file and test all of the
output rather than just part of it.

Also, remove the frighteningly ancient comment about not working with
the gcc-driver. (!!!)

Modified:
    cfe/trunk/test/Driver/qa_override.c

Modified: cfe/trunk/test/Driver/qa_override.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/qa_override.c?rev=187376&r1=187375&r2=187376&view=diff
==============================================================================
--- cfe/trunk/test/Driver/qa_override.c (original)
+++ cfe/trunk/test/Driver/qa_override.c Mon Jul 29 15:29:53 2013
@@ -1,8 +1,5 @@
 // RUN: env QA_OVERRIDE_GCC3_OPTIONS="#+-Os +-Oz +-O +-O3 +-Oignore +a +b +c xb Xa Omagic ^-ccc-print-options  " %clang x -O2 b -O3 2>&1 | FileCheck %s
-// RUN: env QA_OVERRIDE_GCC3_OPTIONS="x-Werror +-mfoo" %clang -Werror %s -c 2>&1 | FileCheck %s -check-prefix=RM-WERROR
-
-// FIXME: It seems doesn't work with gcc-driver.
-// REQUIRES: clang-driver
+// RUN: env QA_OVERRIDE_GCC3_OPTIONS="x-Werror +-mfoo" %clang -Werror %s -c -### 2>&1 | FileCheck %s -check-prefix=RM-WERROR
 
 // CHECK-NOT: ###
 // CHECK: Option 0 - Name: "-ccc-print-options", Values: {}
@@ -13,4 +10,5 @@
 // RM-WERROR: ### QA_OVERRIDE_GCC3_OPTIONS: x-Werror +-mfoo
 // RM-WERROR-NEXT: ### Deleting argument -Werror
 // RM-WERROR-NEXT: ### Adding argument -mfoo at end
-// RM-WERROR-NEXT: warning: argument unused during compilation: '-mfoo'
+// RM-WERROR: warning: argument unused during compilation: '-mfoo'
+// RM-WERROR-NOT: "-Werror"





More information about the cfe-commits mailing list