[Pkg-shadow-commits] r2890 - in debian/trunk/tests/grouptools/gpasswd: 45_gpasswd_-r_unknown_group 46_gpasswd_-a_unknown_user 47_gpasswd_-M_unknown_user 55_gpasswd_change_admin_list-no_gshadow_file 57_gpasswd_remove_user_from_group-not_member

Nicolas FRANÇOIS nekral-guest at alioth.debian.org
Sat May 9 22:32:10 UTC 2009


Author: nekral-guest
Date: 2009-05-09 22:32:10 +0000 (Sat, 09 May 2009)
New Revision: 2890

Modified:
   debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/gpasswd.test
Log:
There were changes in the exit codes of gpasswd.


Modified: debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/gpasswd.test	2009-05-09 22:30:21 UTC (rev 2889)
+++ debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/gpasswd.test	2009-05-09 22:32:10 UTC (rev 2890)
@@ -23,7 +23,7 @@
 echo "OK"
 
 echo -n "Check returned status ($status)..."
-test "$status" = "1"
+test "$status" = "3"  # E_BAD_ARG
 echo "OK"
 
 echo "gpasswd reported:"

Modified: debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/gpasswd.test	2009-05-09 22:30:21 UTC (rev 2889)
+++ debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/gpasswd.test	2009-05-09 22:32:10 UTC (rev 2890)
@@ -23,7 +23,7 @@
 echo "OK"
 
 echo -n "Check returned status ($status)..."
-test "$status" = "1"
+test "$status" = "3" # E_BAD_ARG
 echo "OK"
 
 echo "gpasswd reported:"

Modified: debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/gpasswd.test	2009-05-09 22:30:21 UTC (rev 2889)
+++ debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/gpasswd.test	2009-05-09 22:32:10 UTC (rev 2890)
@@ -23,7 +23,7 @@
 echo "OK"
 
 echo -n "Check returned status ($status)..."
-test "$status" = "1"
+test "$status" = "3" # E_BAD_ARG
 echo "OK"
 
 echo "gpasswd reported:"

Modified: debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/gpasswd.test	2009-05-09 22:30:21 UTC (rev 2889)
+++ debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/gpasswd.test	2009-05-09 22:32:10 UTC (rev 2890)
@@ -26,7 +26,7 @@
 echo "OK"
 
 echo -n "Check returned status ($status)..."
-test "$status" = "2"
+test "$status" = "17" # E_GSHADOW_NOTFOUND
 echo "OK"
 
 echo "gpasswd reported:"

Modified: debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/gpasswd.test	2009-05-09 22:30:21 UTC (rev 2889)
+++ debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/gpasswd.test	2009-05-09 22:32:10 UTC (rev 2890)
@@ -23,7 +23,7 @@
 echo "OK"
 
 echo -n "Check returned status ($status)..."
-test "$status" = "1"
+test "$status" = "3" # E_BAD_ARG
 echo "OK"
 
 echo "gpasswd reported:"




More information about the Pkg-shadow-commits mailing list