aws / s2n-tls

An implementation of the TLS/SSL protocols
https://aws.github.io/s2n-tls/usage-guide/
Apache License 2.0
4.53k stars 705 forks source link

Fix Flaky Test: s2n_self_talk_nonblocking_test #727

Open alexw91 opened 6 years ago

alexw91 commented 6 years ago

First and only time I've seen this test fail. Rerunning the test caused it to pass the 2nd time.

Running s2n_self_talk_nonblocking_test.c                   ... FAILED test 26
remaining < data_size is not true  (s2n_self_talk_nonblocking_test.c line 185)
Error Message: 'underlying I/O operation would block'
Debug String: 'Error encountered in s2n_send.c line 46'
make[2]: *** [s2n_self_talk_nonblocking_test] Error 1
make[2]: *** Waiting for unfinished jobs.... 
alexw91 commented 4 years ago

Saw this error again, but it went away when retrying the build.

Running s2n_self_talk_nonblocking_test.c                   ... FAILED test 26
remaining < data_size is not true  (s2n_self_talk_nonblocking_test.c line 186)
Error Message: 'underlying I/O operation would block'
Debug String: 'Error encountered in s2n_send.c line 46'
System Error: Inappropriate ioctl for device (25)
make[2]: *** [s2n_self_talk_nonblocking_test] Error 1
make[2]: *** Waiting for unfinished jobs.... 
andrewhop commented 4 years ago

Saw this on Amazon Linux with GCC 4.9.4 twice in a row on two different hosts and then passed on the third host/attempt.