[LTP] [PATCH 2/4] syscalls/mmap01: Rewrite the test using new LTP API

Cyril Hrubis chrubis@suse.cz
Tue Aug 29 10:59:49 CEST 2023


Hi!
> +	if (system(cmd_buffer) != 0)
> +		tst_res(TPASS, "mmap() functionality successful");
> +	else
> +		tst_res(TFAIL, "mmap() functionality failed");

This is quite ugly. Can we please instead for a child process and run a
function that reads the file with read() and checks the data?

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list