diff options
| author | Kyle Evans <kevans@FreeBSD.org> | 2025-06-24 22:18:27 +0000 |
|---|---|---|
| committer | Kyle Evans <kevans@FreeBSD.org> | 2025-07-10 17:54:19 +0000 |
| commit | 7e8afac0cb2d53595c06717fd4a50d6ec97a3f9d (patch) | |
| tree | 72e46616e35bcd393ac02546a25d2d3d21a1b8e5 /usr.bin/lockf/tests | |
| parent | df268d4b03a16869502d6842d40aeb66329db982 (diff) | |
Diffstat (limited to 'usr.bin/lockf/tests')
| -rw-r--r-- | usr.bin/lockf/tests/lockf_test.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/usr.bin/lockf/tests/lockf_test.sh b/usr.bin/lockf/tests/lockf_test.sh index d73c7590653d..0cdf7dae6f57 100644 --- a/usr.bin/lockf/tests/lockf_test.sh +++ b/usr.bin/lockf/tests/lockf_test.sh @@ -62,6 +62,13 @@ basic_body() atf_check test ! -e "testlock" } +atf_test_case bubble_error +bubble_error_body() +{ + # Ensure that lockf bubbles up the error as expected. + atf_check -s exit:9 lockf testlock sh -c 'exit 9' +} + atf_test_case fdlock fdlock_body() { @@ -233,6 +240,7 @@ atf_init_test_cases() { atf_add_test_case badargs atf_add_test_case basic + atf_add_test_case bubble_error atf_add_test_case fdlock atf_add_test_case keep atf_add_test_case needfile |
