From: Andrea Cervesato <andrea.cervesato@suse.de>
To: Linux Test Project <ltp@lists.linux.it>
Subject: [LTP] [PATCH v2 0/3] Increase coverage for swapon syscall
Date: Fri, 28 Aug 2026 11:05:02 +0200 [thread overview]
Message-ID: <20260828-swapon_discard_coverage-v2-0-e55a86dad729@suse.com> (raw)
Complete the EINVAL coverage on invalid input data and create a new test
to verify discarding pages functionalities.
Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
---
Changes in v2:
- ensure buffer is flushed after discard using fsync()
- add messages to show what test cases we are running
- Link to v1: https://lore.kernel.org/20260827-swapon_discard_coverage-v1-0-633bcb11c181@suse.com
---
Andrea Cervesato (3):
lapi: fallback definitions for swapon syscall
swapon04: Add test for discard flags
swapon02: Add test cases for invalid swapflags
include/tse_swap.h | 16 +++
runtest/syscalls | 1 +
testcases/kernel/syscalls/swapon/.gitignore | 1 +
testcases/kernel/syscalls/swapon/swapon02.c | 58 +++++---
testcases/kernel/syscalls/swapon/swapon04.c | 204 ++++++++++++++++++++++++++++
5 files changed, 264 insertions(+), 16 deletions(-)
---
base-commit: 9118a480cc68700f27944aab817e0202e9e6136c
change-id: 20260827-swapon_discard_coverage-34861d63fc55
Best regards,
--
Andrea Cervesato <andrea.cervesato@suse.com>
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next reply other threads:[~2026-08-28 9:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-28 9:05 Andrea Cervesato [this message]
2026-08-28 9:05 ` [LTP] [PATCH v2 1/3] lapi: fallback definitions for swapon syscall Andrea Cervesato
2026-08-28 9:46 ` [LTP] " linuxtestproject.agent
2026-08-28 11:07 ` Andrea Cervesato via ltp
2026-08-28 9:05 ` [LTP] [PATCH v2 2/3] swapon04: Add test for discard flags Andrea Cervesato
2026-08-28 9:37 ` Li Wang
2026-08-28 9:05 ` [LTP] [PATCH v2 3/3] swapon02: Add test cases for invalid swapflags Andrea Cervesato
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=20260828-swapon_discard_coverage-v2-0-e55a86dad729@suse.com \
--to=andrea.cervesato@suse.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.