Commit Graph

120 Commits

Author SHA1 Message Date
Mark Andrews
8c9d54c99c ISC_SOCKEVENTATTR_TRUNC was not be set
(cherry picked from commit 6bff1768cf)
2018-05-18 16:19:19 +10:00
Mark Andrews
593933bd5f add some %f format tests
(cherry picked from commit f5233ba5de)
2018-05-18 12:51:20 +10:00
Evan Hunt
edb2282379 add an 'untested' case when none of the atomic operations are available
- this fixes a build failure introduced in change 4913 when
  compiling with ATF and --disable-atomic

(cherry picked from commit 1b3eac926e)
2018-03-15 12:09:45 -07:00
Ondřej Surý
9f830be501 update file headers to remove copyright years 2018-03-15 09:09:15 +01:00
Ondřej Surý
b6fa2721d5 Fix whitespace 2018-03-14 12:46:56 +01:00
Evan Hunt
1beabb5bcb Fix compiler warnings and test failures when building without threads
(cherry picked from commit 56353aaf42)
2018-03-10 10:37:26 -08:00
Evan Hunt
a6e5d9a2ca Merge branch 'clean-bin-tests-v9_9' into 'v9_9'
clean up bin/tests, convert unit tests to ATF

Closes #115

See merge request isc-projects/bind9!93
2018-03-09 23:52:26 -08:00
Evan Hunt
e6c446bfba final cleanup
- update Kyuafiles to match Atffiles
- copyrights
- CHANGES note

(cherry picked from commit 86e00cbb71)
(cherry picked from commit 80834b5b90)
(cherry picked from commit 442c1530a3)
(cherry picked from commit 6fe8188cc3)
2018-03-09 23:35:02 -08:00
Evan Hunt
a73b843515 migrate t_tasks to lib/isc/tests/task_test
(cherry picked from commit c6c1e99252)
(cherry picked from commit 88bfe56876)
(cherry picked from commit 38f9cddcad)
(cherry picked from commit 430d35e332)
2018-03-09 23:15:10 -08:00
Evan Hunt
6bd3de3615 migrate t_timers to lib/isc/tests/timer_test
(cherry picked from commit e2b8699df9)
(cherry picked from commit efccdad0ea)
(cherry picked from commit 274ee0b425)
(cherry picked from commit 5b477b2aa4)
2018-03-09 23:11:47 -08:00
Evan Hunt
a6dcb138b5 migrate t_atomic to lib/isc/tests/atomic_test
(cherry picked from commit 874e2fc70c)
(cherry picked from commit c7fa56e8db)
(cherry picked from commit 492e19d6ec)
(cherry picked from commit 1200d6f072)
2018-03-09 23:09:54 -08:00
Evan Hunt
d446bbb815 migrate t_mem to lib/isc/tests/mem_test
(cherry picked from commit 979f054702)
(cherry picked from commit af48544b75)
(cherry picked from commit 814cd21e22)
(cherry picked from commit 7014d0994b)
2018-03-09 23:07:40 -08:00
Evan Hunt
00bc2c2355 migrate t_net to lib/isc/tests
(cherry picked from commit 05b7251d51)
(cherry picked from commit af0c9b2cee)
(cherry picked from commit faedafd2b4)
(cherry picked from commit 67b63a3e10)
2018-03-09 23:03:56 -08:00
Evan Hunt
6b970316c8 migrate t_sockaddr to lib/isc/tests
(cherry picked from commit 62f650078a)
(cherry picked from commit fadb93cf43)
(cherry picked from commit 323e2f7152)
(cherry picked from commit b392c18f6e)
2018-03-09 23:03:11 -08:00
Evan Hunt
7677cb277a final cleanup
- add CHANGES note
- update copyrights and license headers
2018-02-25 13:13:26 -08:00
Evan Hunt
ae6c141f7b tidying up after backport
(cherry picked from commit 854f7846d8)
(cherry picked from commit 6653dcab3d)
2018-02-25 13:10:00 -08:00
Petr Menšík
3727e6a944 unit/unittest.sh is generated by configure. It will always be
generated into builddir. If out-of-tree build is used, make unit
will always fail. Kyuafiles and testdata still have to be copied
manually into the builddir.

(cherry picked from commit 95cde3608a)
(cherry picked from commit 6d9b38e9fe)
(cherry picked from commit 6f2fd5ccca)
2018-02-23 15:51:50 -08:00
Tinderbox User
7aeee801e6 regen v9_9 2017-12-29 02:41:20 +00:00
Tinderbox User
c49b27bc75 update copyright notice / whitespace 2017-11-28 23:48:09 +00:00
Mark Andrews
76cff0f786 4829. [bug] isc_heap_delete did not zero the index value when
the heap was created with a callback to do that.
                        [RT #46709]

(cherry picked from commit 65a483106e)
2017-11-28 19:04:56 +11:00
Tinderbox User
512ef3fc26 update copyright notice / whitespace 2017-10-04 23:48:22 +00:00
Mark Andrews
35c77c3f28 sort 2017-10-04 17:22:54 +11:00
Mark Andrews
68630cce3a 4752. [test] Add unit test for isc_net_pton. [RT #46171]
(cherry picked from commit 5fcdb09126)
2017-10-04 14:43:51 +11:00
Tinderbox User
a7741835cc regen v9_9 2017-09-21 07:51:57 +00:00
Tinderbox User
01bad075b6 regen v9_9 2017-09-21 04:07:03 +00:00
Mark Andrews
799bb89429 explicitly list test programs 2017-09-21 13:07:12 +10:00
Tinderbox User
288dd11e7a update copyright notice / whitespace 2017-09-19 23:51:07 +00:00
Mukund Sivaraman
d347cf40c8 Don't use memset() to wipe memory (#45947)
(cherry picked from commit d5707676e4)
(cherry picked from commit b5252fcde5)
(cherry picked from commit aaf04460a0)

# Conflicts:
#	lib/dns/pkcs11dh_link.c
#	lib/dns/pkcs11dsa_link.c
#	lib/dns/pkcs11gost_link.c
#	lib/dns/pkcs11rsa_link.c
#	lib/isc/hmacmd5.c
#	lib/isc/hmacsha.c
#	lib/isc/md5.c
#	lib/isc/sha1.c
#	lib/isc/sha2.c
2017-09-19 18:59:48 +05:30
Tinderbox User
077f3c4e27 update copyright notice / whitespace 2017-09-14 00:03:54 +00:00
Mukund Sivaraman
de42212c63 Tweak hash_test.c further, passing sizeof(str)
(cherry picked from commit 8997fc0a3f)
(cherry picked from commit fc7ed600ae)
(cherry picked from commit f3e90ace9d)
2017-09-13 19:35:45 +05:30
Mukund Sivaraman
247224ab2d Tweak
(cherry picked from commit a2873eabf6)
(cherry picked from commit 4baac8b9f3)
(cherry picked from commit 1be28340db)
2017-09-13 19:35:06 +05:30
Mukund Sivaraman
da42d8e733 Fix size of output string in hash tests
(cherry picked from commit bc5e0a6868)
(cherry picked from commit 3dc00443bb)
(cherry picked from commit 6e338884b5)
2017-09-13 19:35:04 +05:30
Evan Hunt
cef35fcefc [v9_9] add print.h 2017-09-13 00:25:24 -07:00
Evan Hunt
f07825440f [master] cleanup strcat/strcpy
4722.	[cleanup]	Clean up uses of strcpy() and strcat() in favor of
			strlcpy() and strlcat() for safety. [RT #45981]

(cherry picked from commit 114f95089c)
(cherry picked from commit 7cd594b842)
(cherry picked from commit e0ddfb109e)
2017-09-13 00:20:09 -07:00
Tinderbox User
41dd796aff update copyright notice / whitespace 2017-05-21 23:47:32 +00:00
Evan Hunt
7cc666abf1 [v9_9] corrected a possible crash in isc_test_end()
(cherry picked from commit 9e44639ae0)
2017-05-21 15:44:39 -07:00
Tinderbox User
8ebfb6cc9a update copyright notice / whitespace 2017-05-02 23:48:00 +00:00
Evan Hunt
7e48ed2240 [v9_9] error in sockaddr unit test
4614.	[test]		Fixed an error in the sockaddr unit test. [RT #45146]

(cherry picked from commit d73c32c17f)
(cherry picked from commit 512765ba1e)
2017-05-02 13:41:31 -07:00
Tinderbox User
1912945682 update copyright notice / whitespace 2016-12-05 23:51:33 +00:00
Mark Andrews
8b094c484c 4524. [bug] The net zero test was broken causing IPv4 servers
with addresses ending in .0 to be rejected. [RT #43776]

(cherry picked from commit df372d967e)
2016-12-05 10:50:36 +11:00
Tinderbox User
65588217fc update copyright notice / whitespace 2016-08-17 23:46:55 +00:00
Evan Hunt
65e144e0de [v9_9] isc_errno_toresult()
4445.	[cleanup]	isc_errno_toresult() can now be used to call the
			formerly private function isc__errno2result().
			[RT #43050]

(cherry picked from commit ddef16e1d9)
2016-08-17 11:37:51 -07:00
Tinderbox User
e52e476295 update copyright notice / whitespace 2016-07-14 23:54:00 +00:00
Mark Andrews
f4052d6e8f Windows doesn't like LLU use ULL instead
(cherry picked from commit 6b5d6472cdbdb57ee7d8247d85f07c42fb347663)
2016-07-14 11:14:09 +10:00
Mark Andrews
cbf91c5377 copyrights / whitespace 2016-02-11 10:47:24 +11:00
Mukund Sivaraman
80eff380a8 Add tests for hash function, and comment dns_rbt_addnode() (#41179)
No CHANGES entry necessary.

(cherry picked from commit 614ce1b65f)
(cherry picked from commit 400dd1020c)
2016-02-08 15:03:40 +05:30
Evan Hunt
7d984067ee [v9_9] fix python script versions
4257.	[cleanup]	Python scripts reported incorrect version. [RT #41080]
2015-11-08 21:41:04 -08:00
Mark Andrews
fcf31042f8 0xf5f5f5f5f5f5f5f5 is a LLU
(cherry picked from commit 7c38fa994b)
2015-10-30 08:13:53 +11:00
Evan Hunt
da7e65a6aa [v9_9] isc_atomic_storeq()/stats improvements
4248.	[func]		Add an isc_atomic_storeq() function, use it in
			stats counters to improve performance.
			[RT #39972] [RT #39979]
2015-10-28 22:22:04 -07:00
Tinderbox User
514488e7cf update copyright notice / whitespace 2015-10-15 23:46:07 +00:00