tests/multi_net: Fix TCP accept test when using system error numbers.

If a port is not using internal error numbers, which match both lwIP and
Linux error numbers, ENTOCONN from standard libraries errno.h equals 128,
not 107.
This commit is contained in:
iabdalkader 2022-05-17 15:42:01 +02:00 committed by Damien George
parent 6b6ceafe1a
commit beeb250d58
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ def instance0():
try:
print("recv", s.recv(10)) # should raise Errno 107 ENOTCONN
except OSError as er:
print(er.errno)
print(er.errno in (107, 128))
s.close()