[LTP] [PATCH] syscalls/sendmmsg: add new test

Petr Vorel pvorel@suse.cz
Thu Mar 21 00:04:22 CET 2019


Hi Steve,

> Test basic functionality of sendmmsg and recvmmsg.
...

> +	retval = sendmmsg(send_sockfd, msg, 2, 0);
Unfortunately we need to have autotools check for sendmmsg() [1]
to fix failure on old distros
/usr/src/ltp/testcases/kernel/syscalls/sendmmsg/sendmmsg01.c   -lltp -o sendmmsg01
/usr/src/ltp/testcases/kernel/syscalls/sendmmsg/sendmmsg01.c: In function 'sender_thread':
/usr/src/ltp/testcases/kernel/syscalls/sendmmsg/sendmmsg01.c:53: warning: implicit declaration of function 'sendmmsg'
/tmp/ccqXXRS6.o: In function `sender_thread':
/usr/src/ltp/testcases/kernel/syscalls/sendmmsg/sendmmsg01.c:53: undefined reference to `sendmmsg'

> +	if (retval < 0)
> +		tst_brk(TFAIL|TTERRNO, "sendmmsg failed");
> +
> +	return NULL;
> +}


Kind regards,
Petr

[1] https://api.travis-ci.org/v3/job/509170474/log.txt


More information about the ltp mailing list