mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-27 17:37:13 +08:00
selectpollkqueue01: Invalidate file descriptor
This is not a functional change or a fix.
This commit is contained in:
parent
6fb003f588
commit
3df89c0ef9
@ -364,6 +364,8 @@ test_select_connect(test_context *ctx)
|
|||||||
puts("test select connect");
|
puts("test select connect");
|
||||||
|
|
||||||
if (afd >= 0) {
|
if (afd >= 0) {
|
||||||
|
ctx->afd = -1;
|
||||||
|
|
||||||
rv = close(afd);
|
rv = close(afd);
|
||||||
assert(rv == 0);
|
assert(rv == 0);
|
||||||
}
|
}
|
||||||
@ -566,6 +568,8 @@ test_poll_connect(test_context *ctx)
|
|||||||
puts("test poll connect");
|
puts("test poll connect");
|
||||||
|
|
||||||
if (afd >= 0) {
|
if (afd >= 0) {
|
||||||
|
ctx->afd = -1;
|
||||||
|
|
||||||
rv = close(afd);
|
rv = close(afd);
|
||||||
assert(rv == 0);
|
assert(rv == 0);
|
||||||
}
|
}
|
||||||
@ -756,6 +760,8 @@ test_kqueue_connect(test_context *ctx)
|
|||||||
puts("test kqueue connect");
|
puts("test kqueue connect");
|
||||||
|
|
||||||
if (afd >= 0) {
|
if (afd >= 0) {
|
||||||
|
ctx->afd = -1;
|
||||||
|
|
||||||
rv = close(afd);
|
rv = close(afd);
|
||||||
assert(rv == 0);
|
assert(rv == 0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user