OSDN Git Service

io: Add a QIOChannelSocket cleanup test
authorFelipe Franciosi <felipe@nutanix.com>
Thu, 29 Sep 2016 15:52:38 +0000 (08:52 -0700)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 27 Oct 2016 07:13:10 +0000 (09:13 +0200)
commitaf8096b2c3b16de3f6237f1ead6a657a7565272f
treed85b67b70568ecb25607285d1be2d96b0d97f8f9
parentbf5352082727df7207c54cf3fc5fb608dc2b1fda
io: Add a QIOChannelSocket cleanup test

This patch adds a test to verify that the QIOChannel framework will not
unlink a filesystem unix socket unless the _FEATURE_LISTEN bit is set.

Due to a bug introduced in 74b6ce43, the framework would unlink the
entry if the _FEATURE_SHUTDOWN bit was set, regardless of the presence
of _FEATURE_LISTEN.

Signed-off-by: Felipe Franciosi <felipe@nutanix.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
tests/test-io-channel-socket.c