Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178153438
D37693.1796133137.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
622 B
Referenced Files
None
Subscribers
None
D37693.1796133137.diff
View Options
diff --git a/tests/sys/kern/ktls_test.c b/tests/sys/kern/ktls_test.c
--- a/tests/sys/kern/ktls_test.c
+++ b/tests/sys/kern/ktls_test.c
@@ -1893,7 +1893,13 @@
rv = write(sockets[1], outbuf, outbuf_len);
ATF_REQUIRE_INTEQ((ssize_t)outbuf_len, rv);
- ATF_REQUIRE(shutdown(sockets[1], SHUT_WR) == 0);
+ /*
+ * The other end may notice the error and drop the connection
+ * before this executes resulting in shutdown() failing with
+ * ENOTCONN. Ignore this error if it occurs.
+ */
+ if (shutdown(sockets[1], SHUT_WR) != 0)
+ ATF_REQUIRE_ERRNO(ENOTCONN, true);
ktls_receive_tls_error(sockets[0], EMSGSIZE);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 1, 1:52 PM (23 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42125685
Default Alt Text
D37693.1796133137.diff (622 B)
Attached To
Mode
D37693: ktls_tests: Ignore spurious errors from shutdown(2).
Attached
Detach File
Event Timeline