diff --git a/tests/scripts/test060-mt-hot b/tests/scripts/test060-mt-hot
index 7c34efe70fae18166b2491fa8d5bd976d207969f..68bc3b8697f8af5d5bc811d392e706d10dbaa583 100755
--- a/tests/scripts/test060-mt-hot
+++ b/tests/scripts/test060-mt-hot
@@ -14,7 +14,10 @@
 ## <http://www.OpenLDAP.org/license.html>.
 
 # The default debug level logs more than 1Gb:
-SLAPD_DEBUG=${SLAPD_DEBUG_MT_HOT-stats}
+case "$SLAPD_DEBUG_MT_HOT/$SLAPD_DEBUG" in
+/0 | /0x0 | /0X0 | /none | /NONE | /32768 | /0x8000 | 0X8000 | /0100000) :;;
+*) SLAPD_DEBUG=${SLAPD_DEBUG_MT_HOT-stats} ;;
+esac
 
 echo "running defines.sh"
 . $SRCDIR/scripts/defines.sh