logo       

4.5.9 test failure: fail-2eperm: msg#00027

gnu.core-utils.bugs

Subject: 4.5.9 test failure: fail-2eperm

On my system, the "nobody" user does not have a usable shell.

make check-TESTS
make[3]: Entering directory
`/fs/data/mount/home/prj/src/spf/coreutils-4.5.9/tests/rm'
out exp differ: char 1, line 1
1c1
< su: /nil/nobody/shell: No such file or directory
---
> rm: cannot remove `a/b': Operation not permitted
FAIL: fail-2eperm

I think the right way to do this sort of thing is to let the user
specify a username or UID to use for non-root tests. Then you can
pass the UID directly to setuid() rather than using su, so you don't
have to worry about the shell. This would also make it possible to
run all the tests in a single "make check" run, rather than getting
messages like:
***************************
NOTICE:
./cycle: This test is being skipped, since it works only
when run by an unprivileged user.
***************************


paul


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise