summaryrefslogtreecommitdiff
path: root/tests/run-tests.py
diff options
context:
space:
mode:
authorDamien Tournoud <damien@platform.sh>2022-12-15 10:15:18 -0800
committerDamien Tournoud <damien@platform.sh>2022-12-15 12:06:22 -0800
commited58d6e4ce5878d5f53457e72686962e7f57f5df (patch)
tree8aab3206923a5d9cd56e0294409d802aa185fc59 /tests/run-tests.py
parent988b6e2dae4e7f6b6f85c3b149fabeb50bb0519f (diff)
extmod/modussl_mbedtls: Fix support for ioctl(MP_STREAM_POLL).
During the initial handshake or subsequent renegotiation, the protocol might need to read in order to write (or conversely to write in order to read). It might be blocked from doing so by the state of the underlying socket (i.e. there is no data to read, or there is no space to write). The library indicates this condition by returning one of the errors `MBEDTLS_ERR_SSL_WANT_READ` or `MBEDTLS_ERR_SSL_WANT_WRITE`. When that happens, we need to enforce that the next poll operation only considers the direction that the library indicated. In addition, mbedtls does its own read buffering that we need to take into account while polling, and we need to save the last error between read()/write() and ioctl().
Diffstat (limited to 'tests/run-tests.py')
-rwxr-xr-xtests/run-tests.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/run-tests.py b/tests/run-tests.py
index 02cad5aed..e548059b1 100755
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -541,6 +541,7 @@ def run_tests(pyb, tests, args, result_dir, num_threads=1):
if not has_coverage:
skip_tests.add("cmdline/cmd_parsetree.py")
skip_tests.add("cmdline/repl_sys_ps1_ps2.py")
+ skip_tests.add("extmod/ussl_poll.py")
# Some tests shouldn't be run on a PC
if args.target == "unix":