mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 14:30:06 +00:00
Update.
2000-04-10 Andreas Schwab <schwab@suse.de> * posix/globtest.sh: Skip tests that depend on unreadable directories if run as root.
This commit is contained in:
parent
e79af11c36
commit
3b6906390e
@ -1,3 +1,8 @@
|
|||||||
|
2000-04-10 Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
|
* posix/globtest.sh: Skip tests that depend on unreadable
|
||||||
|
directories if run as root.
|
||||||
|
|
||||||
2000-04-10 Ulrich Drepper <drepper@redhat.com>
|
2000-04-10 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
|
* sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
|
||||||
|
@ -306,13 +306,20 @@ cat <<"EOF" | cmp - $testout || result=1
|
|||||||
GLOB_NOMATCH
|
GLOB_NOMATCH
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# ... with GLOB_ERR
|
# The following tests will fail if run as root.
|
||||||
${elf_objpfx}${rtld_installed_name} --library-path ${library_path} \
|
user=`id -un 2> /dev/null`
|
||||||
${common_objpfx}posix/globtest -E "$testdir" "noread/*" |
|
if test -z "$user"; then
|
||||||
sort > $testout
|
uid="$USER"
|
||||||
cat <<"EOF" | cmp - $testout || result=1
|
fi
|
||||||
|
if test "$user" != root; then
|
||||||
|
# ... with GLOB_ERR
|
||||||
|
${elf_objpfx}${rtld_installed_name} --library-path ${library_path} \
|
||||||
|
${common_objpfx}posix/globtest -E "$testdir" "noread/*" |
|
||||||
|
sort > $testout
|
||||||
|
cat <<"EOF" | cmp - $testout || result=1
|
||||||
GLOB_ABORTED
|
GLOB_ABORTED
|
||||||
EOF
|
EOF
|
||||||
|
fi # not run as root
|
||||||
|
|
||||||
${elf_objpfx}${rtld_installed_name} --library-path ${library_path} \
|
${elf_objpfx}${rtld_installed_name} --library-path ${library_path} \
|
||||||
${common_objpfx}posix/globtest -E "$testdir" "noread*/*" |
|
${common_objpfx}posix/globtest -E "$testdir" "noread*/*" |
|
||||||
|
Loading…
Reference in New Issue
Block a user