aboutsummaryrefslogtreecommitdiff
path: root/test.bash
diff options
context:
space:
mode:
authorJakob Unterwurzacher2021-09-04 11:56:43 +0200
committerJakob Unterwurzacher2021-09-07 18:14:05 +0200
commitc9728247edb4cb29755908629528b22c8419a11d (patch)
treea54cd1e6cbb53b445a0fb983104b3ac0856657ff /test.bash
parente2ec048a09889b2bf71e8bbfef9f0584ff7d69db (diff)
test.bash: only check go files for naked panic
This found a lot of panics in the new file openssl_aead.c.
Diffstat (limited to 'test.bash')
-rwxr-xr-xtest.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/test.bash b/test.bash
index 99884a8..b0faf68 100755
--- a/test.bash
+++ b/test.bash
@@ -79,7 +79,7 @@ else
rm -Rf "$TESTDIR"
fi
-if grep -R "panic(" ./*.go internal ; then
+if find internal -type f -name \*.go -print0 | xargs -0 grep "panic("; then
echo "$MYNAME: Please use log.Panic instead of naked panic!"
exit 1
fi