[LTP] [PATCH v4 1/1] swapon03: Try to swapon() as many files until it fails
Petr Vorel
pvorel@suse.cz
Mon Dec 22 08:59:58 CET 2025
Hi Li,
> > is_swap_supported():
> Or, naming it as is_swapfile_supported().
Thanks a lot for a great summary. Could we merge the above with just tst_brk()?
Or you'd prefer tst_res() and break?
And I'll do cleanup in beginning of January?
Of course I can send the change as a v5 patch.
Kind regards,
Petr
+++ testcases/kernel/syscalls/swapon/swapon03.c
@@ -53,7 +53,7 @@ static int setup_swap(void)
if (errno == EPERM && swapfiles > min_swapfiles)
break;
- tst_res(TFAIL | TERRNO, "swapon(%s, 0)", filename);
+ tst_brk(TFAIL | TERRNO, "swapon(%s, 0)", filename);
}
swapfiles++;
}
More information about the ltp
mailing list