Browse Source

Exclude POSIX tcp_io test scenarios from Windows compilation

master
evgeny 1 week ago
parent
commit
9aaac3cb20
  1. 4
      tests/test_tcp_io.c

4
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");

Loading…
Cancel
Save