mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
2004-01-29 Roland McGrath <roland@redhat.com>
* io/ftwtest-sh: Use $tmp consistently, not literal /tmp. Reported by Kevin P. Fleming <kpfleming@backtobasicsmgmt.com>.
This commit is contained in:
parent
e48d897da9
commit
5c81dec80e
@ -211,16 +211,16 @@ LD_LIBRARY_PATH=$objpfx $ldso $testprogram --skip-subtree=lvl1 $tmpdir |
|
||||
sort > $testout
|
||||
|
||||
cat <<EOF | diff -u $testout - || exit 1
|
||||
base = "/tmp/", file = "ftwtest.d", flag = FTW_D, level = 0
|
||||
base = "/tmp/ftwtest.d/", file = "bar", flag = FTW_D, level = 1
|
||||
base = "/tmp/ftwtest.d/", file = "baz", flag = FTW_F, level = 1
|
||||
base = "/tmp/ftwtest.d/", file = "foo", flag = FTW_D, level = 1
|
||||
base = "/tmp/ftwtest.d/bar/", file = "xo", flag = FTW_F, level = 2
|
||||
base = "/tmp/ftwtest.d/foo/", file = "lvl1", flag = FTW_D, level = 2
|
||||
base = "/tmp/ftwtest.d/foo/", file = "lvl1b", flag = FTW_D, level = 2
|
||||
base = "/tmp/ftwtest.d/foo/lvl1b/", file = "file2@1b", flag = FTW_F, level = 3
|
||||
base = "/tmp/ftwtest.d/foo/lvl1b/", file = "file3@1b", flag = FTW_F, level = 3
|
||||
base = "/tmp/ftwtest.d/foo/lvl1b/", file = "file@1b", flag = FTW_F, level = 3
|
||||
base = "$tmp/", file = "ftwtest.d", flag = FTW_D, level = 0
|
||||
base = "$tmp/ftwtest.d/", file = "bar", flag = FTW_D, level = 1
|
||||
base = "$tmp/ftwtest.d/", file = "baz", flag = FTW_F, level = 1
|
||||
base = "$tmp/ftwtest.d/", file = "foo", flag = FTW_D, level = 1
|
||||
base = "$tmp/ftwtest.d/bar/", file = "xo", flag = FTW_F, level = 2
|
||||
base = "$tmp/ftwtest.d/foo/", file = "lvl1", flag = FTW_D, level = 2
|
||||
base = "$tmp/ftwtest.d/foo/", file = "lvl1b", flag = FTW_D, level = 2
|
||||
base = "$tmp/ftwtest.d/foo/lvl1b/", file = "file2@1b", flag = FTW_F, level = 3
|
||||
base = "$tmp/ftwtest.d/foo/lvl1b/", file = "file3@1b", flag = FTW_F, level = 3
|
||||
base = "$tmp/ftwtest.d/foo/lvl1b/", file = "file@1b", flag = FTW_F, level = 3
|
||||
EOF
|
||||
rm $testout
|
||||
|
||||
@ -235,16 +235,16 @@ catcmd=cat
|
||||
&& catcmd="grep -v lvl1b"
|
||||
|
||||
$catcmd <<EOF | diff -u $testout - || exit 1
|
||||
base = "/tmp/", file = "ftwtest.d", flag = FTW_D, level = 0
|
||||
base = "/tmp/ftwtest.d/", file = "bar", flag = FTW_D, level = 1
|
||||
base = "/tmp/ftwtest.d/", file = "baz", flag = FTW_F, level = 1
|
||||
base = "/tmp/ftwtest.d/", file = "foo", flag = FTW_D, level = 1
|
||||
base = "/tmp/ftwtest.d/bar/", file = "xo", flag = FTW_F, level = 2
|
||||
base = "/tmp/ftwtest.d/foo/", file = "lvl1", flag = FTW_D, level = 2
|
||||
base = "/tmp/ftwtest.d/foo/", file = "lvl1b", flag = FTW_D, level = 2
|
||||
base = "/tmp/ftwtest.d/foo/lvl1b/", file = "file2@1b", flag = FTW_F, level = 3
|
||||
base = "/tmp/ftwtest.d/foo/lvl1b/", file = "file3@1b", flag = FTW_F, level = 3
|
||||
base = "/tmp/ftwtest.d/foo/lvl1b/", file = "file@1b", flag = FTW_F, level = 3
|
||||
base = "$tmp/", file = "ftwtest.d", flag = FTW_D, level = 0
|
||||
base = "$tmp/ftwtest.d/", file = "bar", flag = FTW_D, level = 1
|
||||
base = "$tmp/ftwtest.d/", file = "baz", flag = FTW_F, level = 1
|
||||
base = "$tmp/ftwtest.d/", file = "foo", flag = FTW_D, level = 1
|
||||
base = "$tmp/ftwtest.d/bar/", file = "xo", flag = FTW_F, level = 2
|
||||
base = "$tmp/ftwtest.d/foo/", file = "lvl1", flag = FTW_D, level = 2
|
||||
base = "$tmp/ftwtest.d/foo/", file = "lvl1b", flag = FTW_D, level = 2
|
||||
base = "$tmp/ftwtest.d/foo/lvl1b/", file = "file2@1b", flag = FTW_F, level = 3
|
||||
base = "$tmp/ftwtest.d/foo/lvl1b/", file = "file3@1b", flag = FTW_F, level = 3
|
||||
base = "$tmp/ftwtest.d/foo/lvl1b/", file = "file@1b", flag = FTW_F, level = 3
|
||||
EOF
|
||||
rm $testout
|
||||
|
||||
@ -254,28 +254,28 @@ LD_LIBRARY_PATH=$objpfx $ldso $testprogram --skip-siblings=file@1b $tmpdir |
|
||||
# The filesystem is not required to put file2@1b and file3@1b after file@1b.
|
||||
# If file[23]@1b come after file@1b, it shouldn't be printed, while if they
|
||||
# come before, they should.
|
||||
regexp=`echo $(ls -U /tmp/ftwtest.d/foo/lvl1b \
|
||||
regexp=`echo $(ls -U $tmp/ftwtest.d/foo/lvl1b \
|
||||
| sed -n '/file@1b$/,${/file[23]@1b$/p;}') | sed 's, ,|,'`
|
||||
catcmd=cat
|
||||
[ -n "$regexp" ] && catcmd="egrep -v $regexp"
|
||||
|
||||
$catcmd <<EOF | diff -u $testout - || exit 1
|
||||
base = "/tmp/", file = "ftwtest.d", flag = FTW_D, level = 0
|
||||
base = "/tmp/ftwtest.d/", file = "bar", flag = FTW_D, level = 1
|
||||
base = "/tmp/ftwtest.d/", file = "baz", flag = FTW_F, level = 1
|
||||
base = "/tmp/ftwtest.d/", file = "foo", flag = FTW_D, level = 1
|
||||
base = "/tmp/ftwtest.d/bar/", file = "xo", flag = FTW_F, level = 2
|
||||
base = "/tmp/ftwtest.d/foo/", file = "lvl1", flag = FTW_D, level = 2
|
||||
base = "/tmp/ftwtest.d/foo/", file = "lvl1b", flag = FTW_D, level = 2
|
||||
base = "/tmp/ftwtest.d/foo/lvl1/", file = "file@1", flag = FTW_F, level = 3
|
||||
base = "/tmp/ftwtest.d/foo/lvl1/", file = "link@1", flag = FTW_SLN, level = 3
|
||||
base = "/tmp/ftwtest.d/foo/lvl1/", file = "lvl2", flag = FTW_D, level = 3
|
||||
base = "/tmp/ftwtest.d/foo/lvl1/lvl2/", file = "file@2", flag = FTW_F, level = 4
|
||||
base = "/tmp/ftwtest.d/foo/lvl1/lvl2/", file = "lvl3", flag = FTW_D, level = 4
|
||||
base = "/tmp/ftwtest.d/foo/lvl1/lvl2/lvl3/", file = "file@3", flag = FTW_F, level = 5
|
||||
base = "/tmp/ftwtest.d/foo/lvl1b/", file = "file2@1b", flag = FTW_F, level = 3
|
||||
base = "/tmp/ftwtest.d/foo/lvl1b/", file = "file3@1b", flag = FTW_F, level = 3
|
||||
base = "/tmp/ftwtest.d/foo/lvl1b/", file = "file@1b", flag = FTW_F, level = 3
|
||||
base = "$tmp/", file = "ftwtest.d", flag = FTW_D, level = 0
|
||||
base = "$tmp/ftwtest.d/", file = "bar", flag = FTW_D, level = 1
|
||||
base = "$tmp/ftwtest.d/", file = "baz", flag = FTW_F, level = 1
|
||||
base = "$tmp/ftwtest.d/", file = "foo", flag = FTW_D, level = 1
|
||||
base = "$tmp/ftwtest.d/bar/", file = "xo", flag = FTW_F, level = 2
|
||||
base = "$tmp/ftwtest.d/foo/", file = "lvl1", flag = FTW_D, level = 2
|
||||
base = "$tmp/ftwtest.d/foo/", file = "lvl1b", flag = FTW_D, level = 2
|
||||
base = "$tmp/ftwtest.d/foo/lvl1/", file = "file@1", flag = FTW_F, level = 3
|
||||
base = "$tmp/ftwtest.d/foo/lvl1/", file = "link@1", flag = FTW_SLN, level = 3
|
||||
base = "$tmp/ftwtest.d/foo/lvl1/", file = "lvl2", flag = FTW_D, level = 3
|
||||
base = "$tmp/ftwtest.d/foo/lvl1/lvl2/", file = "file@2", flag = FTW_F, level = 4
|
||||
base = "$tmp/ftwtest.d/foo/lvl1/lvl2/", file = "lvl3", flag = FTW_D, level = 4
|
||||
base = "$tmp/ftwtest.d/foo/lvl1/lvl2/lvl3/", file = "file@3", flag = FTW_F, level = 5
|
||||
base = "$tmp/ftwtest.d/foo/lvl1b/", file = "file2@1b", flag = FTW_F, level = 3
|
||||
base = "$tmp/ftwtest.d/foo/lvl1b/", file = "file3@1b", flag = FTW_F, level = 3
|
||||
base = "$tmp/ftwtest.d/foo/lvl1b/", file = "file@1b", flag = FTW_F, level = 3
|
||||
EOF
|
||||
rm $testout
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user