* [LTP] [PATCH] syscalls/open05: Move cleanup() to the end of test
@ 2021-04-25 9:19 Zhao Gongyi
2021-04-26 14:30 ` Cyril Hrubis
0 siblings, 1 reply; 2+ messages in thread
From: Zhao Gongyi @ 2021-04-25 9:19 UTC (permalink / raw)
To: ltp
When the test run with the option of '-i', we need to move
cleanup() to the end of test, otherwist the test will fail,
and report: "TFAIL : open05.c:85: Expected EACCES got 2".
Signed-off-by: Zhao Gongyi <zhaogongyi@huawei.com>
---
testcases/kernel/syscalls/open/open05.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/testcases/kernel/syscalls/open/open05.c b/testcases/kernel/syscalls/open/open05.c
index 051aec3b3..f5098be2d 100644
--- a/testcases/kernel/syscalls/open/open05.c
+++ b/testcases/kernel/syscalls/open/open05.c
@@ -103,11 +103,10 @@ int main(int ac, char **av)
tst_resm(TFAIL, "Failures reported above");
close(fd);
- cleanup();
-
}
}
+ cleanup();
tst_exit();
}
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [LTP] [PATCH] syscalls/open05: Move cleanup() to the end of test
2021-04-25 9:19 [LTP] [PATCH] syscalls/open05: Move cleanup() to the end of test Zhao Gongyi
@ 2021-04-26 14:30 ` Cyril Hrubis
0 siblings, 0 replies; 2+ messages in thread
From: Cyril Hrubis @ 2021-04-26 14:30 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-04-26 14:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-25 9:19 [LTP] [PATCH] syscalls/open05: Move cleanup() to the end of test Zhao Gongyi
2021-04-26 14:30 ` 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.