[LTP] [PATCH 1/2] epoll_pwait: Add invalid sigmask test for epoll_pwait04

Cyril Hrubis chrubis@suse.cz
Wed Aug 11 15:47:00 CEST 2021


Hi!
> +static void run(void)
> +{
> +	TST_EXP_FAIL(do_epoll_pwait(efd, &e, 1, -1, tst_get_bad_addr(NULL)),
> +		     EFAULT, "with an invalid sigmask pointer");

The tst_get_bad_addr() allocates memory so I've moved it to the test
setup() so that the test does not get out of memory with large enough -i
option.


Patchset pushed, good work, thanks.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list