diff --git a/tests/usertools/01/14_useradd_out_of_range_UID.test b/tests/usertools/01/14_useradd_out_of_range_UID.test index 2b75d713..88cac264 100755 --- a/tests/usertools/01/14_useradd_out_of_range_UID.test +++ b/tests/usertools/01/14_useradd_out_of_range_UID.test @@ -16,8 +16,8 @@ trap 'log_status "$0" "FAILURE"; restore_config' 0 change_config -echo -n "Create user test1 with UID 2147483648 (useradd -u 2147483648 test1)..." -msg=$(useradd -u 2147483648 test1 2>&1) && exit 1 || { +echo -n "Create user test1 with UID 4294967296 (useradd -u 4294967296 test1)..." +msg=$(useradd -u 4294967296 test1 2>&1) && exit 1 || { status=$? } echo "OK" @@ -26,8 +26,8 @@ echo "and displayed \"$msg\"" echo -n "The returned status should be 3..." test "$status" = "3" echo "OK" -echo -n "Test the error message (should be \"useradd: invalid numeric argument '2147483648'\")..." -test "$msg" = "useradd: invalid numeric argument '2147483648'" +echo -n "Test the error message (should be \"useradd: invalid user ID '4294967296'\")..." +test "$msg" = "useradd: invalid user ID '4294967296'" echo "OK" echo -n "Check the passwd file..."