[LTP] [PATCH v4 1/1] swapon03: Try to swapon() as many files until it fails
Petr Vorel
pvorel@suse.cz
Fri Dec 19 15:03:56 CET 2025
> On Fri, Dec 19, 2025 at 6:47 PM Cyril Hrubis <chrubis@suse.cz> wrote:
> > Hi!
> > > tst_res(TINFO, "Successfully created %d swap files", swapfiles);
> > > - MAKE_SMALL_SWAPFILE(TEST_FILE);
> > This should stay here, right? I suppose that the test works even when we
> > pass non-existing file in the verify_swapon() but we shouldn't bet on
> > that.
> Not exactly, I guess here deleted it because is_swap_supported(TEST_FILE)
> had already created the file but didn't clean it up in setup, so it still
> exists.
Yes.
> Or, we need to do is improve is_swap_supported(), remove the any test file,
> and then add it back separately.
My previous reply:
https://lore.kernel.org/ltp/20251219140216.GA247368@pevik/
Kind regards,
Petr
More information about the ltp
mailing list