From: Petr Vorel <pvorel@suse.cz>
To: Li Wang <liwang@redhat.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v4 1/1] swapon03: Try to swapon() as many files until it fails
Date: Mon, 22 Dec 2025 08:59:58 +0100 [thread overview]
Message-ID: <20251222075958.GA69608@pevik> (raw)
In-Reply-To: <CAEemH2dts8FsEAM7gfKQjSv3ohkVehy9fXSf09_bqLfoDnUf1g@mail.gmail.com>
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++;
}
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2025-12-22 8:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-19 9:42 [LTP] [PATCH v4 1/1] swapon03: Try to swapon() as many files until it fails Petr Vorel
2025-12-19 10:48 ` Cyril Hrubis
2025-12-19 12:41 ` Li Wang via ltp
2025-12-19 14:03 ` Petr Vorel
2025-12-19 14:04 ` Cyril Hrubis
2025-12-19 14:02 ` Petr Vorel
2025-12-19 14:41 ` Petr Vorel
2025-12-20 4:27 ` Li Wang via ltp
2025-12-20 4:32 ` Li Wang via ltp
2025-12-22 7:59 ` Petr Vorel [this message]
2025-12-22 8:55 ` Li Wang via ltp
2025-12-19 13:06 ` Li Wang via ltp
2025-12-19 14:18 ` Petr Vorel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251222075958.GA69608@pevik \
--to=pvorel@suse.cz \
--cc=liwang@redhat.com \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox