diff --git a/tests/test_tcp_io.c b/tests/test_tcp_io.c index 491c4219..7eb3bfa1 100644 --- a/tests/test_tcp_io.c +++ b/tests/test_tcp_io.c @@ -14,6 +14,8 @@ #define MSG_NOSIGNAL 0 #endif +#ifndef _WIN32 +// POSIX-сценарии не компилируются на Windows, где main уже сообщает SKIP. static int tests_run = 0; static int tests_passed = 0; static int tests_failed = 0; @@ -648,6 +650,8 @@ static void test_fin_before_close(void) { TEST_PASS(); } +#endif + int main(void) { #ifdef _WIN32 printf("[SKIP] test_tcp_io — socketpair() not available on Windows\n");