3 # Copyright (C) 2003-2023 Free Software Foundation, Inc.
4 # This file is part of the GNU C Library.
6 # The GNU C Library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public
8 # License as published by the Free Software Foundation; either
9 # version 2.1 of the License, or (at your option) any later version.
11 # The GNU C Library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # Lesser General Public License for more details.
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with the GNU C Library; if not, see
18 # <https://www.gnu.org/licenses/>.
22 common_objpfx
=$1; shift
23 test_via_rtld_prefix
=$1; shift
24 test_wrapper_env
=$1; shift
25 run_program_env
=$1; shift
26 logfile
=$common_objpfx/nptl
/tst-tls6.out
28 # We have to find libc and nptl
29 library_path
=${common_objpfx}:${common_objpfx}nptl
30 tst_tls5
="${test_via_rtld_prefix} ${common_objpfx}/nptl/tst-tls5"
35 for aligned
in a e f
; do
36 echo "preload tst-tls5mod{$aligned,b,c,d}.so" >> $logfile
37 echo "===============" >> $logfile
40 LD_PRELOAD
="`echo ${common_objpfx}nptl/tst-tls5mod{$aligned,b,c,d}.so \
41 | sed 's/:$//;s/: /:/g'`" ${tst_tls5} >> $logfile || fail
=1
44 echo "preload tst-tls5mod{b,$aligned,c,d}.so" >> $logfile
45 echo "===============" >> $logfile
48 LD_PRELOAD
="`echo ${common_objpfx}nptl/tst-tls5mod{b,$aligned,c,d}.so \
49 | sed 's/:$//;s/: /:/g'`" ${tst_tls5} >> $logfile || fail
=1
52 echo "preload tst-tls5mod{b,c,d,$aligned}.so" >> $logfile
53 echo "===============" >> $logfile
56 LD_PRELOAD
="`echo ${common_objpfx}nptl/tst-tls5mod{b,c,d,$aligned}.so \
57 | sed 's/:$//;s/: /:/g'`" ${tst_tls5} >> $logfile || fail
=1
61 echo "preload tst-tls5mod{d,a,b,c,e}" >> $logfile
62 echo "===============" >> $logfile
65 LD_PRELOAD
="`echo ${common_objpfx}nptl/tst-tls5mod{d,a,b,c,e}.so \
66 | sed 's/:$//;s/: /:/g'`" ${tst_tls5} >> $logfile || fail
=1
69 echo "preload tst-tls5mod{d,a,b,e,f}" >> $logfile
70 echo "===============" >> $logfile
73 LD_PRELOAD
="`echo ${common_objpfx}nptl/tst-tls5mod{d,a,b,e,f}.so \
74 | sed 's/:$//;s/: /:/g'`" ${tst_tls5} >> $logfile || fail
=1