mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-04 14:24:09 +08:00
syscalls01: Fix sporadic test failures
This commit is contained in:
parent
9d905758df
commit
ca9084764f
@ -340,6 +340,12 @@ test_socket(const socket_test *st)
|
|||||||
|
|
||||||
errno = 0;
|
errno = 0;
|
||||||
sd = socket(st->domain, st->type, st->protocol);
|
sd = socket(st->domain, st->type, st->protocol);
|
||||||
|
|
||||||
|
if (sd < 0) {
|
||||||
|
epoch_cleanup();
|
||||||
|
sd = socket(st->domain, st->type, st->protocol);
|
||||||
|
}
|
||||||
|
|
||||||
if (st->expect_errno == 0) {
|
if (st->expect_errno == 0) {
|
||||||
assert(sd >= 0);
|
assert(sd >= 0);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user