From f0866cc1fb75e2e5dc419cececc907c6127720f2 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Mon, 16 Mar 2009 21:27:45 +0000 Subject: [PATCH] Intent of 14_useradd_out_of_range_UID.test was to test with UID=2**32, not 2**31. Although the limit for UIDs used to be 2**31-1. --- tests/usertools/01/14_useradd_out_of_range_UID.test | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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..."