[LTP] [PATCH v2 1/5] swapon03: Don't create swap file twice

Petr Vorel
2025-11-06T16:35:58Z

MAKE_SMALL_SWAPFILE(TEST_FILE) call is not needed, because the file is
created by is_swap_supported(TEST_FILE) call.

Fixes: c240726a62 ("libswap: Use {SAFE_,}MAKE_MINIMAL_SWAPFILE()")
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
New in v2.

testcases/kernel/syscalls/swapon/swapon03.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/testcases/kernel/syscalls/swapon/swapon03.c b/testcases/kernel/syscalls/swapon/swapon03.c
index d6445d5fc4..01a3b6d8ac 100644
--- a/testcases/kernel/syscalls/swapon/swapon03.c
+++ b/testcases/kernel/syscalls/swapon/swapon03.c
@@ -61,7 +61,6 @@ static int setup_swap(void)
tst_brk(TFAIL, "Failed to setup swap files");

tst_res(TINFO, "Successfully created %d swap files", swapfiles);
- MAKE_SMALL_SWAPFILE(TEST_FILE);

return 0;
}
--
2.51.0