diff options
Diffstat (limited to 'io')
-rw-r--r-- | io/ftwtest-sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/io/ftwtest-sh b/io/ftwtest-sh index da2eaf7..79c35d4 100644 --- a/io/ftwtest-sh +++ b/io/ftwtest-sh @@ -16,6 +16,8 @@ testprogram=$2 tmp=${TMPDIR:-/tmp} tmpdir=$tmp/ftwtest.d +[ -f ${objpfx}elf/ld.so ] && ldso=${objpfx}elf/ld.so + trap 'chmod -R a+x $tmpdir; rm -fr $tmpdir $testout' 1 2 3 15 if test -d $tmpdir; then @@ -40,7 +42,7 @@ chmod a-x,a+r $tmpdir/bar testout=${TMPDIR:-/tmp}/ftwtest.out -LD_LIBRARY_PATH=$objpfx ${objpfx}elf/ld.so $testprogram $tmpdir | +LD_LIBRARY_PATH=$objpfx $ldso $testprogram $tmpdir | sort > $testout cat <<EOF | cmp $testout - || exit 1 @@ -59,7 +61,7 @@ base = "$tmp/ftwtest.d/foo/lvl1/lvl2/lvl3/", file = "file@3", flag = FTW_F EOF rm $testout -LD_LIBRARY_PATH=$objpfx ${objpfx}elf/ld.so $testprogram --depth $tmpdir | +LD_LIBRARY_PATH=$objpfx $ldso $testprogram --depth $tmpdir | sort > $testout cat <<EOF | cmp $testout - || exit 1 @@ -78,7 +80,7 @@ base = "$tmp/ftwtest.d/foo/lvl1/lvl2/lvl3/", file = "file@3", flag = FTW_F EOF rm $testout -LD_LIBRARY_PATH=$objpfx ${objpfx}elf/ld.so $testprogram --phys $tmpdir | +LD_LIBRARY_PATH=$objpfx $ldso $testprogram --phys $tmpdir | sort > $testout cat <<EOF | cmp $testout - || exit 1 |