Merge pull request #1496 from brian-peloton/macro-to-disable-test-timeout

Add a way to disable libzmq's internal test timeout.
This commit is contained in:
Pieter Hintjens 2015-07-28 22:57:58 +02:00
commit a656b399cc

View File

@ -282,10 +282,12 @@ void setup_test_environment()
// abort test after 121 seconds // abort test after 121 seconds
alarm(121); alarm(121);
#else #else
# if !defined ZMQ_DISABLE_TEST_TIMEOUT
// abort test after 60 seconds // abort test after 60 seconds
alarm(60); alarm(60);
# endif # endif
#endif #endif
#endif
#if defined __MVS__ #if defined __MVS__
// z/OS UNIX System Services: Ignore SIGPIPE during test runs, as a // z/OS UNIX System Services: Ignore SIGPIPE during test runs, as a
// workaround for no SO_NOGSIGPIPE socket option. // workaround for no SO_NOGSIGPIPE socket option.