4207. [bug] Handle class mismatches with raw zone files.

[RT #40746]

(cherry picked from commit 0f2ecf4b5c)
This commit is contained in:
Mark Andrews
2015-09-16 10:43:22 +10:00
parent c045de62c2
commit 246cad50c6
7 changed files with 34 additions and 4 deletions

View File

@@ -95,5 +95,13 @@ n=`expr $n + 1`
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
echo "I:checking that raw zone with bad class is handled ($n)"
ret=0
$CHECKZONE -f raw example zones/bad-badclass.raw > test.out.$n 2>&1 && ret=1
grep "failed: bad class" test.out.$n >/dev/null || ret=1
n=`expr $n + 1`
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
echo "I:exit status: $status"
exit $status