unit-tests: Change how hashtable for testable functions is created
authorTobias Brunner <tobias@strongswan.org>
Fri, 28 Feb 2014 16:08:39 +0000 (17:08 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 20 Mar 2014 14:29:27 +0000 (15:29 +0100)
commitf51169eb095304039e770b779ee0b9a8484f6b02
treefec2cdfecd115a9fb0a57ff5ef826a380319822d
parentd151cd283e1f7368f4c9e92665b6aad6efbc38f1
unit-tests: Change how hashtable for testable functions is created

Because GCC does not adhere to the priorities defined for constructors
when building with --enable-monolithic (not sure if it was just luck
that it worked in non-monolithic mode - anyway, it's not very portable)
function registration would fail because the hashtable would not be
created yet.
src/libstrongswan/tests/test_runner.c
src/libstrongswan/utils/test.c
src/libstrongswan/utils/test.h