Skip to content

dlopen testcase

Henning Schild xenomai 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Revert "boilerplate/setup: introduce destructors for __setup_call"include/boilerplate/setup.h lib/boilerplate/setup.c+0 -130 replies
2/3smokey/dlopen: fix testcasetestsuite/smokey/dlopen/Makefile.am testsuite/smokey/dlopen/dlopentest.c testsuite/smokey/dlopen/libalchemy-test.c+2 -170 replies
3/3build: link dlopen libs with "nodelete"configure.ac+1 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Xenomai] [PATCH 0/3] dlopen testcase

The test binary was actually linked as a xenomai binary, so the test did not actually cover the "cold" init phase.
Turns out that in fact dlclose will not truly work, because we lack destructors for the init functions of the so called setup_descriptors.

So first revert the patch introducing destructors. We do not have code to destruct, dont even pretent by addressing a fraction of the whole problem.

Second change the linker flags and make the testcase cover cold init. Remove the calls to dlclose() and the re-dlopen(), because that is not actually supported.

And last but not least, make sure a dlclose() will not actually work on xenomai libs.

Henning Schild (3):
Revert "boilerplate/setup: introduce destructors for __setup_call" smokey/dlopen: fix testcase
build: link dlopen libs with "nodelete"

 configure.ac                              | 1 +
 include/boilerplate/setup.h               | 7 -------
 lib/boilerplate/setup.c                   | 6 ------
 testsuite/smokey/dlopen/Makefile.am       | 8 +-------
 testsuite/smokey/dlopen/dlopentest.c      | 9 ---------
 testsuite/smokey/dlopen/libalchemy-test.c | 2 +-
 6 files changed, 3 insertions(+), 30 deletions(-)
Signature · 1 line
2.16.1