mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
2180. [cleanup] Remove bit test from 'compress_test' as they
are no longer needed. [RT #16497]
This commit is contained in:
parent
40aadb6a14
commit
fe3220466e
2 changed files with 4 additions and 25 deletions
3
CHANGES
3
CHANGES
|
|
@ -1,3 +1,6 @@
|
|||
2180. [cleanup] Remove bit test from 'compress_test' as they
|
||||
are no longer needed. [RT #16497]
|
||||
|
||||
2179. [func] 'rndc command zone' will now find 'zone' if it is
|
||||
unique to all the views. [RT #16821]
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: compress_test.c,v 1.31 2006/02/26 23:49:50 marka Exp $ */
|
||||
/* $Id: compress_test.c,v 1.32 2007/05/15 05:39:59 marka Exp $ */
|
||||
|
||||
/*! \file */
|
||||
|
||||
|
|
@ -41,11 +41,6 @@ unsigned char plain[] = "\003yyy\003foo\0\003bar\003yyy\003foo\0\003"
|
|||
/*
|
||||
* Result concatenate (plain1, plain2, plain2, plain3).
|
||||
*/
|
||||
unsigned char bit1[] = "\101\010b";
|
||||
unsigned char bit2[] = "\101\014b\260";
|
||||
unsigned char bit3[] = "\101\020b\264";
|
||||
unsigned char bit[] = "\101\010b\0\101\014b\260\0\101\014b\260\0\101\020b\264";
|
||||
|
||||
int raw = 0;
|
||||
int verbose = 0;
|
||||
|
||||
|
|
@ -92,25 +87,6 @@ main(int argc, char *argv[]) {
|
|||
sizeof(plain));
|
||||
test(DNS_COMPRESS_ALL, &name1, &name2, &name3, plain, sizeof(plain));
|
||||
|
||||
dns_name_init(&name1, NULL);
|
||||
region.base = bit1;
|
||||
region.length = sizeof(bit1);
|
||||
dns_name_fromregion(&name1, ®ion);
|
||||
|
||||
dns_name_init(&name2, NULL);
|
||||
region.base = bit2;
|
||||
region.length = sizeof(bit2);
|
||||
dns_name_fromregion(&name2, ®ion);
|
||||
|
||||
dns_name_init(&name3, NULL);
|
||||
region.base = bit3;
|
||||
region.length = sizeof(bit3);
|
||||
dns_name_fromregion(&name3, ®ion);
|
||||
|
||||
test(DNS_COMPRESS_NONE, &name1, &name2, &name3, bit, sizeof(bit));
|
||||
test(DNS_COMPRESS_GLOBAL14, &name1, &name2, &name3, bit, sizeof(bit));
|
||||
test(DNS_COMPRESS_ALL, &name1, &name2, &name3, bit, sizeof(bit));
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue