[LTP] [PATCH v2] mmap14: Convert to new API
Petr Vorel
pvorel@suse.cz
Thu Oct 31 08:01:13 CET 2024
Hi Ricardo,
...
> + sz_ch = sz_after - sz_before;
> + if (sz_ch == MMAPSIZE / 1024) {
> + tst_res(TPASS, "mmap() locked %uK", sz_ch);
> + } else {
> + tst_res(TFAIL, "Expected %luK locked, get %uK locked",
> + MMAPSIZE / 1024, sz_ch);
> + }
> +
> + SAFE_MUNMAP(addr, MMAPSIZE);
+1, you fixed my bug using sz_ch instead of MMAPSIZE.
Thanks a lot, nice work, merged!
Kind regards,
Petr
More information about the ltp
mailing list