mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-16 03:47:27 +08:00
syscalls01: Fix sporadic test failures
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user