tests/test-access.c


Log

Author Commit Date CI Message
Simon Josefsson 5b92dd0a 2024-01-01T10:31:48 maint: run 'make update-copyright'
Bruno Haible 7631c4a3 2023-10-03T16:42:59 euidaccess: Add tests. * tests/test-access.h: New file, extracted from tests/test-access.c. * tests/test-access.c: Moved most code to tests/test-access.h. Include test-access.h. (main): Invoke test_access. * tests/test-euidaccess.c: New file, based on tests/test-access.c. * modules/access-tests (Files): Add tests/test-access.h. * modules/euidaccess-tests: New file, based on modules/access-tests.
Bruno Haible acdf80a4 2023-10-03T15:59:57 access: Work around trailing slash bug on Mac OS X 10.5. * m4/access.m4 (gl_FUNC_ACCESS): Test whether access honors a trailing slash. Set REPLACE_ACCESS to 1 and define ACCESS_TRAILING_SLASH_BUG if not. * lib/access.c (access): Add an implementation for Unix-like platforms. * tests/test-access.c (main): Test for result if the argument has a trailing slash. * modules/access-tests (Depends-on): Add 'symlink'. * doc/posix-functions/access.texi: Mention the Mac OS X bug.
Simon Josefsson 32a72f45 2023-01-01T01:14:21 maint: run 'make update-copyright'
Bernhard Voelker 87e6634b 2022-01-04T00:16:50 license: fix GPLv3 texts to use a comma instead of semicolon. See: https://www.gnu.org/licenses/gpl-3.0.html#howto Run: $ git grep -l 'Foundation; either version 3' \ | xargs sed -i '/Foundation; either version 3/ s/n; e/n, e/' * All files using GPLv3: Adjust via the above command.
Paul Eggert eec12c00 2022-01-01T09:43:19 maint: run 'make update-copyright'
Paul Eggert 4b948321 2021-01-01T07:28:52 maint: run 'make update-copyright'
Bruno Haible 0a24fb61 2020-11-30T23:32:36 access tests: Fix test failure on native Windows. * tests/test-access.c (main): Change permissions of f2 file before attempting to remove it.
Paul Eggert 2cdc1baf 2020-01-01T00:00:18 maint: Run 'make update-copyright'
Bruno Haible 1eb7b25d 2019-10-07T01:42:11 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.
Bruno Haible 213cd443 2019-09-15T18:58:42 access: Add tests. * tests/test-access.c: New file. * modules/access-tests: New file.