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

@@ -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 { \