On Thursday 17 April 2008, Subrata Modak wrote:
> On Thu, 2008-04-17 at 00:33 -0400, Mike Frysinger wrote:
> > perhaps Subrata can comment on that. we should probably have an LTP
> > function for test cases that require root which we can call at the start
> > of the function ... so in our test cases we call like:
> > ltp_require_root();
> >
> > and in the library we have like:
> > void ltp_require_root(void)
> > {
> > if (getuid()) {
> > tst_resm(TWARN, "%s: test requires root, skipping\n", TCID);
> > tst_exit();
> > }
> > }
>
> This will be very handy for all new upcoming testcases, and, if i am not
> wrong such checking may already exist. Just not sure.in a common function, or tests doing the uid/gid check themselves and aborting with TBROK ? -mike
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
