syscalls/open05: Move cleanup() to the end of test
PATCH 1/1 syscalls/open05: Move cleanup() to the end of test
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 <[email protected]>
--- testcases/kernel/syscalls/open/open05.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
testcases/kernel/syscalls/open/open05.c +1 -2
@@ -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
PATCH 1/1 syscalls/open05: Move cleanup() to the end of test
Hi!
Pushed, thanks.
Signature · 2 lines
Cyril Hrubis [email protected]