From c3ad02e84009a2d32501cde8704b3b1271944184 Mon Sep 17 00:00:00 2001 From: Alexander Kornienko Date: Mon, 9 Apr 2018 15:12:10 +0000 Subject: [clang-tidy] Return non-zero exit code for clang errors. Summary: Updated tests broken by this change. Fixes https://bugs.llvm.org/show_bug.cgi?id=27628 Reviewers: ilya-biryukov Reviewed By: ilya-biryukov Subscribers: klimek, xazax.hun, cfe-commits Differential Revision: https://reviews.llvm.org/D45258 llvm-svn: 329579 --- clang-tools-extra/test/clang-tidy/fix-errors.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang-tools-extra/test/clang-tidy/fix-errors.cpp') diff --git a/clang-tools-extra/test/clang-tidy/fix-errors.cpp b/clang-tools-extra/test/clang-tidy/fix-errors.cpp index 639873e2524..0c026163203 100644 --- a/clang-tools-extra/test/clang-tidy/fix-errors.cpp +++ b/clang-tools-extra/test/clang-tidy/fix-errors.cpp @@ -1,5 +1,5 @@ // RUN: grep -Ev "// *[A-Z-]+:" %s > %t.cpp -// RUN: clang-tidy %t.cpp -checks='-*,google-explicit-constructor' -fix -- > %t.msg 2>&1 +// RUN: not clang-tidy %t.cpp -checks='-*,google-explicit-constructor' -fix -- > %t.msg 2>&1 // RUN: FileCheck -input-file=%t.cpp -check-prefix=CHECK-FIX %s // RUN: FileCheck -input-file=%t.msg -check-prefix=CHECK-MESSAGES %s // RUN: grep -Ev "// *[A-Z-]+:" %s > %t.cpp -- cgit v1.2.3