test.bash: only check go files for naked panic

This found a lot of panics in the new file openssl_aead.c.
This commit is contained in:
Jakob Unterwurzacher 2021-09-04 11:56:43 +02:00
parent e2ec048a09
commit c9728247ed

View File

@ -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