summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/select-checks.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2018-03-22 14:18:20 +0000
committerAlexander Kornienko <alexfh@google.com>2018-03-22 14:18:20 +0000
commit301faac18be3855f2b742accc5e1b0f71ea8e3c7 (patch)
tree2afae9f5ee2ed4bf17082abb90c8d01ba988182c /clang-tools-extra/test/clang-tidy/select-checks.cpp
parent2dee62bd0af3178b656ba0409bb9f8af89c7ac2d (diff)
downloadbcm5719-llvm-301faac18be3855f2b742accc5e1b0f71ea8e3c7.tar.gz
bcm5719-llvm-301faac18be3855f2b742accc5e1b0f71ea8e3c7.zip
clang-tidy, modularize: return non-zero exit code on errors
When no inputs given, the tools should not only produce the help message, but also return a non-zero exit code. Fixed tests accordingly. llvm-svn: 328199
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/select-checks.cpp')
-rw-r--r--clang-tools-extra/test/clang-tidy/select-checks.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/test/clang-tidy/select-checks.cpp b/clang-tools-extra/test/clang-tidy/select-checks.cpp
index 12d05b4a729..791def75b18 100644
--- a/clang-tools-extra/test/clang-tidy/select-checks.cpp
+++ b/clang-tools-extra/test/clang-tidy/select-checks.cpp
@@ -1,5 +1,5 @@
// RUN: clang-tidy %s -checks='-*,llvm-namespace-*' -- 2>&1 | FileCheck -implicit-check-not='{{warning:|error:}}' %s
-// RUN: clang-tidy %s -checks='-*,an-unknown-check' -- 2>&1 | FileCheck -implicit-check-not='{{warning:|error:}}' -check-prefix=CHECK2 %s
+// RUN: not clang-tidy %s -checks='-*,an-unknown-check' -- 2>&1 | FileCheck -implicit-check-not='{{warning:|error:}}' -check-prefix=CHECK2 %s
// CHECK2: Error: no checks enabled.
OpenPOWER on IntegriCloud