aboutsummaryrefslogtreecommitdiff
path: root/scripts/test
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-09-12 17:43:40 -0400
committerNick Mathewson <nickm@torproject.org>2017-09-12 19:03:04 -0400
commit4097d646d81310ceefbe9a3f6873aaaca6af138e (patch)
tree80fde289f323a4d4f726dc9b544e76b358638058 /scripts/test
parent3092c8bb3e5eef94016327a83b07bab1c4ab3694 (diff)
downloadtor-4097d646d81310ceefbe9a3f6873aaaca6af138e.tar.gz
tor-4097d646d81310ceefbe9a3f6873aaaca6af138e.zip
Use all+only the default checkers in scan-build script
Diffstat (limited to 'scripts/test')
-rwxr-xr-x[-rw-r--r--]scripts/test/scan-build.sh21
1 files changed, 12 insertions, 9 deletions
diff --git a/scripts/test/scan-build.sh b/scripts/test/scan-build.sh
index 36e69e6d00..765297ee69 100644..100755
--- a/scripts/test/scan-build.sh
+++ b/scripts/test/scan-build.sh
@@ -5,6 +5,18 @@
# This script is used for running a bunch of clang scan-build checkers
# on Tor.
+CHECKERS=""
+
+scan-build \
+ $CHECKERS \
+ ./configure
+
+make clean
+
+scan-build \
+ $CHECKERS \
+ make -j5 -k
+
CHECKERS="\
-disable-checker deadcode.DeadStores \
-enable-checker alpha.core.CastSize \
@@ -25,15 +37,6 @@ CHECKERS="\
-enable-checker alpha.core.TestAfterDivZero \
"
-scan-build \
- $CHECKERS \
- ./configure
-
-scan-build \
- $CHECKERS \
- make -j2 -k
-
-
# This one gives a false positive on every strcmp.
# -enable-checker alpha.core.PointerSub