aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pw/tests
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-08-05 21:11:32 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-08-05 21:11:32 +0000
commitf5a15df7d8807c0d659fea99898d3698ef551e00 (patch)
tree463e3056af789c87bb8fac7346f771ed2beae8e3 /usr.sbin/pw/tests
parentd94b89b9157c0080139141d74885290a0e4b4167 (diff)
downloadsrc-f5a15df7d8807c0d659fea99898d3698ef551e00.tar.gz
src-f5a15df7d8807c0d659fea99898d3698ef551e00.zip
Notes
Diffstat (limited to 'usr.sbin/pw/tests')
-rwxr-xr-xusr.sbin/pw/tests/pw_usermod.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/usr.sbin/pw/tests/pw_usermod.sh b/usr.sbin/pw/tests/pw_usermod.sh
index 7acc7a526122..236fd27661eb 100755
--- a/usr.sbin/pw/tests/pw_usermod.sh
+++ b/usr.sbin/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
}