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).

I will deal with this by creating a library function to provide invalid
addresses and fix all the testcases later.

> +     {TEST_SYMLINK, &buf, ELOOP},
> +     {nametoolong, &buf, ENAMETOOLONG},
> +     {"filenoexist", &buf, ENOENT},
> +     {"statvfs_file/test", &buf, ENOTDIR},
> +};

-- 
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
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

Reply via email to