From: Stefan Metzmacher Date: Fri, 14 Jun 2024 11:40:35 +0000 (+0200) Subject: test_recycle.sh: make sure we don't see panics on the log files X-Git-Tag: tdb-1.4.11~348 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2916b6096e16fb44d659b7e60d3f3a569d037279;p=thirdparty%2Fsamba.git test_recycle.sh: make sure we don't see panics on the log files BUG: https://bugzilla.samba.org/show_bug.cgi?id=15659 Signed-off-by: Stefan Metzmacher Reviewed-by: Martin Schwenke Reviewed-by: Noel Power Reviewed-by: Volker Lendecke --- diff --git a/source3/script/tests/test_recycle.sh b/source3/script/tests/test_recycle.sh index 8c9291feb92..ba1d0a598b1 100755 --- a/source3/script/tests/test_recycle.sh +++ b/source3/script/tests/test_recycle.sh @@ -90,11 +90,16 @@ quit return 0 } +panic_count_0=$(grep -c PANIC $SMBD_TEST_LOG) testit "recycle" \ test_recycle || failed=$((failed + 1)) +panic_count_1=$(grep -c PANIC $SMBD_TEST_LOG) + +testit "check_panic" test $panic_count_0 -eq $panic_count_1 || failed=$(expr $failed + 1) + # # Cleanup. do_cleanup