From f52786b4badf82e1bfad06b52ade0397b61cd14e Mon Sep 17 00:00:00 2001 From: Xu Meng Date: Mon, 13 Apr 2020 05:04:49 -0500 Subject: [PATCH] test: skip poll_duplex and poll_unidirectional on PASE Issuing a shutdown() on IBM i PASE with parameter SHUT_WR also sends a normal close sequence to the partner program. This leads to timing issues and ECONNRESET failures in the test poll_duplex and poll_unidirectional. https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_74/apis/shutdn.htm PR-URL: https://github.com/libuv/libuv/pull/2782 Reviewed-By: Colin Ihrig Reviewed-By: Richard Lau --- test/test-poll.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/test/test-poll.c b/test/test-poll.c index b3308446..edd75d38 100644 --- a/test/test-poll.c +++ b/test/test-poll.c @@ -592,10 +592,19 @@ static void start_poll_test(void) { MAKE_VALGRIND_HAPPY(); } - + +/* Issuing a shutdown() on IBM i PASE with parameter SHUT_WR + * also sends a normal close sequence to the partner program. + * This leads to timing issues and ECONNRESET failures in the + * test 'poll_duplex' and 'poll_unidirectional'. + * + * https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_74/apis/shutdn.htm + */ TEST_IMPL(poll_duplex) { #if defined(NO_SELF_CONNECT) RETURN_SKIP(NO_SELF_CONNECT); +#elif defined(__PASE__) + RETURN_SKIP("API shutdown() may lead to timing issue on IBM i PASE"); #endif test_mode = DUPLEX; start_poll_test(); @@ -606,6 +615,8 @@ TEST_IMPL(poll_duplex) { TEST_IMPL(poll_unidirectional) { #if defined(NO_SELF_CONNECT) RETURN_SKIP(NO_SELF_CONNECT); +#elif defined(__PASE__) + RETURN_SKIP("API shutdown() may lead to timing issue on IBM i PASE"); #endif test_mode = UNIDIRECTIONAL; start_poll_test();