4194. [bug] named-checkconf -p failed to properly print a port

range.  [RT #40634]
This commit is contained in:
Mark Andrews
2015-09-09 16:49:11 +10:00
parent f6e04b5923
commit fbd9aaa58c
4 changed files with 25 additions and 1 deletions

View File

@@ -247,5 +247,12 @@ grep "zone check-mx-cname/IN: loaded serial" < checkconf.out6 > /dev/null && ret
if [ $ret != 0 ]; then echo "I:failed"; ret=1; fi
status=`expr $status + $ret`
echo "I: check that named-checkconf -p properly print a port range"
ret=0
$CHECKCONF -p portrange-good.conf > checkconf.out7 2>&1 || ret=1
grep "range 8610 8614;" checkconf.out7 > /dev/null || ret=1
if [ $ret != 0 ]; then echo "I:failed"; ret=1; fi
status=`expr $status + $ret`
echo "I:exit status: $status"
exit $status