]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix spurious lib/dns/tests/update_test errors on macOS
authorOndřej Surý <ondrej@sury.org>
Tue, 18 Jun 2019 12:48:00 +0000 (14:48 +0200)
committerOndřej Surý <ondrej@sury.org>
Wed, 19 Jun 2019 11:31:43 +0000 (13:31 +0200)
commit6713c6703e2f551bb192595c9496ec6375d0b710
tree1fcb8048afc22749607ab333bdfca61912d1b607
parent695c997e6f7675ff207381a43f1c3ddf23b3f0ce
Fix spurious lib/dns/tests/update_test errors on macOS

lib/dns/tests/update_test was failing on macOS on random occasions.  It
turned out this was a linker problem - it preferred isc_stdtime_get()
from libisc instead of the local version in lib/dns/tests/update_test.c.

Fix by including the original .c file in the unit test.  This has two
benefits:

 a) linking order may no longer cause issues as symbols found in the
    same compilation unit are always preferred,

 b) it allows writing tests for static functions in lib/dns/update.c.
lib/dns/tests/update_test.c