syscalls/acct01: Remove cleanup
PATCH 1/1 syscalls/acct01: Remove cleanup
* There is no need to remove files in the temporary directory, it's deleted recursively on test exit anyways
* This fixes issue #540 where the test produced warnings on kernel with BSD_PROCESS_ACCT turned off
Signed-off-by Cyril Hrubis <[email protected]>
--- testcases/kernel/syscalls/acct/acct01.c | 7 ------- 1 file changed, 7 deletions(-)
testcases/kernel/syscalls/acct/acct01.c +0 -7
@@ -91,12 +91,6 @@ static void setup(void)memset (nametoolong,'a' ,PATH_MAX +1 ); } -static void cleanup (void ) -{ -SAFE_UNLINK (TEST_TMPFILE ); -SAFE_UNLINK (TEST_ELOOP ); -} -static void verify_acct (unsigned int nr) {struct test_case *tcase = &tcases[nr];
@@ -131,6 +125,5 @@ static struct tst_test test = { .needs_rofs = 1, .tcnt = ARRAY_SIZE(tcases), .setup = setup, - .cleanup = cleanup, .test = verify_acct, };
Signature · 1 line
2.19.2