Test RTLD's new LD_LIBRARY_PATH_FDS variable.

Test LD_LIBRARY_PATH_FDS by linking a binary that requires a shared
library that isn't in any of the usual search paths.  Ensure this fails
when we don't supply LD_LIBRARY_PATH_FDS or we pass invalid information
in it.  Ensure it works when we pass the correct directory in various
places in the variable.

Approved by:	rwatson (mentor)
MFC after:	3 weeks
Sponsored by:	DARPA/AFRL
This commit is contained in:
Jonathan Anderson
2014-06-20 17:14:59 +00:00
parent 02d3b38e0a
commit 6b22f423cf
9 changed files with 374 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
# $FreeBSD$
.include <bsd.own.mk>
TESTSDIR= ${TESTSBASE}/libexec/rtld-elf
SUBDIR+= libpythagoras target
.PATH: ${.CURDIR:H:H:H:H}/tests
ATF_TESTS_C= ld_library_pathfds
CFLAGS+= -DTESTSDIR="\"${TESTSDIR}\""
.include <bsd.test.mk>