summaryrefslogtreecommitdiff
path: root/modules/getcwd-lgpl-tests
Commit message (Collapse)AuthorAgeFilesLines
* Tests: Avoid link failures w.r.t. libintl.Bruno Haible2011-10-081-0/+1
| | | | | | | | | | | | | | * modules/faccessat-tests (Makefile.am): Link test-faccessat against $(LIBINTL). * modules/fchdir-tests (Makefile.am): Link test-fchdir against $(LIBINTL). * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl against $(LIBINTL). * modules/getcwd-tests (Makefile.am): Link test-getcwd against $(LIBINTL). * modules/openat-tests (Makefile.am): Link test-fchmodat against $(LIBINTL). * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
* getcwd: enhance testsEric Blake2011-04-271-0/+12
The existing getcwd was weak, and only tested things guaranteed by the new getcwd-lgpl. Move those tests into a new file and strengthen them slightly (such as guaranteeing the ERANGE error for a non-zero but too-small size). Then copy the m4 tests for PATH_MAX failures into the GPL getcwd tests, to prove that our replacement really is fixing the things that cause us to reject the system getcwd as non-robust. * tests/test-getcwd-lgpl.c: New file, taken from... * tests/test-getcwd.c: ...old contents. Rewrite this file to repeat long path stress tests from m4 probe. * modules/getcwd-lgpl-tests: New module. * modules/getcwd-tests (Depends-on): Depend on lgpl tests. * m4/getcwd-abort-bug.m4: Update comment. * m4/getcwd-path-max.m4: Likewise. Signed-off-by: Eric Blake <eblake@redhat.com>