4 Commits

Author SHA1 Message Date
Luca Bacci
c4c39ea52a tests/constructor: Support systems where dlclose is a no-op
POSIX allows dlclose() implementations that are no-ops,
and in such case library destructors run at application
exit rather than dlclose().

That's the case, for example, of UNIX systems with the
Musl LibC.
2023-10-03 11:07:16 +02:00
Luca Bacci
85e21ff757 tests/constructor: Test all destructors
Previously we were only testing destructors that run on
dlclose, now we also test destructors running at application
exit.
2023-10-03 11:07:11 +02:00
Luca Bacci
f23a31ee26 Use helper shared library for the constructor test 2023-10-03 10:43:34 +02:00
Luca Bacci
683991d836 Add test for module constructors, destructors and TLS callbacks 2023-10-03 10:33:42 +02:00