Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
fe322046
Commit
fe322046
authored
May 15, 2007
by
Mark Andrews
Browse files
2180. [cleanup] Remove bit test from 'compress_test' as they
are no longer needed. [RT #16497]
parent
40aadb6a
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
fe322046
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]
...
...
bin/tests/compress_test.c
View file @
fe322046
...
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: compress_test.c,v 1.3
1
200
6
/0
2/26 23:4
9:5
0
marka Exp $ */
/* $Id: compress_test.c,v 1.3
2
200
7
/0
5/15 05:3
9:5
9
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\010
b"
;
unsigned
char
bit2
[]
=
"
\101\014
b
\260
"
;
unsigned
char
bit3
[]
=
"
\101\020
b
\264
"
;
unsigned
char
bit
[]
=
"
\101\010
b
\0\101\014
b
\260\0\101\014
b
\260\0\101\020
b
\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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment