mirror of https://gitee.com/openkylin/libvirt.git
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:
parent
fc920f704c
commit
21fa70e2f6
|
@ -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 { \
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -522,7 +522,9 @@ mymain(void)
|
|||
int freePort;
|
||||
#endif
|
||||
|
||||
#ifndef WIN32
|
||||
signal(SIGPIPE, SIG_IGN);
|
||||
#endif /* WIN32 */
|
||||
|
||||
virEventRegisterDefaultImpl();
|
||||
|
||||
|
|
|
@ -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 { \
|
||||
|
|
|
@ -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) \
|
||||
|
|
Loading…
Reference in New Issue