[master] Refactor reclimit system test

4823.	[test]		Refactor reclimit system test to improve its
			reliability and speed. [RT #46632]
This commit is contained in:
Michał Kępień
2017-11-21 10:27:46 +01:00
parent 900215654b
commit 6035d557c4
8 changed files with 210 additions and 182 deletions

View File

@@ -9,6 +9,20 @@
SYSTEMTESTTOP=..
. $SYSTEMTESTTOP/conf.sh
if $PERL -e 'use Net::DNS;' 2>/dev/null
then
if $PERL -e 'use Net::DNS; die if ($Net::DNS::VERSION <= 0.78);' 2>/dev/null
then
:
else
echo "I:Net::DNS versions up to 0.78 have a bug that causes this test to fail: please update." >&2
exit 1
fi
else
echo "I:This test requires the Net::DNS library." >&2
exit 1
fi
if $PERL -e 'use Net::DNS::Nameserver;' 2>/dev/null
then
: