diff options
| author | Ed Maste <emaste@FreeBSD.org> | 2026-06-03 14:13:45 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2026-06-03 15:33:05 +0000 |
| commit | 4908bea5b7f5de70032e201e718958ef40bc3b03 (patch) | |
| tree | 43f861a9bb3db0dc92a95f86ce428b65d0fc68bb | |
| parent | ce243df20aa8ba94918cafdca2537c8cd18887c8 (diff) | |
xinstall: Add test for -d -s not allowed together
Reviewed by: des
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57403
| -rwxr-xr-x | usr.bin/xinstall/tests/install_test.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/usr.bin/xinstall/tests/install_test.sh b/usr.bin/xinstall/tests/install_test.sh index 3cea648aa805..6b091f26b377 100755 --- a/usr.bin/xinstall/tests/install_test.sh +++ b/usr.bin/xinstall/tests/install_test.sh @@ -25,6 +25,12 @@ # # +atf_test_case incompatible_opts +incompatible_opts_body() { + atf_check -s not-exit:0 -e match:"specified together" \ + install -s -d dir1 +} + atf_test_case copy_to_empty copy_to_empty_body() { printf 'test\n123\r456\r\n789\0z' >testf @@ -549,6 +555,7 @@ digest_body() { } atf_init_test_cases() { + atf_add_test_case incompatible_opts atf_add_test_case copy_to_empty atf_add_test_case copy_to_nonexistent atf_add_test_case copy_to_nonexistent_dir |
