4207. [bug] Handle class mismatches with raw zone files.
[RT #40746]
(cherry picked from commit 0f2ecf4b5c)
This commit is contained in:
@@ -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
|
||||
|
||||
1
bin/tests/system/checkzone/zones/.gitattributes
vendored
Normal file
1
bin/tests/system/checkzone/zones/.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
||||
*.raw -text
|
||||
BIN
bin/tests/system/checkzone/zones/bad-badclass.raw
Normal file
BIN
bin/tests/system/checkzone/zones/bad-badclass.raw
Normal file
Binary file not shown.
Reference in New Issue
Block a user