From a23f94bc864f24c665110bf0c624cf1e0da5af69 Mon Sep 17 00:00:00 2001
From: Kurt Zeilenga <kurt@openldap.org>
Date: Tue, 20 Apr 2004 00:07:20 +0000
Subject: [PATCH] Improve portability

---
 tests/scripts/test025-limits | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/tests/scripts/test025-limits b/tests/scripts/test025-limits
index 607cab5bd1..efbb1f45cc 100755
--- a/tests/scripts/test025-limits
+++ b/tests/scripts/test025-limits
@@ -161,7 +161,7 @@ case $RC in
 	;;
 	4)
 		if test "x$COUNT" != "x" ; then
-			if test $SIZELIMIT = $COUNT ; then
+			if test "x$SIZELIMIT" = "x$COUNT" ; then
 				echo "...bumped into requested ($SIZELIMIT) size limit"
 			else
 				echo "...bumped into server-side size limit ($COUNT)"
@@ -190,7 +190,7 @@ case $RC in
 	;;
 	4)
 		if test "x$COUNT" != "x" ; then
-			if test $SIZELIMIT = $COUNT ; then
+			if test "x$SIZELIMIT" = "x$COUNT" ; then
 				echo "...bumped into requested ($SIZELIMIT) size limit"
 			else
 				echo "...bumped into server-side size limit ($COUNT)"
@@ -323,7 +323,7 @@ case $RC in
 	;;
 	4)
 		if test "x$COUNT" != "x" ; then
-			if test $SIZELIMIT = $COUNT ; then
+			if test "x$SIZELIMIT" = "x$COUNT" ; then
 				echo "...bumped into requested ($SIZELIMIT) size limit"
 			else
 				echo "...bumped into server-side size limit ($COUNT)"
@@ -351,7 +351,7 @@ case $RC in
 	;;
 	4)
 		if test "x$COUNT" != "x" ; then
-			if test $SIZELIMIT = $COUNT ; then
+			if test "x$SIZELIMIT" = "x$COUNT" ; then
 				echo "...bumped into requested ($SIZELIMIT) size limit"
 			else
 				echo "...bumped into server-side size limit ($COUNT)"
@@ -379,7 +379,7 @@ case $RC in
 	;;
 	4)
 		if test "x$COUNT" != "x" ; then
-			if test $SIZELIMIT = $COUNT ; then
+			if test "x$SIZELIMIT" = "x$COUNT" ; then
 				echo "...bumped into requested ($SIZELIMIT) size limit"
 			else
 				echo "...bumped into server-side size limit ($COUNT)"
@@ -407,7 +407,7 @@ case $RC in
 	;;
 	4)
 		if test "x$COUNT" != "x" ; then
-			if test $SIZELIMIT = $COUNT ; then
+			if test "x$SIZELIMIT" = "x$COUNT" ; then
 				echo "...bumped into requested ($SIZELIMIT) size limit"
 			else
 				echo "...bumped into server-side size limit ($COUNT)"
@@ -435,7 +435,7 @@ case $RC in
 	;;
 	4)
 		if test "x$COUNT" != "x" ; then
-			if test $SIZELIMIT = $COUNT ; then
+			if test "x$SIZELIMIT" = "x$COUNT" ; then
 				echo "...bumped into requested ($SIZELIMIT) size limit"
 			else
 				echo "...bumped into server-side size limit ($COUNT)"
@@ -462,7 +462,7 @@ case $RC in
 	;;
 	4)
 		if test "x$COUNT" != "x" ; then
-			if test $SIZELIMIT = $COUNT ; then
+			if test "x$SIZELIMIT" = "x$COUNT" ; then
 				echo "...bumped into requested ($SIZELIMIT) size limit"
 			else
 				echo "...bumped into server-side size limit ($COUNT)"
@@ -587,7 +587,7 @@ case $RC in
 	;;
 	4)
 		if test "x$COUNT" != "x" ; then
-			if test $SIZELIMIT = $COUNT ; then
+			if test "x$SIZELIMIT" = "x$COUNT" ; then
 				echo "...bumped into requested ($SIZELIMIT) size limit"
 			else
 				echo "...bumped into server-side size limit ($COUNT)"
@@ -616,7 +616,7 @@ case $RC in
 	;;
 	4)
 		if test "x$COUNT" != "x" ; then
-			if test $SIZELIMIT = $COUNT ; then
+			if test "x$SIZELIMIT" = "x$COUNT" ; then
 				echo "...bumped into requested ($SIZELIMIT) size limit"
 			else
 				echo "...bumped into server-side size limit ($COUNT)"
@@ -823,7 +823,7 @@ case $RC in
 	;;
 	4)
 		if test "x$COUNT" != "x" ; then
-			if test $SIZELIMIT = $COUNT ; then
+			if test "x$SIZELIMIT" = "x$COUNT" ; then
 				echo "...bumped into requested ($SIZELIMIT) size limit"
 			else
 				echo "...bumped into server-side size limit ($COUNT)"
@@ -855,7 +855,7 @@ case $RC in
 	;;
 	4)
 		if test "x$COUNT" != "x" ; then
-			if test $SIZELIMIT = $COUNT ; then
+			if test "x$SIZELIMIT" = "x$COUNT" ; then
 				echo "...bumped into requested ($SIZELIMIT) size limit"
 			else
 				echo "...bumped into server-side size limit ($COUNT)"
-- 
GitLab