]> Savannah Git Hosting - gnulib.git/commit
access tests: Fix test failure when run as root.
authorBruno Haible <bruno@clisp.org>
Sun, 6 Oct 2019 23:42:11 +0000 (01:42 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 6 Oct 2019 23:42:11 +0000 (01:42 +0200)
commit1eb7b25df1976fa852ddd7ea0ae26ec670146ce7
tree686ef04b50fdfc070819cf36ee01508f5ac3a529
parent4f027501ea35f8075192e360ac45c641ebad18dc
access tests: Fix test failure when run as root.

* tests/test-access.c: Include root-uid.h.
(geteuid): Define fallback.
(main): Don't expect that writing to a read-only file would fail when
running as root. Also, remove the created files at the end.
* modules/access-tests (Depends-on): Add root-uid.
(configure.ac): Test whether geteuid exists.
ChangeLog
modules/access-tests
tests/test-access.c