0
0
mirror of https://github.com/zeromq/libzmq.git synced 2025-01-14 01:37:56 +08:00

Problem: ZMQ_DISABLE_TEST_TIMEOUT does not work anymore

Solution: restore it so that it can be set via CPPFLAGS, to avoid
tests timing out when running in GDB
This commit is contained in:
Luca Boccassi 2020-05-08 01:12:15 +01:00
parent 397ac80850
commit 98efa79f54

View File

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