This kernel commit "readlinkat(), fchownat() and fstatat() with empty relative
pathnames"(65cfc6722361570bfe255698d9cd4dccaf47570d) broken POSIX scope which
makes readlink03 fail like this:

readlink03    1  TFAIL  :  readlink() failed, Symlink Pathname is empty,
errno=22, expected errno=2

This patch fix the except return val from -ENOENT to -EINVAL.

Signed-off-by: Bob Liu <[email protected]>
---
 testcases/kernel/syscalls/readlink/readlink03.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/testcases/kernel/syscalls/readlink/readlink03.c 
b/testcases/kernel/syscalls/readlink/readlink03.c
index 0535b25..dbc20e6 100644
--- a/testcases/kernel/syscalls/readlink/readlink03.c
+++ b/testcases/kernel/syscalls/readlink/readlink03.c
@@ -132,7 +132,7 @@ struct test_case_t {                /* test case struct. to 
hold ref. test cond's */
        TEST_FILE2, "File is not symbolic link", EINVAL, 1, no_setup}, {
        Longpathname, "Symlink path too long", ENAMETOOLONG, 1, lpath_setup},
        {
-       "", "Symlink Pathname is empty", ENOENT, 1, no_setup}, {
+       "", "Symlink Pathname is empty", EINVAL, 1, no_setup}, {
        NULL, NULL, 0, 0, no_setup}
 };
 
-- 
1.6.3.3



------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to