Skip to content

Commit 2ec197f

Browse files
committed
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: 23fcb62 ("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>
1 parent dadd170 commit 2ec197f

File tree

1 file changed

+2
-2
lines changed
  • tools/testing/selftests/net

1 file changed

+2
-2
lines changed

tools/testing/selftests/net/tls.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1874,13 +1874,13 @@ TEST_F(tls_err, poll_partial_rec_async)
18741874
/* Child should sleep in poll(), never get a wake */
18751875
pfd.fd = self->cfd2;
18761876
pfd.events = POLLIN;
1877-
EXPECT_EQ(poll(&pfd, 1, 5), 0);
1877+
EXPECT_EQ(poll(&pfd, 1, 20), 0);
18781878

18791879
EXPECT_EQ(write(p[1], &token, 1), 1); /* Barrier #1 */
18801880

18811881
pfd.fd = self->cfd2;
18821882
pfd.events = POLLIN;
1883-
EXPECT_EQ(poll(&pfd, 1, 5), 1);
1883+
EXPECT_EQ(poll(&pfd, 1, 20), 1);
18841884

18851885
exit(!_metadata->passed);
18861886
}

0 commit comments

Comments
 (0)