]> granicus.if.org Git - clang/commitdiff
[diagtool] Write to llvm::outs() by default instead of llvm::errs()
authorJordan Rose <jordan_rose@apple.com>
Fri, 22 Jun 2012 00:33:20 +0000 (00:33 +0000)
committerJordan Rose <jordan_rose@apple.com>
Fri, 22 Jun 2012 00:33:20 +0000 (00:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158954 91177308-0d34-0410-b5e6-96231b3b80d8

test/Misc/warning-flags-enabled.c
test/Misc/warning-flags.c
tools/diagtool/diagtool_main.cpp

index 359ba708e297f8256bf1b059aeb6a1742b74599e..1c1c38f864d778be4ef9c2ec67f87dc2d9a9ba7c 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: diagtool show-enabled %s 2>&1 | FileCheck %s
+// RUN: diagtool show-enabled %s | FileCheck %s
 //
 // This shows warnings which are on by default.
 // We just check a few to make sure it's doing something sensible.
@@ -8,18 +8,18 @@
 // CHECK: warn_unterminated_string
 
 
-// RUN: diagtool show-enabled -Wno-everything %s 2>&1 | count 0
+// RUN: diagtool show-enabled -Wno-everything %s | count 0
 
 
-// RUN: diagtool show-enabled -Wno-everything -Wobjc-root-class %s 2>&1 | FileCheck -check-prefix CHECK-WARN %s
-// RUN: diagtool show-enabled -Wno-everything -Werror=objc-root-class %s 2>&1 | FileCheck -check-prefix CHECK-ERROR %s
-// RUN: diagtool show-enabled -Wno-everything -Wfatal-errors=objc-root-class %s 2>&1 | FileCheck -check-prefix CHECK-FATAL %s
+// RUN: diagtool show-enabled -Wno-everything -Wobjc-root-class %s | FileCheck -check-prefix CHECK-WARN %s
+// RUN: diagtool show-enabled -Wno-everything -Werror=objc-root-class %s | FileCheck -check-prefix CHECK-ERROR %s
+// RUN: diagtool show-enabled -Wno-everything -Wfatal-errors=objc-root-class %s | FileCheck -check-prefix CHECK-FATAL %s
 //
 // CHECK-WARN:  W  warn_objc_root_class_missing [-Wobjc-root-class]
 // CHECK-ERROR: E  warn_objc_root_class_missing [-Wobjc-root-class]
 // CHECK-FATAL: F  warn_objc_root_class_missing [-Wobjc-root-class]
 
-// RUN: diagtool show-enabled --no-levels -Wno-everything -Wobjc-root-class %s 2>&1 | FileCheck -check-prefix CHECK-NO-LEVELS %s
+// RUN: diagtool show-enabled --no-levels -Wno-everything -Wobjc-root-class %s | FileCheck -check-prefix CHECK-NO-LEVELS %s
 //
 // CHECK-NO-LEVELS-NOT: W
 // CHECK-NO-LEVELS-NOT: E
index cdfb38fb41668648019418a6925e41d9ef361a6a..035dd34fb36629a4a4bd231ad34eade6ab4d2338 100644 (file)
@@ -1,4 +1,4 @@
-RUN: diagtool list-warnings 2>&1 | FileCheck %s
+RUN: diagtool list-warnings | FileCheck %s
 
 This test serves two purposes:
 
index 43616fa9e2f6eabe461c94a19a8a2ea66635260f..4eef54dbfece9be62fe6d385f21847e3789597b5 100644 (file)
@@ -18,7 +18,7 @@ using namespace diagtool;
 int main(int argc, char *argv[]) {
   if (argc > 1)
     if (DiagTool *tool = diagTools->getTool(argv[1]))
-      return tool->run(argc - 2, &argv[2], llvm::errs());
+      return tool->run(argc - 2, &argv[2], llvm::outs());
 
   llvm::errs() << "usage: diagtool <command> [<args>]\n\n";
   diagTools->printCommands(llvm::errs());