aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-10-19 20:00:43 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-10-19 20:00:43 +0000
commit135948bd500067d766a8bbe0bee0e37d8e491681 (patch)
tree203d58c7a11dffe4796aee88e766f343ee75d920 /posix/tst-getconf.sh
parentClean up localedata/tst-wctype.sh to match how it is called. (diff)
downloadglibc-135948bd500067d766a8bbe0bee0e37d8e491681.tar.gz
glibc-135948bd500067d766a8bbe0bee0e37d8e491681.tar.bz2
glibc-135948bd500067d766a8bbe0bee0e37d8e491681.zip
Use $(built-program-cmd) in posix/tst-getconf.sh.
Diffstat (limited to 'posix/tst-getconf.sh')
-rw-r--r--posix/tst-getconf.sh17
1 files changed, 3 insertions, 14 deletions
diff --git a/posix/tst-getconf.sh b/posix/tst-getconf.sh
index 030926a74f..b602f3e92b 100644
--- a/posix/tst-getconf.sh
+++ b/posix/tst-getconf.sh
@@ -20,18 +20,7 @@
set -e
common_objpfx=$1; shift
-elf_objpfx=$1; shift
-if [ $# -eq 0 ]; then
- # Static case.
- runit() {
- "$@"
- }
-else
- rtld_installed_name=$1; shift
- runit() {
- ${elf_objpfx}${rtld_installed_name} --library-path ${common_objpfx} "$@"
- }
-fi
+run_getconf=$1; shift
logfile=$common_objpfx/posix/tst-getconf.out
@@ -45,7 +34,7 @@ rm -f $logfile
result=0
while read name; do
echo -n "getconf $name: " >> $logfile
- runit ${common_objpfx}posix/getconf "$name" 2>> $logfile >> $logfile
+ ${run_getconf} "$name" 2>> $logfile >> $logfile
if test $? -ne 0; then
echo "*** $name FAILED" >> $logfile
result=1
@@ -223,7 +212,7 @@ EOF
while read name; do
echo -n "getconf $name /: " >> $logfile
- runit ${common_objpfx}posix/getconf "$name" / 2>> $logfile >> $logfile
+ ${run_getconf} "$name" / 2>> $logfile >> $logfile
if test $? -ne 0; then
echo "*** $name FAILED" >> $logfile
result=1