mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 07:19:59 -04:00
parent
f54f73d063
commit
768fb45660
1 changed files with 2 additions and 0 deletions
|
|
@ -335,6 +335,7 @@ serialize_test(void **state) {
|
|||
* Map in the whole file in one go
|
||||
*/
|
||||
fd = open("zone.bin", O_RDWR);
|
||||
assert_int_not_equal(fd, -1);
|
||||
isc_file_getsizefd(fd, &filesize);
|
||||
base = mmap(NULL, filesize, PROT_READ|PROT_WRITE,
|
||||
MAP_FILE|MAP_PRIVATE, fd, 0);
|
||||
|
|
@ -395,6 +396,7 @@ deserialize_corrupt_test(void **state) {
|
|||
dns_rbt_t *rbt_deserialized = NULL;
|
||||
|
||||
fd = open("zone.bin", O_RDWR);
|
||||
assert_int_not_equal(fd, -1);
|
||||
isc_file_getsizefd(fd, &filesize);
|
||||
base = mmap(NULL, filesize, PROT_READ|PROT_WRITE,
|
||||
MAP_FILE|MAP_PRIVATE, fd, 0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue