All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrea Cervesato via ltp <ltp@lists.linux.it>
To: linuxtestproject.agent@gmail.com
Cc: ltp@lists.linux.it
Subject: Re: [LTP] lapi: fallback definitions for swapon syscall
Date: Fri, 28 Aug 2026 11:07:34 +0000	[thread overview]
Message-ID: <6a916bf6.50a5bfbe.5b7f7.5041@mx.google.com> (raw)
In-Reply-To: <20260828094632.9559-1-linuxtestproject.agent@gmail.com>

> --- [PATCH 1/3] ---
> 
> > lapi: fallback definitions for swapon syscall
> >
> > Introduce fallback definition inside lapi for:
> 
> Could the subject and body name include/tse_swap.h rather than lapi? The
> fallback definitions are not added under include/lapi/, so the current
> component and location do not match the patch.
> 
> --- [PATCH 3/3] ---
> 
> > +	TST_EXP_FAIL(tst_syscall(__NR_swapon, tc->path, tc->flags), tc->exp_errno,
> >  		     "swapon(2) fail with %s", tc->err_desc);
> >
> >  static void cleanup(void)
> >  {
> >  	if (do_swapoff && tst_syscall(__NR_swapoff, USED_FILE))
> >  		tst_res(TWARN | TERRNO, "swapoff(alreadyused) failed");
> >  }
> 
> Could an unexpected successful swapon() of SWAP_FILE be tracked and undone?
> This is the failure mode these new cases are intended to detect, but
> TST_EXP_FAIL() only reports TFAIL. The swap area remains active, the next
> case gets EBUSY, and cleanup only disables USED_FILE, so the test filesystem
> cannot be unmounted.

These are both correct, I will fix them in the next version.

--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

  reply	other threads:[~2026-08-28 11:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-28  9:05 [LTP] [PATCH v2 0/3] Increase coverage for swapon syscall Andrea Cervesato
2026-08-28  9:05 ` [LTP] [PATCH v2 1/3] lapi: fallback definitions " Andrea Cervesato
2026-08-28  9:46   ` [LTP] " linuxtestproject.agent
2026-08-28 11:07     ` Andrea Cervesato via ltp [this message]
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
  -- strict thread matches above, loose matches on Subject: below --
2026-08-27 11:54 [LTP] [PATCH 1/3] lapi: fallback definitions for swapon syscall Andrea Cervesato
2026-08-27 13:58 ` [LTP] " linuxtestproject.agent

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=6a916bf6.50a5bfbe.5b7f7.5041@mx.google.com \
    --to=ltp@lists.linux.it \
    --cc=andrea.cervesato@suse.com \
    --cc=linuxtestproject.agent@gmail.com \
    /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.