diff --git a/bin/tests/system/unknown/tests.sh b/bin/tests/system/unknown/tests.sh index 0b57f0f380..f52b50e8e5 100644 --- a/bin/tests/system/unknown/tests.sh +++ b/bin/tests/system/unknown/tests.sh @@ -226,7 +226,7 @@ status=$((status + ret)) n=$((n+1)) echo_i "check that 'TYPE353 \# cat' produces 'not a valid number' ($n)" ret=0 -$CHECKZONE nan.bad zones/nan.bad > check.out 2>&1 +$CHECKZONE nan.bad zones/nan.bad > check.out 2>&1 && ret=1 grep "not a valid number" check.out > /dev/null || ret=1 [ $ret = 0 ] || echo_i "failed" status=$((status + ret))