1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-22 17:34:18 +03:00

tests: conditionalize use of SIGPIPE

SIGPIPE is not available on the Windows platform.

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé 2020-01-22 17:59:39 +00:00
parent fc920f704c
commit 21fa70e2f6
7 changed files with 14 additions and 0 deletions

View File

@ -84,7 +84,9 @@ mymain(void)
virAuthConfigPtr config;
#ifndef WIN32
signal(SIGPIPE, SIG_IGN);
#endif /* WIN32 */
#define TEST_LOOKUP(config, hostname, service, credname, expect) \
do { \

View File

@ -109,7 +109,9 @@ mymain(void)
{
int ret = 0;
#ifndef WIN32
signal(SIGPIPE, SIG_IGN);
#endif /* WIN32 */
if (virTestRun("Test parse", testParse, NULL) < 0)
ret = -1;

View File

@ -342,7 +342,9 @@ mymain(void)
{
int ret = 0;
#ifndef WIN32
signal(SIGPIPE, SIG_IGN);
#endif /* WIN32 */
if (virTestRun("Lockspace creation", testLockSpaceCreate, NULL) < 0)
ret = -1;

View File

@ -525,7 +525,9 @@ mymain(void)
{
int ret = 0;
#ifndef WIN32
signal(SIGPIPE, SIG_IGN);
#endif /* WIN32 */
if (virTestRun("Message Header Encode", testMessageHeaderEncode, NULL) < 0)
ret = -1;

View File

@ -522,7 +522,9 @@ mymain(void)
int freePort;
#endif
#ifndef WIN32
signal(SIGPIPE, SIG_IGN);
#endif /* WIN32 */
virEventRegisterDefaultImpl();

View File

@ -115,7 +115,9 @@ mymain(void)
{
int ret = 0;
#ifndef WIN32
signal(SIGPIPE, SIG_IGN);
#endif /* WIN32 */
#define TEST_FIELDS(ts, year, mon, day, hour, min, sec) \
do { \

View File

@ -145,7 +145,9 @@ mymain(void)
{
int ret = 0;
#ifndef WIN32
signal(SIGPIPE, SIG_IGN);
#endif /* WIN32 */
#define TEST_FULL(uri, uri_out, scheme, server, port, path, query, \
fragment, user, params) \