[LTP] [PATCH v1] hugemmap11.c: Change NORMAL_PATH to current working directory

Petr Vorel pvorel@suse.cz
Mon Sep 2 09:28:42 CEST 2024


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?

Kind regards,
Petr


More information about the ltp mailing list