diff --git a/tests/cli-colorspace.tap b/tests/cli-colorspace.tap
index 0491af9..5ba1f40 100755
--- a/tests/cli-colorspace.tap
+++ b/tests/cli-colorspace.tap
@@ -18,7 +18,7 @@
 . ${srcdir}/tests/common.shi
 
 depth=`eval ${MAGICK} xc:none -format '%[fx:QuantumRange]' info:-`
-if [ "X$depth" == "X255" ]; then
+if [ "X$depth" = "X255" ]; then
   echo "1..1"
   echo "ok"
   exit 0