2180. [cleanup] Remove bit test from 'compress_test' as they
are no longer needed. [RT #16497]
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user