Hi!
> > for (lc = 0; TEST_LOOPING(lc); lc++) {
> > - const char *d_name;
> > -
> > tst_count = 0;
> >
> > if ((fd = open(".", O_RDONLY)) == -1)
> > @@ -102,15 +100,7 @@ int main(int ac, char **av)
> > continue;
> > }
> >
> > - if (longsyscall)
> > - d_name = dirp64->d_name;
> > - else
> > - d_name = dirp->d_name;
> > -
> > - if (strcmp(d_name, "."))
> > - tst_resm(TFAIL, "First entry is not '.'");
> > - else
> > - tst_resm(TPASS, "call succeeded");
> > + tst_resm(TPASS, "call succeeded");
> >
> > if (close(fd) == -1)
> > tst_brkm(TBROK, cleanup, "file close failed");
>
> this test isn't really useful after your change. you've basically validated
> that the a valid fd and a large enough buffer was passed to the kernel and
> that's it.
>
> you should have it walk the results to try and find an "." and ".." entry.
Yes, that would be even better. Or we can get even more creative and
create a file or two in the setup and expect them to be in the listing.
--
Cyril Hrubis
[email protected]
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list