[LTP] [PATCH v5 7/8] swapon/off: enable all_filesystem in swap test

Li Wang liwang@redhat.com
Mon Jan 29 09:26:07 CET 2024


On Mon, Jan 29, 2024 at 4:03 PM Petr Vorel <pvorel@suse.cz> wrote:

> Hi Li,
>
> > +++ b/testcases/kernel/syscalls/swapoff/swapoff02.c
> > @@ -18,6 +18,8 @@
> >  #include "lapi/syscalls.h"
> >  #include "libswap.h"
>
> > +#define MNTPOINT     "mntpoint"
> > +
> >  static int setup01(void);
> >  static void cleanup01(void);
>
> > @@ -84,14 +86,13 @@ static void setup(void)
>
> >       is_swap_supported("./tstswap");
> This needs to be run on MNTPOINT, see swapon01.c (change from second
> commit I
> made: "swapon01: Test on all filesystems").
>
> The same problem is in other tests. Otherwise we check always on TMPDIR
> (which TCONF when /tmp is tmpfs).
>

Oh yes, you're right, I overlooked that. Thanks.

-- 
Regards,
Li Wang


More information about the ltp mailing list