maint: use "returns_" rather than explicit comparison with "$?"
[debian/gzip] / tests / zdiff
index 0bb7c7dfdcf93ecd2614521a941a962871465907..eee47b371f380da0396fe1221eebd59e51084a7f 100755 (executable)
@@ -32,8 +32,7 @@ cat <<EOF > exp
 EOF
 
 fail=0
-zdiff a.gz b.gz > out 2>&1
-test $? = 1 || fail=1
+returns_ 1 zdiff a.gz b.gz > out 2>&1 || fail=1
 
 compare exp out || fail=1