From c9728247edb4cb29755908629528b22c8419a11d Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sat, 4 Sep 2021 11:56:43 +0200 Subject: [PATCH] test.bash: only check go files for naked panic This found a lot of panics in the new file openssl_aead.c. --- test.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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