]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2180. [cleanup] Remove bit test from 'compress_test' as they
authorMark Andrews <marka@isc.org>
Tue, 15 May 2007 05:39:59 +0000 (05:39 +0000)
committerMark Andrews <marka@isc.org>
Tue, 15 May 2007 05:39:59 +0000 (05:39 +0000)
                        are no longer needed. [RT #16497]

CHANGES
bin/tests/compress_test.c

diff --git a/CHANGES b/CHANGES
index e30decd1fcb316f73f4f5c3ea577b9fe7c0a2d76..e0c67194646bf6c2410b29ba8c1073f684c244a9 100644 (file)
--- a/CHANGES
+++ b/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]
 
index 814094b488071301f734bb86e6989254accab571..ecfeddee7c6edf24e06d04416abe53c302e3f6e5 100644 (file)
@@ -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, &region);
-
-       dns_name_init(&name2, NULL);
-       region.base = bit2;
-       region.length = sizeof(bit2);
-       dns_name_fromregion(&name2, &region);
-
-       dns_name_init(&name3, NULL);
-       region.base = bit3;
-       region.length = sizeof(bit3);
-       dns_name_fromregion(&name3, &region);
-
-       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);
 }