summaryrefslogtreecommitdiffstats
path: root/tests/posix
AgeCommit message (Collapse)Author
2024-02-01tests: Don't clobber inherited FDsTavian Barnes
Rather than attempting to close any unexpected FDs, just count them and adjust our ulimit -n calls to account for them.
2024-01-17tests/posix: Avoid catastrophic backtrackingTavian Barnes
Using -path 'deep/*/*/.../*' to simulate -mindepth 18 falls off a performance cliff on systems that use backtracking for fnmatch(). This was observed on macOS 12.4. Instead, just use -type f.
2024-01-03tests/posix/name_bracket: Skip on NetBSD tooTavian Barnes
2023-11-02tests: Add tests for ulimit -n after -execTavian Barnes
2023-10-23tests: Fix Bash 3 compatibilityTavian Barnes
2023-10-22tests: Use test-specific scratch directoriesTavian Barnes
2023-10-19tests: Refactor implementation into separate filesTavian Barnes
2023-10-19tests: New defer functionTavian Barnes
2023-10-17dir: Fix FreeBSD union mountsTavian Barnes
2023-10-14tests: Move closed_std* tests out of the POSIX groupTavian Barnes
POSIX actually says > If the utility would be executed with file descriptor 0, 1, or 2 > closed, implementations may execute the utility with the file > descriptor open to an unspecified file. So we're not guaranteed to be able to detect the situation in the first place. Add a best-effort check for these platforms and skip the test. Link: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_09_01_01
2022-12-29tests: Use bfs_sudo wrapper instead of testing $SUDOTavian Barnes
2022-12-16tests: Fail early in bfs_diff if the diff failsTavian Barnes
Otherwise, propagate the exit code from bfs
2022-12-16tests: Turn on set -eTavian Barnes
2022-12-16tests: Move crash detection into invoke_bfs, use ! instead of failTavian Barnes
2022-12-16tests: Replace skip_unless test with test || skipTavian Barnes
2022-12-14tests/posix/readdir_error: Fix flakinessTavian Barnes
2022-12-13tests: Add a test for readdir() errorsTavian Barnes
2022-11-11exec: Fix index overflow parsing -exec +Tavian Barnes
2022-11-09pwcache: Fill the user/group caches lazilyTavian Barnes
Iterating all the users/groups can be expensive, especially with NSS. Android has so many that it doesn't even return them all from get{pw,gr}ent() for performance reasons, leading to incorrect behaviour of -user/-group/etc.
2022-11-07tests/xtouch: New utilityTavian Barnes
POSIX touch(1) doesn't include the -h option, and indeed OpenBSD doesn't implement it. Making our own utility also lets us add some handy extensions like -p (create parents) and -M (set permissions).
2022-10-20tests: Add a helper for cleaning scratchTavian Barnes
And try to unmount things if the a test left them mounted.
2022-10-19tests: Coverage number go upTavian Barnes
2022-10-19tests: Split test cases into separate filesTavian Barnes