diff --git a/test/testsslproxy b/test/testsslproxy
index 40469f591..70cf12342 100644
--- a/test/testsslproxy
+++ b/test/testsslproxy
@@ -5,6 +5,6 @@ echo 'Some of them may turn out being invalid, which is fine.'
 for auth in A B C BC; do
     for cond in A B C 'A|B&!C'; do
 	sh ./testssl $1 $2 $3 "-proxy_auth $auth -proxy_cond $cond"
-	if [ $? == 3 ]; then exit 1; fi
+	if [ $? = 3 ]; then exit 1; fi
     done
 done