Page MenuHomeFreeBSD

lockf: add some tests
ClosedPublic

Authored by kevans on Nov 22 2023, 5:12 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 29 2024, 3:33 PM
Unknown Object (File)
Sep 16 2024, 12:47 PM
Unknown Object (File)
Sep 7 2024, 4:20 PM
Unknown Object (File)
Sep 2 2024, 5:32 AM
Unknown Object (File)
Sep 2 2024, 5:32 AM
Unknown Object (File)
Sep 2 2024, 5:32 AM
Unknown Object (File)
Sep 2 2024, 5:31 AM
Unknown Object (File)
Sep 2 2024, 5:19 AM

Details

Reviewers
allanjude
Group Reviewers
Klara
Commits
rG296a5a4db1fc: lockf: add some tests
Summary

Provide basic coverage for the existing options, nothing deeper (e.g.,
pipe closing behavior) is tested in this set.

Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Stop waiting on some of the sleeps, improve reliability

0mp added inline comments.
usr.bin/lockf/tests/lockf_test.sh
95

What's the reason for that? Why is failing under 10 seconds considered a success?

allanjude added a subscriber: allanjude.

reviewed-by: allanjude

usr.bin/lockf/tests/lockf_test.sh
95

the -n flag means: exit immediately if testlock does not already exist

This revision is now accepted and ready to land.Nov 22 2023, 1:49 PM
des added inline comments.
usr.bin/lockf/tests/lockf_test.sh
38

style(9) no longer requires a blank line at the top of a function

This revision was automatically updated to reflect the committed changes.
kevans marked an inline comment as done.