mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 10:27:12 +08:00
syscalls01: Fix sporadic test failures
This commit is contained in:
@@ -335,6 +335,12 @@ test_socket(const socket_test *st)
|
||||
|
||||
errno = 0;
|
||||
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) {
|
||||
assert(sd >= 0);
|
||||
|
||||
|
Reference in New Issue
Block a user