public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH 1/3] syscalls/pipe01: Remove unnecessary function
@ 2016-05-24  2:55 Xiao Yang
  2016-05-24  2:55 ` [LTP] [PATCH 2/3] syscalls/pipe02: Cleanup && convert to new API Xiao Yang
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Xiao Yang @ 2016-05-24  2:55 UTC (permalink / raw)
  To: ltp

Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
---
 testcases/kernel/syscalls/pipe/pipe01.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/testcases/kernel/syscalls/pipe/pipe01.c b/testcases/kernel/syscalls/pipe/pipe01.c
index 197918b..f0db2fa 100644
--- a/testcases/kernel/syscalls/pipe/pipe01.c
+++ b/testcases/kernel/syscalls/pipe/pipe01.c
@@ -60,17 +60,7 @@ static void verify_pipe(void)
 	tst_res(TPASS, "pipe() functionality is correct");
 }
 
-static void cleanup(void)
-{
-	if (fds[0] > 0 && close(fds[0]))
-		tst_res(TWARN | TERRNO, "Failed to close file");
-
-	if (fds[1] > 0 && close(fds[1]))
-		tst_res(TWARN | TERRNO, "Failed to close file");
-}
-
 static struct tst_test test = {
 	.tid = "pipe01",
-	.cleanup = cleanup,
 	.test_all = verify_pipe,
 };
-- 
1.8.3.1




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

end of thread, other threads:[~2016-06-01 13:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-24  2:55 [LTP] [PATCH 1/3] syscalls/pipe01: Remove unnecessary function Xiao Yang
2016-05-24  2:55 ` [LTP] [PATCH 2/3] syscalls/pipe02: Cleanup && convert to new API Xiao Yang
2016-06-01 12:47   ` Cyril Hrubis
2016-05-24  2:55 ` [LTP] [PATCH 3/3] syscalls/pipe03: " Xiao Yang
2016-06-01 12:47   ` Cyril Hrubis
2016-06-01 13:23 ` [LTP] [PATCH 1/3] syscalls/pipe01: Remove unnecessary function Cyril Hrubis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox