[LTP] [PATCH v1] hugemmap11.c: Change NORMAL_PATH to current working directory
Li Wang
liwang@redhat.com
Mon Sep 2 10:45:07 CEST 2024
On Mon, Sep 2, 2024 at 3:29 PM Petr Vorel <pvorel@suse.cz> wrote:
>
> Hi Wei, Li,
>
> > Following error will happen on sle-micro system since "/" is read only
> > tst_test.c:1062: TBROK: open(/ltp_hug9Iy6OR,16578,10247520240) failed: EROFS (30)
>
> > Signed-off-by: Wei Gao <wegao@suse.com>
> > ---
> > testcases/kernel/mem/hugetlb/hugemmap/hugemmap11.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
>
> > diff --git a/testcases/kernel/mem/hugetlb/hugemmap/hugemmap11.c b/testcases/kernel/mem/hugetlb/hugemmap/hugemmap11.c
> > index 496a814b5..67fca2ddf 100644
> > --- a/testcases/kernel/mem/hugetlb/hugemmap/hugemmap11.c
> > +++ b/testcases/kernel/mem/hugetlb/hugemmap/hugemmap11.c
> > @@ -23,7 +23,7 @@
>
> > #define P0 "ffffffff"
> > #define IOSZ 4096
> > -#define NORMAL_PATH ""
> > +#define NORMAL_PATH "./"
>
> Reviewed-by: Petr Vorel <pvorel@suse.cz>
>
> @Li: Do you see any consequences?
I think it is no problem to apply the patch, as you pointed
mntpoint implies needs_tmpdir. So it won't hit an unwritable
issue when using $PWD.
Reviewed-by: Li Wang <liwang@redhat.com>
--
Regards,
Li Wang
More information about the ltp
mailing list