Skip to contentSkip to conversation

syscalls/acct01: Remove cleanup

PATCH New Cyril Hrubis 1 participant 1 message Jul 1, 2019

lore
Share & tools
lore
#0 lore raw

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

---
 testcases/kernel/syscalls/acct/acct01.c | 7 -------
 1 file changed, 7 deletions(-)
testcases/kernel/syscalls/acct/acct01.c +0 -7
index f58e02584..ec570017b 100644
@@ -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