aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/lockf/tests
Commit message (Collapse)AuthorAgeFilesLines
* lockf: tests: add tests for the -p and -T featuresKyle Evans2025-07-101-0/+95
| | | | | Reviewed by: des Differential Revision: https://reviews.freebsd.org/D51026
* lockf: switch to a SIGCHLD model for reaping childKyle Evans2025-07-101-0/+8
| | | | | | | | | | | | | | A future change will add a -T flag to forward SIGTERM along to the child before we cleanup and terminate ourselves. Using a SIGCHLD handler to do that with SIGTERM blocked only while the child is actively being collected will enable us to safely do so without having to worry that our pid is potentially invalid. Add a test that concisely checks that the child's error is properly bubbled up to the caller. Reviewed by: des, kib Differential Revision: https://reviews.freebsd.org/D51024
* Update Makefile.depend filesSimon J. Gerraty2024-10-141-0/+10
| | | | | | | After building packages we have a number of new and updated Makefile.depend files Reviewed by: stevek
* Remove residual blank line at start of MakefileWarner Losh2024-07-151-1/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* lockf tests: Fix a raceMark Johnston2024-07-141-1/+3
| | | | | | | The test launches lockf(1) in the background and races with it, so it shouldn't be using atf_check to check that lockf won the race. MFC after: 1 week
* lockf: allow locking file descriptorsKyle Evans2023-11-261-0/+91
| | | | | | | | | | | | This is most useful inside a shell script, allowing one to lock just portions of a script rather than having to wrap the entire script in a lock. PR: 262738 Reviewed by: 0mp, allanjude (both previous versions) Co-authored-by: Daniel O'Connor <darius@dons.net.au> Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D42718
* lockf: add some testsKyle Evans2023-11-262-0/+154
Provide basic coverage for the existing options, nothing deeper (e.g., pipe closing behavior) is tested in this set. Reviewed by: allanjude Feedback from: des Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D42714