Hi All,

I found few more such code in the same "testcases/bin/rusers01" scripts,
they are as follows:

*rusers -a $RHOST | grep $RHOST > /dev/null
[ $? -eq 0 ] || end_testcase "rusers -a $RHOST - failed"

rusers -l $RHOST | grep $RHOST > /dev/null
[ $? -eq 0 ] || end_testcase "rusers -l $RHOST - failed"*

Fix for them is as follows:

*rusers -a $RHOST  > /dev/null
[ $? -eq 0 ] || end_testcase "rusers -a $RHOST - failed"

rusers -l $RHOST  > /dev/null
[ $? -eq 0 ] || end_testcase "rusers -l $RHOST - failed"*

With these all fix rusers01 script works fine.

(I am using the October 2008 release of LTP, and I found the same bug
in rusers01 in latest LTP release of Jan. 2009. )

Could anyone please let me know whether it is correct ?

Thanks in advance,
Vivek Satpute.

On Fri, Feb 6, 2009 at 7:50 PM, Vivek Satpute <[email protected]> wrote:

> Hi All,
>
> I am working on LTP, and came across following bug and posting
> a fix for it. I am new to LTP so if I am wrong then please let me know.
>
> LTP have "testcases/bin/rusers01" scripts which is basic test for
> the `rusers` command, have following lines:
>
> *rusers $RHOST | grep $RHOST > /dev/null
> [ $? -eq 0 ] || end_testcase "rusers $RHOST - failed"
> *
>
> If my RHOST machine don't have any user logged in, then
> *rusers $RHOST | grep $RHOST > /dev/null*
> returns 1, and "testcases/bin/rusers01" test fails. I modified the line as
> follows :
> *rusers $RHOST > /dev/null*
> and test works fine. So, I think its of no use to grep "RHOST" when
> there is no user logged in on RHOST, it causes test to fail still
> "rusers $RHOST" executes without any error.
>
> Thanks,
> Vivek.
>
>
>
------------------------------------------------------------------------------
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

Reply via email to