aboutsummaryrefslogtreecommitdiff
path: root/nptl
diff options
context:
space:
mode:
authorStephanie J. Lockwood-Childs <wormo@gentoo.org>2013-08-16 15:03:41 -0400
committerMike Frysinger <vapier@gentoo.org>2014-02-08 09:21:18 -0500
commit6d981a99c35fbbfdf90ff188c5dd6d1ac46b9353 (patch)
treed67745b1e85788897df99e78b1e7877b2aa90c7f /nptl
parentnptl: handle EAGAIN with some futex operations (diff)
downloadglibc-6d981a99c35fbbfdf90ff188c5dd6d1ac46b9353.tar.gz
glibc-6d981a99c35fbbfdf90ff188c5dd6d1ac46b9353.tar.bz2
glibc-6d981a99c35fbbfdf90ff188c5dd6d1ac46b9353.zip
gentoo: support running tests under sandbox
when glibc runs its tests, it does so by invoking the local library loader. in Gentoo, we build/run inside of our "sandbox" which itself is linked against libdl (so that it can load libraries and pull out symbols). the trouble is that when you upgrade from an older glibc to the new one, often times internal symbols change name or abi. this is normally OK as you cannot use libc.so from say version 2.3.6 but libpthread.so from say version 2.5, so we always say "keep all of the glibc libraries from the same build". but when glibc runs its tests, it uses dynamic paths to point to its new local copies of libraries. if the test doesnt use libdl, then glibc doesnt add its path, and when sandbox triggers the loading of libdl, glibc does so from the host system system. this gets us into the case of all libraries are from the locally compiled version of glibc except for libdl.so. http://bugs.gentoo.org/56898
Diffstat (limited to 'nptl')
-rwxr-xr-xnptl/tst-tls6.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/tst-tls6.sh b/nptl/tst-tls6.sh
index 5a897fef60..ba47568ce8 100755
--- a/nptl/tst-tls6.sh
+++ b/nptl/tst-tls6.sh
@@ -25,7 +25,7 @@ test_wrapper_env=$1; shift
logfile=$common_objpfx/nptl/tst-tls6.out
# We have to find libc and nptl
-library_path=${common_objpfx}:${common_objpfx}nptl
+library_path=${common_objpfx}:${common_objpfx}nptl:${common_objpfx}/dlfcn
tst_tls5="${test_via_rtld_prefix} ${common_objpfx}/nptl/tst-tls5"
LC_ALL=C