On Tue, 2014-06-03 at 17:29 +0200, [email protected] wrote:
> Hi!
> Both pushed, thanks.
>
> > +static struct test_case_t {
> > + char *path;
> > + struct statvfs *buf;
> > + int exp_errno;
> > +} test_cases[] = {
> > + {NULL, &buf, EFAULT},
>
> I've changed the testcase, for now, to map PROT_NONE page and set
> pointer to it to a path for this testcase because there architectures
> that have something mapped on NULL address (itanium if I recall
> correctly).
>
Thank you for your prompt. :)
> I will deal with this by creating a library function to provide invalid
> addresses and fix all the testcases later.
>
It is good.
Best regards,
Zeng
> > + {TEST_SYMLINK, &buf, ELOOP},
> > + {nametoolong, &buf, ENAMETOOLONG},
> > + {"filenoexist", &buf, ENOENT},
> > + {"statvfs_file/test", &buf, ENOTDIR},
> > +};
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list