Message ID | 20240208013224.859-4-wegao@suse.com |
---|---|
State | Superseded |
Headers | show |
Series | lib: TST_EXP_{FAIL,PASS}_PTR_{NULL,VOID} | expand |
Hi Wei,
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Kind regards,
Petr
diff --git a/testcases/kernel/syscalls/realpath/realpath01.c b/testcases/kernel/syscalls/realpath/realpath01.c index c0381e9cb..c4c603609 100644 --- a/testcases/kernel/syscalls/realpath/realpath01.c +++ b/testcases/kernel/syscalls/realpath/realpath01.c @@ -24,16 +24,7 @@ static void setup(void) static void run(void) { - TESTPTR(realpath(".", NULL)); - - if (TST_ERR != ENOENT) { - tst_res(TFAIL | TTERRNO, "returned unexpected errno"); - } else if (TST_RET_PTR != NULL) { - tst_res(TFAIL, "syscall didn't return NULL: '%s'", - (char *)TST_RET_PTR); - } else { - tst_res(TPASS, "bug not reproduced"); - } + TST_EXP_FAIL_PTR_NULL(realpath(".", NULL), ENOENT); } static struct tst_test test = {
Signed-off-by: Wei Gao <wegao@suse.com> --- testcases/kernel/syscalls/realpath/realpath01.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-)