From a9a371e4cf55264b67f2c53f1a253e660c8ad9fc Mon Sep 17 00:00:00 2001 From: Xu Meng Date: Fri, 28 Feb 2020 11:49:46 +0100 Subject: [PATCH] test: skip some UDP tests on IBMi The watcher_cross_stop test timeout with too many AF_INET sockets on IBMi PASE. In the udp_connect test, UDP connections can not be disconnected with AF_UNSPEC on IBMi PASE. PR-URL: https://github.com/libuv/libuv/pull/2673 Reviewed-By: Ben Noordhuis Reviewed-By: Colin Ihrig Reviewed-By: Richard Lau --- test/test-udp-connect.c | 4 ++++ test/test-watcher-cross-stop.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/test/test-udp-connect.c b/test/test-udp-connect.c index f4463424..58cf9475 100644 --- a/test/test-udp-connect.c +++ b/test/test-udp-connect.c @@ -98,6 +98,10 @@ static void sv_recv_cb(uv_udp_t* handle, TEST_IMPL(udp_connect) { +#if defined(__PASE__) + RETURN_SKIP( + "IBMi PASE's UDP connection can not be disconnected with AF_UNSPEC."); +#endif uv_udp_send_t req; struct sockaddr_in ext_addr; struct sockaddr_in tmp_addr; diff --git a/test/test-watcher-cross-stop.c b/test/test-watcher-cross-stop.c index 29a82a5c..b26deb8d 100644 --- a/test/test-watcher-cross-stop.c +++ b/test/test-watcher-cross-stop.c @@ -26,8 +26,9 @@ #include /* NOTE: Number should be big enough to trigger this problem */ -#if defined(__CYGWIN__) || defined(__MSYS__) +#if defined(__CYGWIN__) || defined(__MSYS__) || defined(__PASE__) /* Cygwin crashes or hangs in socket() with too many AF_INET sockets. */ +/* IBMi PASE timeout with too many AF_INET sockets. */ static uv_udp_t sockets[1250]; #else static uv_udp_t sockets[2500];