Date: Wed, 5 Aug 2015 21:11:33 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r286341 - head/usr.sbin/pw/tests Message-ID: <201508052111.t75LBXah039414@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bapt Date: Wed Aug 5 21:11:32 2015 New Revision: 286341 URL: https://svnweb.freebsd.org/changeset/base/286341 Log: 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 Modified: head/usr.sbin/pw/tests/pw_usermod.sh Modified: head/usr.sbin/pw/tests/pw_usermod.sh ============================================================================== --- head/usr.sbin/pw/tests/pw_usermod.sh Wed Aug 5 20:32:07 2015 (r286340) +++ head/usr.sbin/pw/tests/pw_usermod.sh Wed Aug 5 21:11:32 2015 (r286341) @@ -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 }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508052111.t75LBXah039414>