Exclude POSIX tcp_io test scenarios from Windows compilation

This commit is contained in:
evgeny committed 2026-10-05 12:27:15 +02:00
1 parent a6441a9bf9
commit 8889092e66
1 file changed
+4
+4
View File
@@ -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");