← Commit list

0495425c69

Viktor Szakats
Viktor Szakats
2026-02-05
SUCCESS Duration: 313s

Subject

lib518, 537: drop `#error` on unlikely/impossible build condition

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

tests/libtest/lib518.c+1 -7
@@ -25,10 +25,6 @@
#include "testutil.h"
-#ifndef FD_SETSIZE
-#error "this test requires FD_SETSIZE"
-#endif
-
#define T518_SAFETY_MARGIN 16
#define NUM_OPEN (FD_SETSIZE + 10)
@@ -345,7 +341,6 @@ static int t518_test_rlimit(int keep_open)
curl_mfprintf(stderr, "%s file descriptors open\n", strbuff);
#if !defined(HAVE_POLL) && !defined(USE_WINSOCK)
-
/*
* when using select() instead of poll() we cannot test
* libcurl functionality with a socket number equal or
@@ -383,8 +378,7 @@ static int t518_test_rlimit(int keep_open)
return -11;
}
}
-
-#endif /* using an FD_SETSIZE bound select() */
+#endif /* !HAVE_POLL && !USE_WINSOCK */
/*
* Old or 'backwards compatible' implementations of stdio do not allow
tests/libtest/lib537.c+1 -7
@@ -25,10 +25,6 @@
#include "testutil.h"
-#if !defined(HAVE_POLL) && !defined(USE_WINSOCK) && !defined(FD_SETSIZE)
-#error "this test requires FD_SETSIZE"
-#endif
-
#define T537_SAFETY_MARGIN 11
#if defined(_WIN32) || defined(MSDOS)
@@ -360,7 +356,6 @@ static int t537_test_rlimit(int keep_open)
curl_mfprintf(stderr, "%s file descriptors open\n", strbuff);
#if !defined(HAVE_POLL) && !defined(USE_WINSOCK)
-
/*
* when using select() instead of poll() we cannot test
* libcurl functionality with a socket number equal or
@@ -398,8 +393,7 @@ static int t537_test_rlimit(int keep_open)
return -9;
}
}
-
-#endif /* using an FD_SETSIZE bound select() */
+#endif /* !HAVE_POLL && !USE_WINSOCK */
/*
* Old or 'backwards compatible' implementations of stdio do not allow