From 9aaac3cb20bc66c65277fd14c7b6a1bb70d30323 Mon Sep 17 00:00:00 2001 From: evgeny Date: Mon, 5 Oct 2026 12:27:15 +0200 Subject: [PATCH] Exclude POSIX tcp_io test scenarios from Windows compilation --- tests/test_tcp_io.c | 4 ++++ 1 file changed, 4 insertions(+) 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");