Author: bapt
Date: Sun Aug  2 18:20:36 2015
New Revision: 286210
URL: https://svnweb.freebsd.org/changeset/base/286210

Log:
  Convert the year used for regression test fro 2043 to 2037
  
  This makes the regression tests pass on systems where time_t is 32bits

Modified:
  head/usr.sbin/pw/tests/pw_useradd.sh

Modified: head/usr.sbin/pw/tests/pw_useradd.sh
==============================================================================
--- head/usr.sbin/pw/tests/pw_useradd.sh        Sun Aug  2 16:29:30 2015        
(r286209)
+++ head/usr.sbin/pw/tests/pw_useradd.sh        Sun Aug  2 18:20:36 2015        
(r286210)
@@ -181,29 +181,29 @@ user_add_expiration_body() {
        populate_etc_skel
 
        atf_check -s exit:0 \
-               ${PW} useradd foo -e 20-03-2043
-       atf_check -o inline:"foo:*:1001:1001::0:2310422400:User 
&:/home/foo:/bin/sh\n" \
+               ${PW} useradd foo -e 20-03-2037
+       atf_check -o inline:"foo:*:1001:1001::0:2121120000:User 
&:/home/foo:/bin/sh\n" \
                -s exit:0 grep "^foo" ${HOME}/master.passwd
        atf_check -s exit:0 ${PW} userdel foo
        atf_check -s exit:0 \
-               ${PW} useradd foo -e 20-03-43
-       atf_check -o inline:"foo:*:1001:1001::0:2310422400:User 
&:/home/foo:/bin/sh\n" \
+               ${PW} useradd foo -e 20-03-37
+       atf_check -o inline:"foo:*:1001:1001::0:2121120000:User 
&:/home/foo:/bin/sh\n" \
                -s exit:0 grep "^foo" ${HOME}/master.passwd
        atf_check -s exit:0 ${PW} userdel foo
        atf_check -s exit:0 \
-               ${PW} useradd foo -e 20-Mar-2043
-       atf_check -o inline:"foo:*:1001:1001::0:2310422400:User 
&:/home/foo:/bin/sh\n" \
+               ${PW} useradd foo -e 20-Mar-2037
+       atf_check -o inline:"foo:*:1001:1001::0:2121120000:User 
&:/home/foo:/bin/sh\n" \
                -s exit:0 grep "^foo" ${HOME}/master.passwd
        atf_check -s exit:0 ${PW} userdel foo
        atf_check -e inline:"pw: Invalid date\n" -s exit:1 \
-               ${PW} useradd foo -e 20-Foo-2043
+               ${PW} useradd foo -e 20-Foo-2037
        atf_check -e inline:"pw: Invalid date\n" -s exit:1 \
-               ${PW} useradd foo -e 20-13-2043
-       atf_check -s exit:0 ${PW} useradd foo -e "12:00 20-03-2043"
+               ${PW} useradd foo -e 20-13-2037
+       atf_check -s exit:0 ${PW} useradd foo -e "12:00 20-03-2037"
        atf_check -s exit:0 ${PW} userdel foo
        atf_check -e inline:"pw: Invalid date\n" -s exit:1 \
-               ${PW} useradd foo -e "12 20-03-2043"
-       atf_check -s exit:0 ${PW} useradd foo -e "20-03-2043    12:00"
+               ${PW} useradd foo -e "12 20-03-2037"
+       atf_check -s exit:0 ${PW} useradd foo -e "20-03-2037    12:00"
        atf_check -s exit:0 ${PW} userdel foo
 }
 
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to