syscalls01: Fix sporadic test failures

This commit is contained in:
Sebastian Huber 2020-02-10 19:38:15 +01:00
parent 9d905758df
commit ca9084764f

View File

@ -340,6 +340,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);