All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH v2] epoll_creat01: Replace TST_PASS with TST_RET
@ 2021-08-31  3:51 Xie Ziyao
  2021-08-31  9:24 ` Cyril Hrubis
  0 siblings, 1 reply; 2+ messages in thread
From: Xie Ziyao @ 2021-08-31  3:51 UTC (permalink / raw)
  To: ltp

In TST_EXP_FD(), the value of TST_RET is the returned fd, not TST_PASS.

Fixes: 081f940b2df00 ("epoll_create: Add test for epoll_create01")
Suggested-by: Cyril Hrubis <chrubis@suse.cz>
Signed-off-by: Xie Ziyao <ziyaoxie@outlook.com>
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
---
 testcases/kernel/syscalls/epoll_create/epoll_create01.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/kernel/syscalls/epoll_create/epoll_create01.c b/testcases/kernel/syscalls/epoll_create/epoll_create01.c
index 54fd0810d..3ef5b5cac 100644
--- a/testcases/kernel/syscalls/epoll_create/epoll_create01.c
+++ b/testcases/kernel/syscalls/epoll_create/epoll_create01.c
@@ -28,7 +28,7 @@ static void run(unsigned int n)

 	if (!TST_PASS)
 		return;
-	SAFE_CLOSE(TST_PASS);
+	SAFE_CLOSE(TST_RET);
 }

 static struct tst_test test = {
--
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [LTP] [PATCH v2] epoll_creat01: Replace TST_PASS with TST_RET
  2021-08-31  3:51 [LTP] [PATCH v2] epoll_creat01: Replace TST_PASS with TST_RET Xie Ziyao
@ 2021-08-31  9:24 ` Cyril Hrubis
  0 siblings, 0 replies; 2+ messages in thread
From: Cyril Hrubis @ 2021-08-31  9:24 UTC (permalink / raw)
  To: ltp

Hi!
Pushed, thanks.

-- 
Cyril Hrubis
chrubis@suse.cz

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-31  9:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-31  3:51 [LTP] [PATCH v2] epoll_creat01: Replace TST_PASS with TST_RET Xie Ziyao
2021-08-31  9:24 ` Cyril Hrubis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.