a5bf5254ca94e0164af76d409224ea0764632d22 |
|
14-Mar-2017 |
Cyril Hrubis <chrubis@suse.cz> |
tst_test.c: set the test id automatically Use the argv[0] to set the tst_test->tid automatically since we fail to update it commonly and we end up with wrong tid due to copy&paste. Now it's initialized in the test setup based on argv[0]. If argv[0] is a path we take last element in it. This patch is based on v1 by Li Wang but I've omitted moving the parse_opts() up in the setup() since the setup() function expects that tst_test sturcture is non-NULL and may segfault if that is not true. Signed-off-by: Li Wang <liwang@redhat.com> Signed-off-by: Cyril Hrubis <chrubis@suse.cz> Acked-by: Petr Vorel <pvorel@suse.cz>
/external/ltp/testcases/kernel/syscalls/lgetxattr/lgetxattr01.c
|
70a21de24cdd0d6d3bd3c550f4fd2fada305bff1 |
|
04-Oct-2016 |
Dejan Jovicevic <dejan.jovicevic@rt-rk.com> |
Use sys/xattr.h instead of attr/xattr.h Use the glibc header sys/xattr.h instead of the libattr attr/xattr.h header. We were never linking againts the libattr library anyway and because of that we picked up the glibc syscall wrappers while linking so using the libattr header was mistake to begin with. The only difference between the glibc header and libattr header is that libattr defined ENOATTR alias for ENODATA errno. So in this patch we simply replace attr/xattr.h with sys/xattr.h and ENOATTR with ENODATA. Signed-off-by: Dejan Jovicevic <dejan.jovicevic@rt-rk.com> Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/lgetxattr/lgetxattr01.c
|
20a89dc52d754f07a69bd83918e1d90586b5049a |
|
14-Jul-2016 |
Xiao Yang <yangx.jy@cn.fujitsu.com> |
lgetxattr/lgetxattr01.c: add new testcase The testcase checks the basic functionality of the lgetxattr(2). In the case of a symbolic link, we only get the value of the extended attribute related to the link itself by name. Signed-off-by: Jinbao Huang <huangjb.jy@cn.fujitsu.com> Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com> Acked-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/lgetxattr/lgetxattr01.c
|