diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-08-05 21:11:32 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-08-05 21:11:32 +0000 |
commit | 26d91ea7b62878a83a10861f1411e02f428816b4 (patch) | |
tree | 7f93bc04b2791abd5692b3301ed143535a53f72e | |
parent | 966e71ed139757f586bc1136032dfcc52b454d71 (diff) | |
download | pw-darwin-26d91ea7b62878a83a10861f1411e02f428816b4.tar.gz pw-darwin-26d91ea7b62878a83a10861f1411e02f428816b4.tar.zst pw-darwin-26d91ea7b62878a83a10861f1411e02f428816b4.zip |
Add regression tests for a bug reported in stable/10
While pw(8) on head is not affected it is worth adding more regression tests
ensuring this bug will not happen unnoticed in the futur
-rwxr-xr-x | pw/tests/pw_usermod.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pw/tests/pw_usermod.sh b/pw/tests/pw_usermod.sh index 7acc7a5..236fd27 100755 --- a/pw/tests/pw_usermod.sh +++ b/pw/tests/pw_usermod.sh @@ -195,6 +195,14 @@ user_mod_renamehome_body() { test -d ${HOME}/home/bar || atf_fail "Directory not created" } +atf_test_case user_mod_uid +user_mod_uid_body() { + populate_etc_skel + + atf_check -s exit:0 ${PW} useradd foo + atf_check -s exit:0 ${PW} usermod foo -u 5000 +} + atf_init_test_cases() { atf_add_test_case user_mod atf_add_test_case user_mod_noupdate @@ -210,4 +218,5 @@ atf_init_test_cases() { atf_add_test_case user_mod_h atf_add_test_case user_mod_H atf_add_test_case user_mod_renamehome + atf_add_test_case user_mod_uid } |