#include #include #include #include #include #include #include #include #include "zdtmtst.h" const char *test_doc = "Check data of bound socket and possibility to connect"; const char *test_author = "Kirill Tkhai 0 ? ret : 0] = 0; if (ret != sizeof(MSG)) { fail("%d: %s", ret, buf); ret = 1; goto unlink; } /* Test2: check it's still possible to connect to the bound socket */ if (fork() == 0) { exit(client("(iter2)")); } if (wait(&status) < 0) { fail("wait failed"); goto unlink; } if (WEXITSTATUS(status) != 0) { fail("connect failed"); goto unlink; } ret = 0; pass(); unlink: unlink(filename); return ret; }