mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user