mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-26 08:18:14 +08:00
syscalls01: Fix sporadic test failures
This commit is contained in:
parent
eb5dc4f658
commit
2bbeeb6529
@ -335,6 +335,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