]> git.itanic.dy.fi Git - linux-stable/commit
selftests: tls: increase the wait in poll_partial_rec_async
authorJakub Kicinski <kuba@kernel.org>
Tue, 13 Feb 2024 14:20:55 +0000 (06:20 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 15 Feb 2024 02:02:02 +0000 (18:02 -0800)
commit2ec197fda25f57afccac7f2846e509471488614c
treeed2cef21c583226fa7f10e925eaa91b7eb9b104e
parentdadd1701ae11a204dd4bea8086905a9576c4b63c
selftests: tls: increase the wait in poll_partial_rec_async

Test runners on debug kernels occasionally fail with:

 # #  RUN           tls_err.13_aes_gcm.poll_partial_rec_async ...
 # # tls.c:1883:poll_partial_rec_async:Expected poll(&pfd, 1, 5) (0) == 1 (1)
 # # tls.c:1870:poll_partial_rec_async:Expected status (256) == 0 (0)
 # # poll_partial_rec_async: Test failed at step #17
 # #          FAIL  tls_err.13_aes_gcm.poll_partial_rec_async
 # not ok 699 tls_err.13_aes_gcm.poll_partial_rec_async
 # # FAILED: 698 / 699 tests passed.

This points to the second poll() in the test which is expected
to wait for the sender to send the rest of the data.
Apparently under some conditions that doesn't happen within 5ms,
bump the timeout to 20ms.

Fixes: 23fcb62bc19c ("selftests: tls: add tests for poll behavior")
Link: https://lore.kernel.org/r/20240213142055.395564-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/tls.c