]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
test_recycle.sh: make sure we don't see panics on the log files
authorStefan Metzmacher <metze@samba.org>
Fri, 14 Jun 2024 11:40:35 +0000 (13:40 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 19 Jun 2024 09:07:36 +0000 (09:07 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15659

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Noel Power <noel.power@suse.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/script/tests/test_recycle.sh

index 8c9291feb92670a08717d71a408f1d204c991722..ba1d0a598b145d5c1b3fb7d0eaed3364fe21d652 100755 (executable)
@@ -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