pthreadpool: Add test for pthread_create failure
authorChristof Schmitt <cs@samba.org>
Wed, 6 Dec 2017 22:10:23 +0000 (15:10 -0700)
committerChristof Schmitt <cs@samba.org>
Fri, 8 Dec 2017 12:54:20 +0000 (13:54 +0100)
commit8cdb3995caf7a21d0c27a56a0bf0c1efd5b491e4
tree791b470b687629c629563b357b703a7ec2edab74
parent8e17be1c3df09c238560c8a7e62c17e9f9ff9bc7
pthreadpool: Add test for pthread_create failure

This is implemented using cmocka and the __wrap override for
pthread_create.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13170

Signed-off-by: Christof Schmitt <cs@samba.org
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Christof Schmitt <cs@samba.org>
Autobuild-Date(master): Fri Dec  8 13:54:20 CET 2017 on sn-devel-144
lib/pthreadpool/tests_cmocka.c [new file with mode: 0644]
lib/pthreadpool/wscript_build
source3/selftest/tests.py