mirror of
https://github.com/opnsense/src.git
synced 2026-02-22 17:32:57 -05:00
dlopen_basic just tests that libthr.so can be dlopen()ed, which will
just serve as a sanity check that "libthr.so" is a thing that can be
dlopened in case we get a weird failure in dlopen_recursing.
dlopen_recursing tests a regression reported after the libsys split,
where some dlopen() may cause infinite recursion and a resulting crash.
This case is inspired by bdrewery's description of what seemed to be
causing his issue.
The corresponding fix landed in commit
968a18975ad ("rtld: ignore load_filtees() calls if we already [...]")
Reviewed by: kib
(cherry picked from commit c5796f1572c82b88e8b6a2810c92f30e5ac3e118)
20 lines
370 B
Makefile
20 lines
370 B
Makefile
|
|
SUBDIR+= libpythagoras libdeep libval libval2 target
|
|
TESTS_SUBDIRS+= rtld_deepbind
|
|
|
|
SUBDIR_DEPEND_libdeep= libval2
|
|
SUBDIR_DEPEND_rtld_deepbind= libval
|
|
SUBDIR_DEPEND_target= libpythagoras
|
|
|
|
ATF_TESTS_C= ld_library_pathfds
|
|
ATF_TESTS_C+= ld_preload_fds
|
|
|
|
.for t in ${ATF_TESTS_C}
|
|
SRCS.$t= $t.c common.c
|
|
.endfor
|
|
|
|
ATF_TESTS_C+= dlopen_test
|
|
|
|
WARNS?= 3
|
|
|
|
.include <bsd.test.mk>
|