The following patch PASS the "rusers01" test correctly if "rusers" command executes without any error. It reports the failure if "rusers" command fails.
Signed-off-by: [email protected] --- testcases/network/rpc/basic_tests/rusers/rusers01 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Index: ltp-full-20090131/testcases/network/rpc/basic_tests/rusers/rusers01 =================================================================== --- ltp-full-20090131.orig/testcases/network/rpc/basic_tests/rusers/rusers01 +++ ltp-full-20090131/testcases/network/rpc/basic_tests/rusers/rusers01 @@ -93,16 +93,16 @@ rusers > /dev/null echo "Test rusers with options set...please be patient" # Go through matrix of rusers options: -rusers $RHOST | grep $RHOST > /dev/null +rusers $RHOST > /dev/null [ $? -eq 0 ] || end_testcase "rusers $RHOST - failed" -rusers -a $RHOST | grep $RHOST > /dev/null +rusers -a $RHOST > /dev/null [ $? -eq 0 ] || end_testcase "rusers -a $RHOST - failed" rusers -l > /dev/null [ $? -eq 0 ] || end_testcase "rusers -l - failed" -rusers -l $RHOST | grep $RHOST > /dev/null +rusers -l $RHOST > /dev/null [ $? -eq 0 ] || end_testcase "rusers -l $RHOST - failed" echo "Test rusers with bad options" ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
