From 35fb45afecf73d68b0527a9d54a0b32f0078607c Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Wed, 22 Nov 2000 01:21:44 +0000 Subject: [PATCH] when checking whether the TC flag is set, ignore the other flags - in particular, we don't care whether the AD flag is set or not --- bin/tests/system/limits/tests.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/tests/system/limits/tests.sh b/bin/tests/system/limits/tests.sh index 348b7286cf..305913ab87 100644 --- a/bin/tests/system/limits/tests.sh +++ b/bin/tests/system/limits/tests.sh @@ -15,7 +15,7 @@ # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION # WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -# $Id: tests.sh,v 1.11 2000/11/20 17:53:28 gson Exp $ +# $Id: tests.sh,v 1.12 2000/11/22 01:21:44 gson Exp $ SYSTEMTESTTOP=.. . $SYSTEMTESTTOP/conf.sh @@ -51,7 +51,10 @@ $PERL ../digcomp.pl knowngood.dig.out.a-maximum-rrset dig.out.ns1 || status=1 echo "I:exceed maximum rrset (5000 A records)" $DIG +tcp +norec 5000.example. @10.53.0.1 a -p 5300 > dig.out.ns1 || status=1 # Look for truncation bit (tc). -grep 'flags: qr aa tc ad;' dig.out.ns1 > /dev/null || status=1 +grep 'flags: .*tc.*;' dig.out.ns1 > /dev/null || { + echo "I:TC bit was not set" + status=1 +} echo "I:exit status: $status" exit $status