add regression test for rbtdb.c version-mismatch issue

This commit is contained in:
Evan Hunt 2011-11-18 19:32:13 +00:00
parent 8c5dcdcdbd
commit 75c622f53b
3 changed files with 14 additions and 6 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: crash2,v 1.2 2011/10/28 11:46:50 marka Exp $
; $Id: crash2,v 1.3 2011/11/18 19:32:13 each Exp $
; a valid zone containing records that caused crashes
@ -23,3 +23,6 @@ ns A 10.53.0.3
; #18 in test1, crashed new ASSERT() in rbtdb.c
c1 A 172.16.1.1
; #16 in test2, crashed new ASSERT() in rbtdb.c
c2 A 172.16.1.16

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: test2,v 1.5 2011/10/13 01:32:32 vjs Exp $
; $Id: test2,v 1.6 2011/11/18 19:32:13 each Exp $
; Use comment lines instead of blank lines to combine update requests into
@ -53,6 +53,10 @@ send
; prefer QNAME to IP for a5-4.tld2
update add 32.4.5.168.192.rpz-ip.bl 300 CNAME a12.tld2.
update add a5-4.tld2.bl 300 CNAME a14.tld4.
; wildcard CNAMEs
;update add
;
; assert in rbtdb.c
; 16
update add 32.16.1.16.172.rpz-ip.bl 300 CNAME .
send
update add c2.crash2.tld3.bl-2 300 A 127.0.0.16
send

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.9 2011/10/28 11:46:50 marka Exp $
# $Id: tests.sh,v 1.10 2011/11/18 19:32:13 each Exp $
# test response policy zones (RPZ)
@ -231,6 +231,7 @@ nochange a4-1-aaaa.tld2 -tAAAA
addr 127.0.0.1 a5-1-2.tld2 # 11 prefer smallest policy address
addr 127.0.0.1 a5-3.tld2 # 12 prefer first conflicting IP zone
addr 14.14.14.14 a5-4.tld2 # 13 prefer QNAME to IP
nxdomain c2.crash2.tld3 # 16 assert in rbtdb.c
end_group
# check that IP addresses for previous group were deleted from the radix tree