mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-06 16:40:47 +00:00
d0b2dbfa0e
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
18 lines
472 B
Bash
Executable file
18 lines
472 B
Bash
Executable file
|
|
# When the '-V directory' option is provided, the directory must exist
|
|
atf_test_case etcdir_must_exist
|
|
etcdir_must_exist_head() {
|
|
atf_set "descr" "When the '-V directory' option is provided, the directory must exist"
|
|
}
|
|
|
|
etcdir_must_exist_body() {
|
|
local fakedir="/this_directory_does_not_exist"
|
|
atf_check -e inline:"pw: no such directory \`$fakedir'\n" \
|
|
-s exit:72 -x pw -V ${fakedir} usershow root
|
|
}
|
|
|
|
atf_init_test_cases() {
|
|
atf_add_test_case etcdir_must_exist
|
|
}
|
|
|