[LTP] [PATCH 1/2] epoll_pwait: Add invalid sigmask test for epoll_pwait04
From: Cyril Hrubis <chrubis@suse.cz>
Date: 2021-08-11 13:47:00
From: Cyril Hrubis <chrubis@suse.cz>
Date: 2021-08-11 13:47:00
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