diff --git a/tests/scripts/passwd-search b/tests/scripts/passwd-search
index 529ad834570b147193de085dce0b66f08f4d10e9..c454146498379cb2526084f341fede492c4a5bc5 100755
--- a/tests/scripts/passwd-search
+++ b/tests/scripts/passwd-search
@@ -97,7 +97,7 @@ kill -HUP $PID
 
 echo "Assuming everything is fine."
 #echo "Comparing results"
-#cmp $TESTOUT $SEARCHOUTMASTER
+#$CMP $TESTOUT $SEARCHOUTMASTER
 #if test $? != 0 ; then
 #	echo "Comparison failed"
 #	exit 1
diff --git a/tests/scripts/test005-modrdn b/tests/scripts/test005-modrdn
index c648da3b4b672a1aa5e72f697fcd176be433ba7a..ca5b98bea14b499620a5119bb6cc587e0278788e 100755
--- a/tests/scripts/test005-modrdn
+++ b/tests/scripts/test005-modrdn
@@ -118,7 +118,7 @@ echo "Filtering ldapsearch results..."
 echo "Filtering original ldif used to create database..."
 . $SRCDIR/scripts/acfilter.sh < $LDIF > $LDIFFLT
 echo "Comparing filter output..."
-cmp $SEARCHFLT $LDIFFLT
+$CMP $SEARCHFLT $LDIFFLT
 
 if test $? != 0 ; then
 	echo "comparison failed - modrdn operations did not complete correctly"
@@ -138,7 +138,7 @@ if test $RC != 0 ; then
 	echo "ldapsearch failed!"
 	exit $RC
 fi
-cmp $SEARCHOUT /dev/null
+$CMP $SEARCHOUT /dev/null
 if test $? != 0 ; then
 	echo "failure: ldapsearch found attribute that was to be removed!"
 	kill -HUP $PID
@@ -162,7 +162,7 @@ echo "Filtering ldapsearch results..."
 echo "Filtering original ldif used to create database..."
 . $SRCDIR/scripts/acfilter.sh < $LDIF > $LDIFFLT
 echo "Comparing filter output..."
-cmp $SEARCHFLT $LDIFFLT
+$CMP $SEARCHFLT $LDIFFLT
 
 if test $? != 0 ; then
 	echo "comparison failed - modrdn operations did not complete correctly"
@@ -203,7 +203,7 @@ echo "Filtering ldapsearch results..."
 echo "Filtering original ldif used to create database..."
 . $SRCDIR/scripts/acfilter.sh < $LDIF > $LDIFFLT
 echo "Comparing filter output..."
-cmp $SEARCHFLT $LDIFFLT
+$CMP $SEARCHFLT $LDIFFLT
 
 kill -HUP $PID
 if test $? != 0 ; then