2909. [bug] named-checkzone -p could die if "update-policy local;"

was specified in named.conf. [RT #21416]
This commit is contained in:
Mark Andrews
2010-06-02 01:07:47 +00:00
parent 29f0da7fb8
commit a27bbd21cf
3 changed files with 16 additions and 2 deletions

View File

@@ -12,7 +12,7 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: tests.sh,v 1.3 2007/06/19 23:47:01 tbox Exp $
# $Id: tests.sh,v 1.4 2010/06/02 01:07:47 marka Exp $
SYSTEMTESTTOP=..
. $SYSTEMTESTTOP/conf.sh
@@ -26,6 +26,11 @@ $CHECKCONF good.conf > /dev/null 2>&1 || ret=1
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
echo "I: checking that named-checkconf prints a known good config"
ret=0
$CHECKCONF -p good.conf > /dev/null 2>&1 || ret=1
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
echo "I: checking that named-checkconf handles a known bad config"
ret=1