From: Andreas Schneider Date: Thu, 13 Nov 2025 13:33:00 +0000 (+0100) Subject: s3:tests: Add debug output to test_net_tdb.sh X-Git-Tag: tdb-1.4.15~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af89770492e6c56a6add7c05d755def4593ba598;p=thirdparty%2Fsamba.git s3:tests: Add debug output to test_net_tdb.sh Signed-off-by: Andreas Schneider Reviewed-by: Martin Schwenke Reviewed-by: Anoop C S --- diff --git a/source3/script/tests/test_net_tdb.sh b/source3/script/tests/test_net_tdb.sh index 92847ad522a..dc1db226571 100755 --- a/source3/script/tests/test_net_tdb.sh +++ b/source3/script/tests/test_net_tdb.sh @@ -54,6 +54,10 @@ testit "Looking for record key of open file" \ # The assumption here is that only one file is open, so only one # record can exist in the database. +echo "=== Debug Output for 'tdbtool locking.tdb hexkeys' ==" +$samba_tdbtool "$LOCKDIR/locking.tdb" hexkeys +echo "=== End Debug Output ===" + # Output of 'tdbtool hexkeys' is in this format: #[000] 01 FD 00 00 00 00 00 00 56 02 5C 00 00 00 00 00 ....... V.\.... #[010] 00 00 00 00 00 00 00 00 ....... @@ -61,6 +65,10 @@ testit "Looking for record key of open file" \ key=0x$("$samba_tdbtool" "$LOCKDIR/locking.tdb" hexkeys | grep '\[' | cut -c 7-56 | sed -e 's/ //g' | tr -d '\n') +echo "=== Debug Output for key ==" +echo "${key}" +echo "=== End Debug Output ===" + testit "Looking for open file in locking.tdb" \ "$BINDIR/net" "$CONFIGURATION" tdb locking "$key" || failed=$((failed + 1))