chiark / gitweb /
test-barrier: add checks after the barrier constructor
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Fri, 3 Oct 2014 01:58:51 +0000 (03:58 +0200)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Fri, 3 Oct 2014 02:04:42 +0000 (04:04 +0200)
commit2ad8887a12aeff9108606bb31e1557103a3b95df
treefebb8e1afb65522f6ab9c1ea16817db9bddd7717
parent043f62949e6eb400ad42fd891a957ecf514c35f3
test-barrier: add checks after the barrier constructor

Coverity seems to think that we can later end up with the "them"
fd having a negative value. Even after a succesful barrier_create.
Add some test to verify that the constructor went well. If coverity
still complains then it must mean that it thinks the the value is
overwritten later.
src/test/test-barrier.c