test.bash: only check go files for naked panic

This found a lot of panics in the new file openssl_aead.c.
master
Jakob Unterwurzacher 1 year ago
parent e2ec048a09
commit c9728247ed
  1. 2
      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

Loading…
Cancel
Save