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

@@ -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;