]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests: make individual test sources compile cleanly
authorViktor Szakats <commit@vsz.me>
Sat, 21 Jun 2025 23:10:59 +0000 (01:10 +0200)
committerViktor Szakats <commit@vsz.me>
Sun, 22 Jun 2025 13:58:15 +0000 (15:58 +0200)
Tidy up headers and includes to ensure all individual test source
compile cleanly (but not link). To allow running clang-tidy (and
possibly other static analyzers) on them. It also improves readability
and allows to verify them locally, without the bundle logic.

clang-tidy ignores #included C files, so it's blind to bundle C files
the include these tests. The current workaround of embedding has
a couple of downsides:. meaningless filenames and line numbers,
missing issues, messing up self header paths. Thus, running it on
individual sources would be beneficial.

Also:
- de-duplicate includes.
- untangle some includes.
- formatting/indentation fixes.
- merge `getpart.h` into `first.h`.

Ref: https://github.com/curl/curl/pull/17680#issuecomment-2991730158

Closes #17703

259 files changed:
scripts/mk-unity.pl
tests/client/first.c
tests/client/first.h
tests/client/h2_pausing.c
tests/client/h2_serverpush.c
tests/client/h2_upgrade_extreme.c
tests/client/hx_download.c
tests/client/hx_upload.c
tests/client/tls_session_reuse.c
tests/client/upload_pausing.c
tests/client/ws_data.c
tests/client/ws_pingpong.c
tests/libtest/first.c
tests/libtest/first.h
tests/libtest/lib1156.c
tests/libtest/lib1308.c
tests/libtest/lib1485.c
tests/libtest/lib1500.c
tests/libtest/lib1501.c
tests/libtest/lib1502.c
tests/libtest/lib1506.c
tests/libtest/lib1507.c
tests/libtest/lib1508.c
tests/libtest/lib1509.c
tests/libtest/lib1510.c
tests/libtest/lib1511.c
tests/libtest/lib1512.c
tests/libtest/lib1513.c
tests/libtest/lib1514.c
tests/libtest/lib1515.c
tests/libtest/lib1517.c
tests/libtest/lib1518.c
tests/libtest/lib1520.c
tests/libtest/lib1522.c
tests/libtest/lib1523.c
tests/libtest/lib1525.c
tests/libtest/lib1526.c
tests/libtest/lib1527.c
tests/libtest/lib1528.c
tests/libtest/lib1529.c
tests/libtest/lib1530.c
tests/libtest/lib1531.c
tests/libtest/lib1532.c
tests/libtest/lib1533.c
tests/libtest/lib1534.c
tests/libtest/lib1535.c
tests/libtest/lib1536.c
tests/libtest/lib1537.c
tests/libtest/lib1538.c
tests/libtest/lib1540.c
tests/libtest/lib1541.c
tests/libtest/lib1542.c
tests/libtest/lib1545.c
tests/libtest/lib1550.c
tests/libtest/lib1551.c
tests/libtest/lib1552.c
tests/libtest/lib1553.c
tests/libtest/lib1554.c
tests/libtest/lib1555.c
tests/libtest/lib1556.c
tests/libtest/lib1557.c
tests/libtest/lib1558.c
tests/libtest/lib1559.c
tests/libtest/lib1560.c
tests/libtest/lib1564.c
tests/libtest/lib1565.c
tests/libtest/lib1567.c
tests/libtest/lib1568.c
tests/libtest/lib1569.c
tests/libtest/lib1571.c
tests/libtest/lib1576.c
tests/libtest/lib1591.c
tests/libtest/lib1592.c
tests/libtest/lib1593.c
tests/libtest/lib1594.c
tests/libtest/lib1597.c
tests/libtest/lib1598.c
tests/libtest/lib1599.c
tests/libtest/lib1662.c
tests/libtest/lib1900.c
tests/libtest/lib1901.c
tests/libtest/lib1903.c
tests/libtest/lib1905.c
tests/libtest/lib1906.c
tests/libtest/lib1907.c
tests/libtest/lib1908.c
tests/libtest/lib1910.c
tests/libtest/lib1911.c
tests/libtest/lib1912.c
tests/libtest/lib1913.c
tests/libtest/lib1915.c
tests/libtest/lib1916.c
tests/libtest/lib1918.c
tests/libtest/lib1919.c
tests/libtest/lib1933.c
tests/libtest/lib1934.c
tests/libtest/lib1935.c
tests/libtest/lib1936.c
tests/libtest/lib1937.c
tests/libtest/lib1938.c
tests/libtest/lib1939.c
tests/libtest/lib1940.c
tests/libtest/lib1945.c
tests/libtest/lib1947.c
tests/libtest/lib1948.c
tests/libtest/lib1955.c
tests/libtest/lib1956.c
tests/libtest/lib1957.c
tests/libtest/lib1958.c
tests/libtest/lib1959.c
tests/libtest/lib1960.c
tests/libtest/lib1964.c
tests/libtest/lib1970.c
tests/libtest/lib1971.c
tests/libtest/lib1972.c
tests/libtest/lib1973.c
tests/libtest/lib1974.c
tests/libtest/lib1975.c
tests/libtest/lib1977.c
tests/libtest/lib1978.c
tests/libtest/lib2023.c
tests/libtest/lib2032.c
tests/libtest/lib2082.c
tests/libtest/lib2301.c
tests/libtest/lib2302.c
tests/libtest/lib2304.c
tests/libtest/lib2306.c
tests/libtest/lib2308.c
tests/libtest/lib2309.c
tests/libtest/lib2402.c
tests/libtest/lib2404.c
tests/libtest/lib2405.c
tests/libtest/lib2502.c
tests/libtest/lib2700.c
tests/libtest/lib3010.c
tests/libtest/lib3025.c
tests/libtest/lib3026.c
tests/libtest/lib3027.c
tests/libtest/lib3100.c
tests/libtest/lib3101.c
tests/libtest/lib3102.c
tests/libtest/lib3103.c
tests/libtest/lib3104.c
tests/libtest/lib3105.c
tests/libtest/lib3207.c
tests/libtest/lib3208.c
tests/libtest/lib500.c
tests/libtest/lib501.c
tests/libtest/lib502.c
tests/libtest/lib503.c
tests/libtest/lib504.c
tests/libtest/lib505.c
tests/libtest/lib506.c
tests/libtest/lib507.c
tests/libtest/lib508.c
tests/libtest/lib509.c
tests/libtest/lib510.c
tests/libtest/lib511.c
tests/libtest/lib512.c
tests/libtest/lib513.c
tests/libtest/lib514.c
tests/libtest/lib515.c
tests/libtest/lib516.c
tests/libtest/lib517.c
tests/libtest/lib518.c
tests/libtest/lib519.c
tests/libtest/lib520.c
tests/libtest/lib521.c
tests/libtest/lib523.c
tests/libtest/lib524.c
tests/libtest/lib525.c
tests/libtest/lib526.c
tests/libtest/lib530.c
tests/libtest/lib533.c
tests/libtest/lib536.c
tests/libtest/lib537.c
tests/libtest/lib539.c
tests/libtest/lib540.c
tests/libtest/lib541.c
tests/libtest/lib542.c
tests/libtest/lib543.c
tests/libtest/lib544.c
tests/libtest/lib547.c
tests/libtest/lib549.c
tests/libtest/lib552.c
tests/libtest/lib553.c
tests/libtest/lib554.c
tests/libtest/lib555.c
tests/libtest/lib556.c
tests/libtest/lib557.c
tests/libtest/lib558.c
tests/libtest/lib559.c
tests/libtest/lib560.c
tests/libtest/lib562.c
tests/libtest/lib564.c
tests/libtest/lib566.c
tests/libtest/lib567.c
tests/libtest/lib568.c
tests/libtest/lib569.c
tests/libtest/lib570.c
tests/libtest/lib571.c
tests/libtest/lib572.c
tests/libtest/lib573.c
tests/libtest/lib574.c
tests/libtest/lib575.c
tests/libtest/lib576.c
tests/libtest/lib578.c
tests/libtest/lib579.c
tests/libtest/lib582.c
tests/libtest/lib583.c
tests/libtest/lib586.c
tests/libtest/lib589.c
tests/libtest/lib590.c
tests/libtest/lib591.c
tests/libtest/lib597.c
tests/libtest/lib598.c
tests/libtest/lib599.c
tests/libtest/lib643.c
tests/libtest/lib650.c
tests/libtest/lib651.c
tests/libtest/lib652.c
tests/libtest/lib653.c
tests/libtest/lib654.c
tests/libtest/lib655.c
tests/libtest/lib658.c
tests/libtest/lib659.c
tests/libtest/lib661.c
tests/libtest/lib666.c
tests/libtest/lib667.c
tests/libtest/lib668.c
tests/libtest/lib670.c
tests/libtest/lib674.c
tests/libtest/lib676.c
tests/libtest/lib677.c
tests/libtest/lib678.c
tests/libtest/lib694.c
tests/libtest/lib695.c
tests/libtest/lib751.c
tests/libtest/lib753.c
tests/libtest/memptr.c
tests/libtest/mk-lib1521.pl
tests/libtest/testtrace.c
tests/libtest/testtrace.h
tests/libtest/testutil.c
tests/libtest/testutil.h
tests/server/Makefile.inc
tests/server/dnsd.c
tests/server/first.c
tests/server/first.h
tests/server/getpart.c
tests/server/getpart.h [deleted file]
tests/server/mqttd.c
tests/server/resolve.c
tests/server/rtspd.c
tests/server/sockfilt.c
tests/server/socksd.c
tests/server/sws.c
tests/server/tftpd.c
tests/server/util.c

index 21a5e944efbe5d556b1aad8b25632f8988bb3a22..a7d23f394ffeb1acd4d5c0a1bcd03ea634254352 100755 (executable)
@@ -97,6 +97,6 @@ foreach my $src (@src) {
 }
 
 if($any_test) {
-    print "\nstatic const struct entry_s s_entries[] = {\n$tlist};\n";
+    print "\nconst struct entry_s s_entries[] = {\n$tlist  {NULL, NULL}\n};\n";
     print "\n#include \"first.c\"\n";
 }
index ca754a0f70f599037ca7f9ed4a6a71122c0b5688..55d2e4b3158ababb6a38418fbdf947e852af7c1c 100644 (file)
@@ -21,6 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
+#include "first.h"
 
 int main(int argc, char **argv)
 {
@@ -35,7 +36,7 @@ int main(int argc, char **argv)
 
   entry_name = argv[1];
   entry_func = NULL;
-  for(tmp = 0; tmp < CURL_ARRAYSIZE(s_entries); ++tmp) {
+  for(tmp = 0; s_entries[tmp].ptr; ++tmp) {
     if(strcmp(entry_name, s_entries[tmp].name) == 0) {
       entry_func = s_entries[tmp].ptr;
       break;
index 9aabc538e36c94e84607a260bde3e60acdcc4fb4..feeb52871a5a263d1bb701417d73f03b565e8e07 100644 (file)
@@ -32,6 +32,8 @@ struct entry_s {
   entry_func_t ptr;
 };
 
+extern const struct entry_s s_entries[];
+
 #include <curl/curl.h>
 
 #include "curlx.h"
index 811662f574937042f0f4dd30fe79f30e3cd19bad..5ee360c463272bcb157b0e33f0f66a503b380b87 100644 (file)
@@ -23,6 +23,8 @@
  ***************************************************************************/
 /* This is based on the PoC client of issue #11982
  */
+#include "first.h"
+
 #include <assert.h>
 
 static void usage_h2_pausing(const char *msg)
index 98b6e2b78f61bdd429df71bf972518eb82d11685..fa65baf08312f4e36c911d8edcb40009d888063b 100644 (file)
@@ -21,6 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
+#include "first.h"
 
 static int my_trace(CURL *handle, curl_infotype type,
                     char *data, size_t size, void *userp)
index 46804cb485643eaf87bbf294db6c1932da5fcc7d..2b15157417be9bf3fef1578d7b327e2bd96189d5 100644 (file)
@@ -21,6 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
+#include "first.h"
 
 static size_t write_h2ue_cb(char *ptr, size_t size, size_t nmemb, void *opaque)
 {
index 57906c2bf45ef27ba8d175497a01a8c4e5bdc91a..e168b93dafc13ab235563145087e3df7ec51035c 100644 (file)
@@ -21,6 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
+#include "first.h"
 
 static int verbose_d = 1;
 
index 994908088da29947cb2b3c0c0b82e68db2ac45fa..3cefdacfbfa5b3032eafae412b6b5eb53cf0a9eb 100644 (file)
@@ -21,6 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
+#include "first.h"
 
 static int verbose_u = 1;
 
index fc708411be0fa0376d6cf59738beac780974b5f1..12bac86747a68f9686485f25f5ef7acebda58594 100644 (file)
@@ -21,6 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
+#include "first.h"
 
 static size_t write_tse_cb(char *ptr, size_t size, size_t nmemb, void *opaque)
 {
index 5a99c56d62430d92b3c623985396e8cf1c9fbc84..d02ad224e1508a5828b0ea737d1b97c6d7862ddb 100644 (file)
@@ -23,6 +23,8 @@
  ***************************************************************************/
 /* This is based on the PoC client of issue #11769
  */
+#include "first.h"
+
 static size_t total_read = 0;
 
 static size_t read_callback(char *ptr, size_t size, size_t nmemb,
index 493809f8072b6fa4125cbf4acba73e33e7c8712b..8467c6ff799ecd8956d81c857a3040e2725a931f 100644 (file)
@@ -21,6 +21,8 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
+#include "first.h"
+
 #ifndef CURL_DISABLE_WEBSOCKETS
 
 static CURLcode check_recv(const struct curl_ws_frame *frame,
index 0059d315e480c2bb94137200dcc5c07e803c23ac..9f6d62f942cb2259527a35c120b4188457c19ee4 100644 (file)
@@ -21,6 +21,8 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
+#include "first.h"
+
 #ifndef CURL_DISABLE_WEBSOCKETS
 
 static CURLcode ping(CURL *curl, const char *send_payload)
index b6bf2b1b9b28ac7432dde4e2d05eb68d8aec206c..ee35494c26809ce6926efac69b1d75f4be7d5e28 100644 (file)
@@ -21,6 +21,8 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
+#include "first.h"
+
 #ifdef HAVE_LOCALE_H
 #  include <locale.h> /* for setlocale() */
 #endif
@@ -130,7 +132,7 @@ int main(int argc, char **argv)
 
   entry_name = argv[1];
   entry_func = NULL;
-  for(tmp = 0; tmp < CURL_ARRAYSIZE(s_entries); ++tmp) {
+  for(tmp = 0; s_entries[tmp].ptr; ++tmp) {
     if(strcmp(entry_name, s_entries[tmp].name) == 0) {
       entry_func = s_entries[tmp].ptr;
       break;
index ad56056dae3a83db432aa6ccec3cc90fafcb7229..fcb623290c7cc8883513fe548d8e60dc919bb644 100644 (file)
@@ -32,6 +32,8 @@ struct entry_s {
   entry_func_t ptr;
 };
 
+extern const struct entry_s s_entries[];
+
 #include "curlx.h"
 
 #endif /* HEADER_LIBTEST_FIRST_H */
index 5abd9016d843282d530dd23d38030260a6a79fc1..986dcb57ad785e3a23d66f180b11e11c40d57e59 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 /*
   Check range/resume returned error codes and data presence.
index 44620e13883893141052fab55870fd1edc3371c3..520054ee219efb757ae79e6934fd778324708b1b 100644 (file)
@@ -40,7 +40,7 @@ static CURLcode test_lib1308(char *URL)
   char buffer[] = "test buffer";
 
   rc = curl_formadd(&post, &last, CURLFORM_COPYNAME, "name",
-                      CURLFORM_COPYCONTENTS, "content", CURLFORM_END);
+                    CURLFORM_COPYCONTENTS, "content", CURLFORM_END);
   fail_unless(rc == 0, "curl_formadd returned error");
 
   /* after the first curl_formadd when there's a single entry, both pointers
index 6281c2f60d3d5d7c3b9856819b27deb4cbe73ce6..b5908ad335984bd6d3fa4d5bcc0be0cf9c08ae5e 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index 46f0268248502f52721899f2f8dac0e00792c29d..a193870c37f93bf89b50270278d1aac17d261a63 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index 78d4ad1c8b855b2f309f657df7efdeb5f628ffdf..3b44db4745f33a693c77dc79295d9ac6577ff593 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include <fcntl.h>
 
index 858b4be4ca87a0b7cda22e3838568fa991a0553a..51d33afa65506c4f12767ebca1bef7470e0ff51f 100644 (file)
@@ -29,7 +29,7 @@
  * leak in the CURLOPT_RESOLVE handling with the multi interface.
  */
 
-#include "test.h"
+#include "first.h"
 
 #include <limits.h>
 
index 569a65950f3f1b1455e6e4515efc6c9eefa1481b..161c81c8182922d390a6afde4cd557d1b411f928 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index b94e92a85f91c7db7b388b490466a911e1bb8b5a..fb52b996b3be0c8b2ff966f556d687b06430fc4d 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "timediff.h"
index b80d7858cd923aa21b186adcbab4e9239d3f4a6e..1769b5327d2aaae290982c64d7d165c3eb8d44ea 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index a9e8a880b3f28df4c969a5ad26dd61071984d0ce..703957256326c1b13d01f83f87305659662471ac 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index 56261e1f53e3810d978eced58c4ae866d97eacf5..26cea287b760e06983341d02f3e8279a4f0e66b3 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index 0402421fa69350499b7e62320a066b6f3626cc93..9a84c8d509c976ea94cef17929f756719e8a18c3 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 8bde4c94549068715dbce9776384e18cab493be1..2841be63fb78b95a0a5a626359698f6687150fe6 100644 (file)
@@ -28,7 +28,7 @@
  * easy transfer finds and uses the populated stuff.
  */
 
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 2ca54ec12b24b3834f83abe407718bd35f3d7a1c..545bf90abe6f3c38e17dbaf86458da8bff2bafcf 100644 (file)
@@ -28,7 +28,7 @@
  * of 42 (CURLE_ABORTED_BY_CALLBACK).
  */
 
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 68cf38417116a02f70be383f05339d7bae70afa2..33c4f2ab0338386750ae8b8579f2ffa3bcaafd3c 100644 (file)
@@ -26,7 +26,7 @@
  * size is unknown.
  */
 
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index df82b2a81d130029b14311cbe84e0feac9ea23b1..e65c33975c9e48a185209241d17631284df4e3e6 100644 (file)
@@ -28,7 +28,7 @@
  * (test1515) nor a dead connection is detected (test1616).
  */
 
-#include "test.h"
+#include "first.h"
 
 #include "testtrace.h"
 #include "testutil.h"
index c997b335816ae994e877e05a08933f8dfb1009d9..bb1d3f248a6584038944e2dcf76adbfbdb8c9019 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 59a67d5bcae3382ed7ccebfa187a411e57284222..3d93cf5edddccdcf8d16359476326db857fcb36d 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 68b1ca8914886454209f2379d1a90e01ca563820..76e5d5f0ec0508b775a8a38438bd51806b45b9fd 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index f225b98c3297fdb41498949896e02dc863c444a6..750ecc9b0b4a606d875f611d10443be561702643 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 /* test case and code based on https://github.com/curl/curl/issues/2847 */
 
index 480d569afbe499079ff3cb77a239cbadfcd6ba41..728a4c94b74f00731967869b27ea7905e65b10ea 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 /* test case and code based on https://github.com/curl/curl/issues/3927 */
 
index e015f3c11b12b040da77749ca78e629bba34c94c..e76951f23ef866a04fa66e6f62bf0d3868863a0a 100644 (file)
@@ -28,7 +28,7 @@
  * from server http header
  */
 
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 492eeb103cbf03abe75af15fa512d00a50a3475c..6a15857795fda07dc4c017c780e7c86e09355ba6 100644 (file)
@@ -27,7 +27,7 @@
  * from server http header
  */
 
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 4f710e9932311bfc2de6ef9d9892c245df834443..2fff74f7cea52d95688fc8a2eb8fd4baad331ba2 100644 (file)
@@ -27,7 +27,7 @@
  * for server and proxy
  */
 
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 1962749065b9e52192223e418fecf57ea9edbfde..641487ba9e3d8c8a2a963fe5269b8c83d9443786 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index bcb56da0e975213a78212ec8fdd0451a1cc5967d..b40270934f204f19cf789cac973ed5590678819f 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 0c922eaf7fc4fd2a82c022c826a2bf031f4dfd61..aa0529b3dd7c3bbd76e047cbd800dd62d81be134 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 32e8abdfbcd88e0d7692aef373abd0bb44d87dd0..0a9266a645962decbe9dbc7b7e022bd625084ed3 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "timediff.h"
index 34e27a5a9adaf286b43cea83b36e755ff65aa4c9..94e29cb29cb1564fdab0af921d96c43f4044ca8d 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 9dc869d79fdb235ccb3eed569e82dead5ca50861..f74f612f729f6b44a7b1608e209f054ccb6792b0 100644 (file)
@@ -29,7 +29,7 @@
  * because this implies that the data has been sent completely to the server.
  */
 
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index e0dbee1022f63a8a3c538cb22f66359ab8b1c1c8..d99b135a24957675505202d27500c423bbb4297d 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index b142882dbd4a70d216e3c1ce4f439fbe34b41339..602f71717f1d924e86b207ae57eff3e726a48688 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 23ed716ac22caca8f59f71bd55c7cf933f97562f..dd0a2bf7d5699ffa40cf28615efd8bfa83583514 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 547f9ef7f2fa14afbe8b913f467c09312d94f20e..56f018395c0e513468f497f261be3ea3e0cb9b58 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index e00bf943755177dd26b1688db67a00f44db0e360..fc816d358d5ce3fb3d44c4fb75208ff3efc6c60b 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 0ed265c42a045de1b366b52afe2f84fa787ed257..26af4771eb55a87005bf4d07a7acab78a135f0b8 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testtrace.h"
 #include "testutil.h"
index 9ef42a2adff6355a95ff3e7900928a6942d7b0e5..a1f905649e64f86ee96b55d03e4b6c7c107ed745 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index 00c44dc17a6c2e9e9bc82caede883f8c34648f2c..e47f128c282efb02472d4a1017b4129f1f30ed08 100644 (file)
@@ -30,7 +30,7 @@
  * first connection and open a second.
  */
 
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "testtrace.h"
index b485ab3f9dfda9c2d6ce3ee20d55e35a74ab3016..e29c872f5f09c4a008409b69e768e76dec0cbd0d 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 static CURLcode test_lib1545(char *URL)
 {
index 994623d71a43099e7ddc44c834d6f477fdce32c6..29e8407d3be6c1a6c0496020090a1300c652f2ec 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 253eb2626c69f600710a2c68cc28c2c772f9dc62..e6162eff6f0a0f27b1991b21312167325270be1b 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index ffd08dc2c2bdbf6ed8ae2072597e86fd02a50a16..602c59dd3f4e822cf7ae25b325da7933a27f3f75 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index 317d8c8c578f723d8f219c3f065f7fbd62e07ceb..57287885e197a3c191f5754a2701df8eec88ee7d 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "testtrace.h"
index 6e7717fa35786b23c9e701d52eb5f31e77b262f8..51084a2c2036714cd4d35be116268ec22be6ae30 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 02db62e5b56db5f5d504696941a1d75e1e2dd873..39c9ad5cb913397879ca1bc5d9d71adefc7bd898 100644 (file)
@@ -25,7 +25,7 @@
  * Verify that some API functions are locked from being called inside callback
  */
 
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 7e7ee1e07c65d014291b08da77a7d9054aa1ac47..a5e5bde2b7f22e9a3c2c774bb8edc3faa777ffae 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index 19012c35cb85ee10d82ad47323f5365968239de3..f65fa9fad0f60105e48982cae34aee0c472eb00b 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index d0a9004ec43b5bbf324ab5a8ea8bd75623fe8825..51829e1d4e537ae9a86b81430209ee8c2a285cc4 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index efc176333fb824dad77c1ca09a6dff64d847b58c..e933f925c38612693cd0ad1d1c415575f9099598 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index e78a0a2e3341bb777a60396346de1baab014b89b..b2294a112fd549d7abd710f4e8051fae59b2217c 100644 (file)
@@ -30,7 +30,7 @@
  * that this test will assume to be present!
  */
 
-#include "test.h"
+#include "first.h"
 #if defined(USE_LIBIDN2) || defined(USE_WIN32_IDN) || defined(USE_APPLE_IDN)
 #define USE_IDN
 #endif
index e733f0d707698b2854f50cddd378ab94db932a44..a95645f1396631fce8ecbf61160aaad470741844 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index 76a66c45480c01e4afff440ca0bbde5140872ee6..03fd94014d922a3ab98335b68fae49f17d35f956 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index e519cd167de4d96fe424d16805fe3f68a1618cc2..bdac6c6afa8de7a7595c8749eedc0c8571ac11b5 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index b9c873cf440c76ba33a119d136642f38f0ca4bf8..e3d9053af66371f33897a59a5bba997de1d3c96f 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testtrace.h"
 #include "memdebug.h"
index 3671afbad68901062a229cd78f6919736894a232..a1a1d40a8572b4ba23d07a4e0661a3011a433863 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testtrace.h"
 #include "memdebug.h"
index 77a89f79fcb1256060ed3161e2959e9589b4ad60..e18b5c3f21cd67ec64638b5e3fd9d829b6c2dd89 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index de87a25dc97d198c3cd52677f602818f7418d1ed..c9b1c9d7ce66a76e169fe3c5e3c1450a25999298 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index a601f19574d20f7f1bc134c8c32a63dd26c5089c..562a15761633040ef4773ea8f6be88629d9bcff5 100644 (file)
@@ -27,7 +27,7 @@
  * from server http header
  */
 
-#include "test.h"
+#include "first.h"
 
 #include <stdio.h>
 
index 2331664c7c889593f12b48a6679caab16657b6be..5a108a9f8aedd61c6518b6b07a6451746597e4ea 100644 (file)
@@ -36,7 +36,7 @@
    the default TEST_HANG_TIMEOUT to avoid issues when running on overloaded
    CI machines. */
 
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 
index e723fed620b5ec899a192f4de11f5ca3adb7b9d1..803e410b90137e2277d62f4d661226061090f725 100644 (file)
@@ -24,7 +24,7 @@
 
 /* Test suppressing the If-Modified-Since header */
 
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 152a585569132f5a6b0a1f959cd8b105c3e20366..283cea1b89f9655bcb035274a198f3b6970ff5bb 100644 (file)
@@ -24,7 +24,7 @@
 
 /* Testing Retry-After header parser */
 
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 02779887d3833d3c366bffada7e15994e406a397..ab669c35b17f774b65479f100daeaa52900d0555 100644 (file)
@@ -24,7 +24,7 @@
 
 /* Testing CURLOPT_PROTOCOLS_STR */
 
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index cba749b7d347efec315a7e424e80dcf5f466ecc7..baab3770c3d51ad62c01bf9598d64b013a7cf74d 100644 (file)
@@ -27,7 +27,7 @@
  * from server http header
  */
 
-#include "test.h"
+#include "first.h"
 
 #include <stdio.h>
 
index 30f203322659a86579a4ccb9ae109c3a9c90257c..d7c7c49241da0a40443efec77e019d0df315edcd 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testtrace.h"
 
index ba389e0b95017d03dc074ab4db54d7b7e3e0e7ca..416b3b729ba73f04a99d9c8d4fee8da7b9de4df4 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 struct t1662_WriteThis {
   size_t sizeleft;
index 4f58fda2c59f3512b83714ab0bedc3b843f74964..622b20f2451e041f5ba9632add7b731bb3724180 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index c6199cf00339e80069ca1e7fbcf9425c1160cf61..e3fdd2152d0a5cd5005c307daa9cd5093ef5b14e 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index d2171746b4ca5794401a0aa7304bdb343ca84dd5..79b9ffbd5c05b4a588f3fbb49073786afbe32323 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "timediff.h"
index e0cb311530d320370370c01dd0d069e3b1b8af9a..b81ab440fb8d5415f773a07160f7f48306b91b99 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "timediff.h"
index 89eef4fb9c667c59fd4a367a60aa2702a54f81b8..1f2415e36d29dd4a1fc1b884e1ff972c3012670c 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index 6591023b08616d5767c77bee3664123103bcccd4..aad70b9a9e45486a13cfb594abcb7ea1d8f0367c 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index 498d94b41f1750f331a29aec2519d3652b1942cc..521b38c003eda1d13e320cc5444adddca1568386 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index 58d40c43054271edd3c1c4e86efed8f6c9e77c26..b8779f6a0d15b40de77742e38be9083aa0117d6a 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index e76455d55fbc4f2c3d10883e727fea66e6e141f0..3d3787744e64a10a7015832328fa4ffb3d46ad15 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index 19ea5b6eb01c47ae7a398ec539bef1800afd9caf..9eabe2f671d3a1c8e460aefb08bd113ff301b65e 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index c7d526c918d5afb7c0318f7b5ff2c6c170fd20ac..76b01b6789360b13576fa0d6b0ae7835c27e5112 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index bb7fa3043f81c365b268834d7b4a5087d439e0ba..24e79d4014cc7971121211b19509c05d11a2e949 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testtrace.h"
 #include "testutil.h"
index 716d405b5f51c2ce1e7a19ce56121c13481b2872..9dcbd45c0ccbf13166723607ef9724e1a89b4160 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index bf26e849d51300255f62695a9c6085dce09d9e24..c70a07bb8c99808e5f53d83fe0737c249a7b3cc1 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index 43b362f8518d81629b4d2a04df9a4f526c104853..5f718c08aca1142feeb4483165b4d33184dbdad5 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index 6cb4509d7cef103c6c6200b4c149ea53a49a774e..67b93a170dee74ea8c7d3c51cfbd7f7eca06a901 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 7f10aa505cb0d8de4f7523e4234f163335de722e..097ccecfd67991471e43b24ad7b5df650af33ffa 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index b515ed205e31acfffe228848059bf7ff1ef1a055..4be038f70826000f992c14a2e6374c767ec62881 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 327fa9f2be04376200d94a4a8a0a3d771d3e1233..9992507d94ffee70c121a4ddfd2023cf688d782b 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index acfb5eb4e918058c2ea6d8d6b5560a6d6c79e219..be69974039d9807f0d6976dd0581d73d48bb2c6f 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index a5e9e7f73a40479a978886866fa4469f210fec4c..90707c8553e088aa2fc3ce3e1bf33d3b6ebbaaea 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 260da18110ae606ae93b9d18f589fe39f5323756..a909bb7333a85a204042be923917876dd708a61b 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 03cdc9d546c00abad947603e7d66ef87782c428e..cfd5ab6b61396eba6a436de4edc32e6030bdde83 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index ff2e670cf9b106b7157001b6cff58b73825b8179..334047ca3ece0a8f1dd714fcd8c1fa20c3c3ac6d 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 5dc305343ec01fc12b3fd3df0deb9897305c7799..a6c0555506556bea3d0723e25ff058b6e346a871 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 10e762d8d06c98809b17e04691dacba501a1e268..1aa1915e579a971746e6f0041da1c080737b081a 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 typedef struct
 {
index aef6015ccdad7e4a219d192a74f1125c12159932..0206b81ad759c4e45bc6ec64316a01828c1e3171 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index c1063fefe194b9da504d6bcd16ce57439858a3af..d2ffdd912e0465debda4fd1d41e670afb7b948db 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index c6ca327de5c81c34fcb6e9b1f31d39d5dc1a2865..99ff21a6b0db2c514d1dec99d71b5a8f751151b7 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 8073e3e85e3cbf24c21dc808fec2d4d6b648d184..811ff2c0e69b0045c6bc6200df28401aca64647e 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index f5db0e5c65e090f10cbd361f105df9c4a3d594b1..1b1f5b5731d00d8cd13d7aebeec90428907b812d 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 9aaf20e341bd10b1ef8086f8cfc43f39c88aba0c..2df9f119eeff9b0e4239942923414cb626a830d3 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #ifdef HAVE_INET_PTON
 
index f0adaf0b96d49f46e9c4f22795329adc8e71200a..ddc47ee956dcbc1aa3f3b356f9bfc6cbb20ca9c2 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index f7834958aadae782194279a45cdc4e097bed1e6c..5e2f8cc4b9f95ddf281a162f1a4c49a90c5e4ff1 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 6bbac5758178aedec63880f5ea7f9ee40c8729c7..e67b9022b37cfca31abc6fba5624567ef0294b19 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 65a581d611ed5f7a7406ac5ea920f605b529c09f..d268be5b93d546c2eb94615a7d90955dc9f6fdde 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index b2a4a7f7ed5a66fe4fc2002d6d69fd993445f163..a3afd3bba5cb9483d7a94a61f5ff12a96a02d93f 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 75a92a291587c71f6933509241f20fbc03440827..4640e188736964d0e3a89ee024f024d6b6956d23 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index f7dc16e170e701ece3465260f2643b8b7226e092..cc8483fe575b8e562911a679b97d76fbf26ef20a 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 53ad7d55bdd80f8a1cc45b4817a3050ef4256114..b73db8235440cae49e7814bc8d27e18bcc273e3a 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index 7fdd11e262650d5f2a4240e91d48d7711a34e5ac..6ab0a034beaf956e0c71df88805bef75a5d83a70 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 8359bdef33f9f71bdb4962b35fc2927ed2cd91d6..eb8e357da894f1bb3c8baba2a33b0f249c5950a5 100644 (file)
@@ -26,7 +26,7 @@
  * argv3 = second auth type
  */
 
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 9d5a1ea61ca60bcbd3bc0b2b55d836ab4071983d..936de928712a5ef8b420d831e10c90d2d5791ec2 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include <limits.h>
 #include <assert.h>
index cb4af87ca6b3b51dadb8b4f413301fd0322305f1..ca73a4dbd8bb7c6f987876ed30ed9ebfb3afe248 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 typedef struct prcs {
   int prereq_retcode;
index 6562a50541d86a39409246342007401684ebea1a..08c5d9d5439c26a3a9f77b6765fc88f9b1840c50 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #ifndef CURL_DISABLE_WEBSOCKETS
 #if 0
index 9e302fdb8fb9f7d73526caa5905209f4854b1503..1251d65749ba480feaa630e4fcfeb6a8159e13bd 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #ifndef CURL_DISABLE_WEBSOCKETS
 
index d4d583ff5ca86a8ffeb9865d775fa2f8533ccdd2..750325045c55521e402f30b9adc523a982c39cb0 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #ifndef CURL_DISABLE_WEBSOCKETS
 
index 3adaedc7b62ca7b781eb17008a41d29dceaf55dd..4f25c29116d7d9dab7983d4c14584cd0903d39b0 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testtrace.h"
 
index d921f53b929387c3302be94d1ca401ffba863c97..26fac9b7f171ee108bebe21006136eceb92bfe0d 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testtrace.h"
 
index aff7bb7ef5e2d4a7a24b7f2dee93018c0cfec283..928b007f405e041de35fed42467a3117aacc27ba 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testtrace.h"
 
index 5a036881c5d15097727873f96c3bf0aaeef57411..f633b469a9554e74906842805ffb322f3b9e56d6 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index c9383c48e75cbf7d34f01b40c98e725fb0ecffc9..9f0f5aa20e313bf7c77c10d79aa07385f199d325 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index d7f39f37f38f8890bfbb0dd99dc6d353d34a8a0f..2302ae1fd31084b8da6ebd16890ae6b64393a22e 100644 (file)
@@ -37,7 +37,7 @@
  *  successfully.
  */
 
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index fe1b9c7838fdddcf259617366de6a636bd592a26..6eb0dd144f1fec37d0d01971b947c3f613ae37c0 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testtrace.h"
 #include "testutil.h"
index 37258a0fd990fad9065fb05114f053e417524f8f..d2eff5577b48c6770f8291221321782b01c82656 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testtrace.h"
 #include "memdebug.h"
index 6bc6678c0c32d556efb91734a5657da7afb27dfc..05979ad1241fa97a45443f47edb55dd5e876dbce 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 37f1d9e86074896fd0f139a7a3fd5d121d9d3a39..37d2d6807936264bef76c37fccbe3b5ff6c766b0 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 50d2d40995d5b7f0cb46c05f96bd056d020e00fe..a595deaa6c61a5523c7d1c352131b3264277998e 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 
index 1ffd58458ac02764668c466a3fd4b2341f48b107..7f79a37bc663e4d98e782f54499dd0acb87b876d 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index 0b22f86de26e786732acfe702ff8feb4d8251244..7942b9972c15e6e309fc35983af2b0f9fdfe7805 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 7a63d8a173383755c181942d374705b9afb04eaf..b6e5b3ca09d8df70ec72a46f18a5aa074dbc1714 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 1adbbeed70a36c72bd3215b06372c856401ea9e4..06287d21119f8d9deff835ff02c55eb69e5cb7ba 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 2ed9acafc74967f2c0cdc4f99a8147dae09f4929..be607125d2e1782c22008e1fab1f314249b98493 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 0dbd8ef9e53d2dfd56a7fcf80b73b25754e6f48c..20c2c154ef2a51299b0ef02e6b66bc9b3fb2cabd 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 426c7f4270040cc7615e4e19ff88e41dc6b6031f..cd9e7a7eab00653e56d1af193fcb1daa0e09d9b6 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index 938867eb43e8cd18171818c9a61e81a34f96dd27..d2e1806af7d2fe4a38bf8a414ac4bf687d7f8c40 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index c67ab8573aef797dda5709b9467147bd48dad473..55ea21d16e8c9b6cdc21f733ac7fea28ef859393 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index 70e6e3f811c3efc77ce7f3795b16cdcd40dacf8e..84cd79346b7eb968f624a3857f6bc2bdd31430ca 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testtrace.h"
 #include "memdebug.h"
index 36f0434e68ad41aca70a4008201dc5b5b64058c9..e770a72d4ed5a6ee74a493117fcb1d459aa0ce1b 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index db92531316b03ab21f161fe0730b9a63c93b58d3..0c6feb8c5338e5ca7018aa88527fbbe1f3f1c4d4 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index 8f1bc4eaeba5bbe9b733e8a98d398f7ada9ae745..87e679e908792ecab668206f0ddbeb43cb337297 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index c530ee0c0aed1edd515c485975f7fa442e453139..49afc851e2ad3d293b6ce9ee14b7b25729b51680 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index 3c4a710c00efc5c3f754171c529d3fb908cbbb60..fd56fe4624adcdcbe3a255eaa045a89952d82374 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #ifdef HAVE_FCNTL_H
 #include <fcntl.h>
index 51c8ff09c5d5222d9e271bae368b0fbcea5e1113..384bf26db6d7453e76e2c94f8d8dc19625204d26 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index 187106f24b2c2a25aca42de95c39f5555a157f37..23c5b58c3131fca8aba733720e42a77dcb7fdbd1 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index 0e11dae26fa78c65495155638eebe2da3eba9be2..0cb749103feca301601be855efcb95609c3ee90e 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index a508ac07ad5972caca6b2de99e1a41f90f5a1086..37358c98dcf429121e477664ba6e14a474e26885 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include <string.h>
 
index 7c84bc5bab6284bfb87001f4c2c8f8ad27efed84..bef9260c4ea6a2706a48f04359d7cdeb197b569d 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index e92cb4cb3615ee009bdc8f1215808eb028c9a7c5..30b31469f720ef9dca4cd8f59ba163f7382f558f 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index c2df03505904b57f06eada1e11a5cb6252b0645f..458227eeb47c7c0003e8eb6d9729b2cc295a7a8e 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index a5b1212dfa46e065e8d518c9147c0d59bb82dc89..51749b9fda08a04c585477e8058f4385988e9534 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index ebc3ae67d8ec67cb3a9867a48aacb6d21832ab31..8580d4499912f3c8b98b5954a1249d049579b6d5 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index c7a1954d3d23bbe181e0e038bc727255fbaad8e3..511f0775407c074921882ae25bcd272ad4745c86 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 48f1dba519606780ae640153f54b0ee68af87ed4..8582110c3ef3ff499a98ee1d0c00986f628fe9bb 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 6a0a559259a12857f1a4b414ec1e91e30398589d..cefc42f7fdff4f672ed7f509939ac2f368c0c899 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 3ff8d5a536586098b36535984f01a0b4096b3af3..a992cb1b87d7a89305431ea0f8c920dddce51aa7 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #ifdef HAVE_FCNTL_H
 #include <fcntl.h>
index baae719ae6c31b6aacb22cf51f62e8d4e1d11e31..7848681bc47396796fa2f105a2f191e63928db39 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 5d76e0df1e3b90ee9f574bf8ba8fe3d2b670d2dd..6b8f4edd069944d14e7634f55c9fa30f1497fa03 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 156f156dacde26cf472ebbf0d2e72cd06af970f5..9230984344fce5dd219ab50f71183a639f8b4bdc 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 6ef2ce081864b122a31f27fa5468a8b7874a5c2d..4b8a52660b667b9c1250abc386fc3a288930f719 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index e727985e23cd75fdf8ed6d764651d9b76fa0ca04..884afb7b77aca1cc0c59d70c89fa8558e1e356dc 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 3a6de9558ae94d7d56dd7921785f8653cf1b8d6e..4c49f29fe2ea1c53beeccb02b20220380499a841 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include <fcntl.h>
 
index 370e4905e2378e00f870912d4a201648c6df8e45..85221652a45fc4a854a2b3db801ab0f636371be4 100644 (file)
@@ -40,7 +40,7 @@
  * with HTTP.
  */
 
-#include "test.h"
+#include "first.h"
 
 #include <fcntl.h>
 
index c558799b2258ce5446cb9724eb57f9a9f0444d4c..2c7dfdf5db3ad9de66aca8d0018387acd5dc6d95 100644 (file)
@@ -28,7 +28,7 @@
  * aborted correctly.
  */
 
-#include "test.h"
+#include "first.h"
 
 #include <fcntl.h>
 
index 05d31ca2b1cff7d5076b28e7eb5a379d02e9607b..4dae47a85aebba7deddf2a0195cad50787326d7d 100644 (file)
@@ -23,7 +23,7 @@
  ***************************************************************************/
 /* used for test case 533, 534, 535 and 546 */
 
-#include "test.h"
+#include "first.h"
 
 #include <fcntl.h>
 
index c5d9bc21d00f7917fb03b2299ee9d17687833c6f..6e5a83cab978992f8af3ebd8d9562347df6f230d 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 7970a056893fdd96530a079e4afbd5d1cc7d07ed..c4964b82e0b9a2711873b228db330f057f08a34a 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #ifdef HAVE_FCNTL_H
 #include <fcntl.h>
index b966e0c0225c829aec0e4580e37d9fa1e9efc2c6..f2c302cf4e455bdd2ce85960af388c6bb9c1882b 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 3ec58c1cdab3243e5608a75541a9393aaf0d7d19..9b6f1187323a94cd4044197ae5e9ae23723c4801 100644 (file)
@@ -30,7 +30,7 @@
  * argv4 = host name to use for the custom Host: header
  */
 
-#include "test.h"
+#include "first.h"
 
 #include <limits.h>
 
index 4a78c92ab3601c24b0470bcac435671a12e4869e..33411117f4dec418af604c001df92bb839d727d6 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #ifdef HAVE_FCNTL_H
 #include <fcntl.h>
index d8f4f35057fd27019f259134c1c4727b430cffcd..9e3a2aa898c8d84c16447386b483c778ece1cb18 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #ifdef HAVE_FCNTL_H
 #include <fcntl.h>
index e568bfc2b86969b3f1f7eb3a76efdd21d4d2ce82..d759e5eb038e82f5234dc0432ce80c4b027a9858 100644 (file)
@@ -23,7 +23,7 @@
  ***************************************************************************/
 /* Based on Alex Fishman's bug report on September 30, 2007 */
 
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 60fb63d7c6f83cc6ff48f2d87558e9bf2ed45ad4..0a70b72e7ec18dd629c1b078d0087f6fa5abf2e9 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index e57fa3172d1ccae3ddca23d0c2e492680ebc9dcd..829f8fdd6206f64df6feb97219cc389c26787048 100644 (file)
@@ -26,7 +26,7 @@
  * argv3 = proxyuser:password
  */
 
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index a0ffa139b923000e772338bc62b6e00fc5520364..555cd7d62069ea23210cab501dfa611859eb548f 100644 (file)
@@ -26,7 +26,7 @@
  * argv3 = non-zero means ASCII transfer
  */
 
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 8272af854813590ca19daef88d3b06231d641434..3fbdac130e3eb7cc4cf471f753107176b4bbfb6b 100644 (file)
@@ -25,7 +25,7 @@
  * argv2 = proxy with embedded user+password
  */
 
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index af9e903b09c131b07b3ede22f1dfd147a18a3037..e1933821bd3078d1a6b4c90009deff8747be0bea 100644 (file)
@@ -26,7 +26,7 @@
  * bug report #1871269, fixed on Jan 14 2008 before the 7.18.0 release.
  */
 
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index c9d62e0d55ce150b4ab2ad9aa418e8938141b614..49d95a1259c50e6831b50b9a3638741a6ab3d656 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 16eff34f267546d3f86b8a2e223c751797f39a58..87706c2dff02a3d5445972a3b17af9f83cc9756d 100644 (file)
@@ -30,7 +30,7 @@
  * argv3 = proxyuser:password
  */
 
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index 964a190718bee05cb672512224ee57b3896b274b..9c21d581fe9d462829032a309bbfe6c3c5a49868 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index aa6edbda275618fca9aa347017caeb797f2e1f77..df1eb69cbfaf1ca542225571113a81d8cef5893e 100644 (file)
@@ -27,7 +27,7 @@
  * curl_m*printf formatting capabilities and handling of some data types.
  */
 
-#include "test.h"
+#include "first.h"
 
 #include <limits.h>
 
index 9b7ef56dfbc023dba029ec9028450ca878fac1ce..07f75dcd9d3842ba724b3422dbcd75b22a38f489 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index cfd2c914b24d4a09019632e3c597636129570edc..0b6eb308e628efac09ee4cc7f2b83b40914175df 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testtrace.h"
 #include "memdebug.h"
index 2f372f52fe99ab92bf8bad92b39e617c887df130..712820dd52932ba9d1808f4839c69e31ffb3732d 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index 5c6671fe12c36e446bbc49c4eecf2f09e73b9b19..5e010784ab3f7dfa2a3ba63fd5e2bc6e1203b08d 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #ifdef HAVE_FCNTL_H
 #include <fcntl.h>
index 7e7739250486830cf0f5a7d1d8226ef6ceb4986e..ed64a64fb9ccdfac02dd6b7f220ff0f18fdc3311 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include <fcntl.h>
 
index cf4ed0db3e47bbb5b6cbeb253b50553398f37cb3..fc9d929f3d4339b72a38c7458d9bba8a81b0bb65 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index c6b8a3319cdc1f10915b8620f95e3256ad25d673..675293546967259ce5f7e2253f1028d92b8b3598 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 59d37ec84eaadf5841fb4a12a03ddef5caa2ca4c..e69ab97798ea819979c014af3a298ab44a590aa6 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #ifdef HAVE_SYS_STAT_H
 #include <sys/stat.h>
index aacaa383282ccc386837f78d35812dd4a485a130..57cb4602683991ab6b232c55b6f6ed6f823a3699 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index 30f2c40db5fab0ac829b32c698dd59426f09cb45..76eddfb032cc61f397e8eef9c73142b9e1b13c37 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index fc9d874910dab7baf9bc80779b1069ea12379a5c..865b158adfc8bf9a0715e2273f63b182f1acc92e 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #ifdef HAVE_NETINET_IN_H
 #  include <netinet/in.h>
index 9df4be847a510cb080270fc1434a50dfb100eb3e..d03934c93bdaac6aa989c25880326eec5610cac6 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #ifdef HAVE_SYS_STAT_H
 #include <sys/stat.h>
index 19562acb9326694928002ab8405a66df13663987..fa49ae18ffe23abd288fa269da3e4b7fb014fb0b 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testtrace.h"
 #include "testutil.h"
index 4c78214548f967a5789e759224cf48b55a01e524..de12349a28f23e4ecf54532ef19b4d4dd619ed4e 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 53bd77b9ecfc31f05f29c3958ed32475389c8a83..a4c1aedb75c2cf6a5fe0e2a30f236f98dae6a76b 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include <fcntl.h>
 
index e0765415b092fe633aea5973a82dd162359e99cd..e52c228aa27b85e8019a321d25cbe39b27861d82 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index 5b987febf1ce6bd9311b5377eea1855df809e211..22a2cf17bb3cadf95c0f7eeda40f0077fcc8d754 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index c1d8f2fd1201c078ed9165b98343945a3e4fc46a..fd47d55be9b4d213cef3b1743f107e04083ada37 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 47a93f003f8eadd98962b03fd895caf7c4b25da7..c887559695ec23979448f3e83f4ac693fb672709 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include <fcntl.h>
 
index 8e41e298e3caca99625919be2e272f4aff30b2b6..691e142e35658ab292e318438f0f412d31ff333f 100644 (file)
@@ -26,7 +26,7 @@
  * https://curl.se/mail/lib-2011-03/0066.html
  */
 
-#include "test.h"
+#include "first.h"
 
 #include <sys/stat.h>
 
index e8a8034f1e2b49df1770566ba5b633a31d432977..feb7ecdd1200a2122db3a5f5904c4c3cf307faa3 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 94eb911b5ff3d9958d3cc8b76e302e8bd0562b19..760b2dcde893e39f29814d3bace3dc71de0a266d 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index b9f0377fbf0b4cef919d5f9665e75da86996042e..ffa30c6fce519c4aa2875b1027083522b2ac4abb 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 /*
   Based on a bug report recipe by Rene Bernhardt in
index b28bed638e9f9cb8c8d11a8c1a5543dd2a2b9f4c..6a9f03f8490ebb6ee6fdcc4ebd52358c6e261cdf 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 /* lib591 is used for test cases 591, 592, 593 and 594 */
 
index e38cd6784f8d2fc58570e17570c1ab1410f68f05..5c11fc8809a4aa7091aa90020f7dc99ba7d30344 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include <limits.h>
 
index 2cf5fa37d7938162b5e8fddf80abca74b3e52729..fdcb9fe3a6813891666b38ecefd93d754f29a403 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index c22e925b1745df8e7f0be401975f19564ce3e1f9..116ae648f916dcaa089c8de7a2cdb5ee85c5453b 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 6428f99822efee76a61a3d5345f5ba47c2f40fec..95c562387dca88ff35b1ab2697400bc3227e7bd8 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 856670ffd44017b3af8f7662134fa598a171c3fe..d20a8f2b52d2b5a510ccad610ee0ceffcd710ed8 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 6b5f9d5e4fda1b8fba5cd2e20f9655d1ed7d6015..cb029abe4c1aac8460150ef5179fcfe7b7c52bb3 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index c3f11f147fc0444d40c32920a9a640765b6e2121..e5c6a2bebb6281c5b4cb03c26bea9b0937a16257 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index bbc3c4478c7e8167f9915d98637e4e0fa9815aff..f2a00447be8935009b760a80a31f5ad18341e8d9 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "warnless.h"
index 69223643bd9186dcc0457b221043c8c83feec9ea..e3b9d2f6f2de1adffbcb630e9b2557b4a0d84577 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 0915da3dd3424c82fa699f8326f2ceb2f60c20a9..34d5f8a3bff2175160846407176e1a461fee58c4 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 5b8662e6e4febfa7addfc94f2e6ef0e7d804770f..d0eb222b37a92526ea6dd73edc34e384d7961068 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index 57a5ff17f18cacafef6930fce78b98159e02046f..941ca7370cacc33e18c21642bacc9f46317d2064 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index de759631340aaa173ddef2673c14d06baa8a60bf..84b867c6a138e69fc548f86c3b28137857a3ede6 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 5696181e1d3112ea940b5d9b4ceabd7df8c62c3c..b4034b7a017e901d588a1e48c9417beecaf4c0fd 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 999f7039093f6c3396f9d87e0f5adee1f8290162..d9053d2818126faddb6d9d84d74147667ba3840c 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index cdf09f618a3d91e65b00f45cb504dd8d178fc96b..c787288e6693f77f68490997a6a3e9bd71530a2a 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index b26605e3f53b04692893cde3542c2badb0cebfe7..c2f70d859b4641cda062fdb59f1252b3d94505c3 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include <time.h>
 
index 521c351bd8dab4d35f27bebe9f2981ab934270dc..48938b5d01165a36b4ba0a62e2bfa419b5eb181a 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index f740b576a0d9f4363043a4156419db0169990f70..264127f707c375126ee0e7523477d0a1355fe20f 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 33e39830ad54481431d16cccbaaf853528fd7e30..aa58ccf234b763e485c9c855fc497f1b0c863040 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index d0c465f9f6985980274d9a49f3f424d041bf6691..cc2216e2a9416231b24cbc768cad41552fd0d519 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index fd1b18b52e7a9c9c9f9b645c3556d80b00cb91f0..071697838cd67d0cb9f413e3a1a7632c0633d51d 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index 7769fc11e7fe9e1e0ca7deeb227b4b6c3b24d62a..4eed2b8d17af9342c8bef9fb1f0f30f76435645e 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "memdebug.h"
 
index c1e36909bba0874d7024b23aa380e8d21f6b2556..5623a20b89267eb8b00e1a99e3ac18579a3b42ba 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "memdebug.h"
index 9adbe3ef3d63f70292e7925c5311bf1096d4143f..27aec1d735a2acc75e929eda7a70faee6f3ccc1e 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 
 #include "testutil.h"
 #include "testtrace.h"
index 9f241031fb6bea2030b73de98a8ccdb6031295cc..ab72aa7725743d5dbb9913a3f2565fdad45ab6a9 100644 (file)
@@ -21,7 +21,8 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
+
 #include "curl_memory.h"
 
 #ifndef CURL_STATICLIB
index 95e38c4c02aeedd194a446ca3b5e7a77c7346397..a3b39517606858660af819ac4b6638d7ef2ce4f3 100755 (executable)
@@ -203,7 +203,7 @@ print $fh <<HEADER
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
+#include "first.h"
 #include "memdebug.h"
 #include <limits.h>
 
index 53c2651c6b90fe7850eaf308b45362ee45081041..0b49c32f398bd88acdc443c27fecfcd56e04c482 100644 (file)
@@ -21,9 +21,9 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "test.h"
-#include "testutil.h"
 #include "testtrace.h"
+#include "testutil.h"
+
 #include "memdebug.h"
 
 struct libtest_trace_cfg libtest_debug_config;
index d7087c5366fa5acbbc779a26d5701c659bacae2f..dc064f4161d0912cfc935e14538add36aa5ad8bd 100644 (file)
@@ -23,6 +23,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
+#include "test.h"
 
 struct libtest_trace_cfg {
   int tracetime;  /* 0 represents FALSE, anything else TRUE */
index e9672d82a3c2e911a559064da78b24b59c530936..2bf171bf0071cee9d61c63eb4757db568993058a 100644 (file)
@@ -21,9 +21,8 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "curl_setup.h"
-#include <curl/curl.h>
 #include "testutil.h"
+
 #include "memdebug.h"
 
 #ifdef _WIN32
index 750506fb2e329543cc73ae0f4e2f564d79f8dd95..d77ffb6015fcee74c5935179134bf9c687dd8563 100644 (file)
@@ -23,7 +23,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "curl_setup.h"
+#include "test.h"
 
 struct timeval tutil_tvnow(void);
 
index e93daa158156f90c41858064ce0b4313d1b302dc..84b4261dab45bdb0fdf311385a8d76c48e7dc22a 100644 (file)
@@ -29,7 +29,7 @@ BUNDLE = servers
 FIRSTFILES = first.c first.h
 
 # Common files used by test programs
-UTILS = getpart.c getpart.h util.c
+UTILS = getpart.c util.c
 
 CURLX_CFILES = \
   ../../lib/curlx/base64.c \
index d19d0344b1748028e3bbd30f4862f35911f7a7f0..069a93f33e0fd2a39c84a17e261f995c4409330e 100644 (file)
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-
-#include "curl_setup.h"
-
-#ifdef HAVE_SYS_IOCTL_H
-#include <sys/ioctl.h>
-#endif
-#ifndef UNDER_CE
-#include <signal.h>
-#endif
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
-#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
-#ifdef HAVE_ARPA_INET_H
-#include <arpa/inet.h>
-#endif
-#ifdef HAVE_NETDB_H
-#include <netdb.h>
-#endif
-
-#include <ctype.h>
-
-#include <curlx.h> /* from the private lib dir */
-#include "getpart.h"
+#include "first.h"
 
 static int dnsd_wrotepidfile = 0;
 static int dnsd_wroteportfile = 0;
index 430f3674deee242a49e83105a9d4022d35854657..0f30c7801620fca08b23f416d0d04519b1152789 100644 (file)
@@ -21,6 +21,8 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
+#include "first.h"
+
 #include <stdio.h>
 #include <string.h>
 
@@ -37,7 +39,7 @@ int main(int argc, char **argv)
 
   entry_name = argv[1];
   entry_func = NULL;
-  for(tmp = 0; tmp < CURL_ARRAYSIZE(s_entries); ++tmp) {
+  for(tmp = 0; s_entries[tmp].ptr; ++tmp) {
     if(strcmp(entry_name, s_entries[tmp].name) == 0) {
       entry_func = s_entries[tmp].ptr;
       break;
index 6b14c5ee7c5de969c76f76558ee64b67b3b53f80..1fc31f8ebca10a32ee3904a34308abb52e166e97 100644 (file)
@@ -23,6 +23,8 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
+#include "curl_setup.h"
+
 typedef int (*entry_func_t)(int, char **);
 
 struct entry_s {
@@ -30,4 +32,127 @@ struct entry_s {
   entry_func_t ptr;
 };
 
+extern const struct entry_s s_entries[];
+
+#ifndef UNDER_CE
+#include <signal.h>
+#endif
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
+#ifdef HAVE_NETINET_IN6_H
+#include <netinet/in6.h>
+#endif
+#ifdef HAVE_ARPA_INET_H
+#include <arpa/inet.h>
+#endif
+#ifdef HAVE_NETDB_H
+#include <netdb.h>
+#endif
+
+#include <curlx.h> /* from the private lib dir */
+
+/* adjust for old MSVC */
+#if defined(_MSC_VER) && (_MSC_VER < 1900)
+#  define snprintf _snprintf
+#endif
+
+#ifdef _WIN32
+#  define CURL_STRNICMP(p1, p2, n) _strnicmp(p1, p2, n)
+#elif defined(HAVE_STRCASECMP)
+#  ifdef HAVE_STRINGS_H
+#  include <strings.h>
+#  endif
+#  define CURL_STRNICMP(p1, p2, n) strncasecmp(p1, p2, n)
+#elif defined(HAVE_STRCMPI)
+#  define CURL_STRNICMP(p1, p2, n) strncmpi(p1, p2, n)
+#elif defined(HAVE_STRICMP)
+#  define CURL_STRNICMP(p1, p2, n) strnicmp(p1, p2, n)
+#else
+#  error "missing case insensitive comparison function"
+#endif
+
+enum {
+  DOCNUMBER_NOTHING    = -7,
+  DOCNUMBER_QUIT       = -6,
+  DOCNUMBER_BADCONNECT = -5,
+  DOCNUMBER_INTERNAL   = -4,
+  DOCNUMBER_CONNECT    = -3,
+  DOCNUMBER_WERULEZ    = -2,
+  DOCNUMBER_404        = -1
+};
+
+#include <curl/curl.h> /* for curl_socket_t */
+
+#ifdef USE_UNIX_SOCKETS
+#ifdef HAVE_SYS_UN_H
+#include <sys/un.h> /* for sockaddr_un */
+#endif
+#endif /* USE_UNIX_SOCKETS */
+
+typedef union {
+  struct sockaddr      sa;
+  struct sockaddr_in   sa4;
+#ifdef USE_IPV6
+  struct sockaddr_in6  sa6;
+#endif
+#ifdef USE_UNIX_SOCKETS
+  struct sockaddr_un   sau;
+#endif
+} srvr_sockaddr_union_t;
+
+/* getpart */
+#define GPE_NO_BUFFER_SPACE -2
+#define GPE_OUT_OF_MEMORY   -1
+#define GPE_OK               0
+#define GPE_END_OF_FILE      1
+
+extern int getpart(char **outbuf, size_t *outlen,
+                   const char *main, const char *sub, FILE *stream);
+
+/* utility functions */
+extern char *data_to_hex(char *data, size_t len);
+extern void logmsg(const char *msg, ...);
+extern void loghex(unsigned char *buffer, ssize_t len);
+extern unsigned char byteval(char *value);
+extern int win32_init(void);
+extern const char *sstrerror(int err);
+extern FILE *test2fopen(long testno, const char *logdir2);
+extern curl_off_t our_getpid(void);
+extern int write_pidfile(const char *filename);
+extern int write_portfile(const char *filename, int port);
+extern void set_advisor_read_lock(const char *filename);
+extern void clear_advisor_read_lock(const char *filename);
+static volatile int got_exit_signal = 0;
+static volatile int exit_signal = 0;
+#ifdef _WIN32
+static HANDLE exit_event = NULL;
+#endif
+extern void install_signal_handlers(bool keep_sigalrm);
+extern void restore_signal_handlers(bool keep_sigalrm);
+#ifdef USE_UNIX_SOCKETS
+extern int bind_unix_socket(curl_socket_t sock, const char *unix_socket,
+                            struct sockaddr_un *sau);
+#endif
+extern unsigned short util_ultous(unsigned long ulnum);
+
+/* global variables */
+static const char *srcpath = "."; /* pointing to the test dir */
+static const char *pidname = NULL;
+static const char *portname = NULL; /* none by default */
+static const char *serverlogfile = NULL;
+static int serverlogslocked;
+static const char *configfile = NULL;
+static const char *logdir = "log";
+static char loglockfile[256];
+#ifdef USE_IPV6
+static bool use_ipv6 = FALSE;
+#endif
+static const char *ipv_inuse = "IPv4";
+static unsigned short server_port = 0;
+static const char *socket_type = "IPv4";
+static int socket_domain = AF_INET;
+
+#define SERVERLOGS_LOCKDIR "lock"  /* within logdir */
+
 #endif /* HEADER_SERVER_FIRST_H */
index b881837055dfc65606af50ac65698a5320d0423f..8725f540b37915ce4ad0d66c5834c62100b7f734 100644 (file)
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "curl_setup.h"
-
-#include "getpart.h"
-#include <curlx.h> /* from the private lib dir */
-#include "curl_memory.h"
+#include "first.h"
 
 #define EAT_SPACE(p) while(*(p) && ISSPACE(*(p))) (p)++
 
@@ -43,6 +39,8 @@
 #define system_strdup strdup
 #endif
 
+#include "curl_memory.h"
+
 #if defined(_MSC_VER) && defined(_DLL)
 #  pragma warning(push)
 #  pragma warning(disable:4232) /* MSVC extension, dllimport identity */
@@ -268,8 +266,8 @@ static int decodedata(char  **buf,   /* dest buffer */
  *   GPE_OUT_OF_MEMORY
  *   GPE_OK
  */
-static int getpart(char **outbuf, size_t *outlen,
-                   const char *main, const char *sub, FILE *stream)
+int getpart(char **outbuf, size_t *outlen,
+            const char *main, const char *sub, FILE *stream)
 {
 # define MAX_TAG_LEN 200
   char couter[MAX_TAG_LEN + 1]; /* current outermost section */
diff --git a/tests/server/getpart.h b/tests/server/getpart.h
deleted file mode 100644 (file)
index e9b56f8..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-#ifndef HEADER_CURL_SERVER_GETPART_H
-#define HEADER_CURL_SERVER_GETPART_H
-/***************************************************************************
- *                                  _   _ ____  _
- *  Project                     ___| | | |  _ \| |
- *                             / __| | | | |_) | |
- *                            | (__| |_| |  _ <| |___
- *                             \___|\___/|_| \_\_____|
- *
- * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
- *
- * This software is licensed as described in the file COPYING, which
- * you should have received as part of this distribution. The terms
- * are also available at https://curl.se/docs/copyright.html.
- *
- * You may opt to use, copy, modify, merge, publish, distribute and/or sell
- * copies of the Software, and permit persons to whom the Software is
- * furnished to do so, under the terms of the COPYING file.
- *
- * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
- * KIND, either express or implied.
- *
- * SPDX-License-Identifier: curl
- *
- ***************************************************************************/
-#include "curl_setup.h"
-
-#include "strdup.h"
-
-#define GPE_NO_BUFFER_SPACE -2
-#define GPE_OUT_OF_MEMORY   -1
-#define GPE_OK               0
-#define GPE_END_OF_FILE      1
-
-static int getpart(char **outbuf, size_t *outlen,
-                   const char *main, const char *sub, FILE *stream);
-
-#endif /* HEADER_CURL_SERVER_GETPART_H */
index ef71460542f764ade1c8f3b18ceba1cdbca87cd5..2c453f1c6d118adb6480016d762b51158eb62b88 100644 (file)
@@ -21,7 +21,8 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "curl_setup.h"
+#include "first.h"
+
 #include <stdlib.h>
 #include <string.h>
 
 
 /* based on sockfilt.c */
 
-#ifndef UNDER_CE
-#include <signal.h>
-#endif
-#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
-#ifdef HAVE_NETINET_IN6_H
-#include <netinet/in6.h>
-#endif
-#ifdef HAVE_ARPA_INET_H
-#include <arpa/inet.h>
-#endif
-#ifdef HAVE_NETDB_H
-#include <netdb.h>
-#endif
-
-#include <curlx.h> /* from the private lib dir */
-#include "getpart.h"
-
 #define MQTT_MSG_CONNECT    0x10
 #define MQTT_MSG_CONNACK    0x20
 #define MQTT_MSG_PUBLISH    0x30
index 70d28a21b3bf9df55b5238464c23081b73f761b0..1d17146d9080edc4300784dbffa9a33a76a3cb20 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "curl_setup.h"
+#include "first.h"
 
 /* Purpose
  *
  *
  */
 
-#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
-#ifdef _XOPEN_SOURCE_EXTENDED
-/* This define is "almost" required to build on HP-UX 11 */
-#include <arpa/inet.h>
-#endif
-#ifdef HAVE_NETDB_H
-#include <netdb.h>
-#endif
-
 static int test_resolve(int argc, char *argv[])
 {
   int arg = 1;
index 8de70566c206ff6265a36d0c8613c11fb001e8a8..1825361718bc1666c325e3c85484f7d03e5835bc 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "curl_setup.h"
+#include "first.h"
 
 /*
  * curl's test suite Real Time Streaming Protocol (RTSP) server.
  * This source file was started based on curl's HTTP test suite server.
  */
 
-#ifndef UNDER_CE
-#include <signal.h>
-#endif
-#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
-#ifdef HAVE_NETINET_IN6_H
-#include <netinet/in6.h>
-#endif
-#ifdef HAVE_ARPA_INET_H
-#include <arpa/inet.h>
-#endif
-#ifdef HAVE_NETDB_H
-#include <netdb.h>
-#endif
 #ifdef HAVE_NETINET_TCP_H
 #include <netinet/tcp.h> /* for TCP_NODELAY */
 #endif
 
-#include <curlx.h> /* from the private lib dir */
-#include "getpart.h"
-
 #undef REQBUFSIZ
 #define REQBUFSIZ 150000
 
index 494cad156bc53dde2fca3fd4cddfc08095824d4b..93aff96104b595118d93c8697a80171772f7770f 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "curl_setup.h"
+#include "first.h"
 
 /* Purpose
  *
  * it!
  */
 
-#ifndef UNDER_CE
-#include <signal.h>
-#endif
-#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
-#ifdef HAVE_NETINET_IN6_H
-#include <netinet/in6.h>
-#endif
-#ifdef HAVE_ARPA_INET_H
-#include <arpa/inet.h>
-#endif
-#ifdef HAVE_NETDB_H
-#include <netdb.h>
-#endif
-
-#include <curlx.h> /* from the private lib dir */
 
 /* buffer is this excessively large only to be able to support things like
   test 1003 which tests exceedingly large server response lines */
index 46e4b4d88c6ff0a580bae3e01085a104d791b33c..64c55a64e70cbdd19d562c9fb8cb47eec6b74f0f 100644 (file)
@@ -21,7 +21,8 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "curl_setup.h"
+#include "first.h"
+
 #include <stdlib.h>
 
 /* Function
 
 /* based on sockfilt.c */
 
-#ifndef UNDER_CE
-#include <signal.h>
-#endif
-#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
-#ifdef HAVE_NETINET_IN6_H
-#include <netinet/in6.h>
-#endif
-#ifdef HAVE_ARPA_INET_H
-#include <arpa/inet.h>
-#endif
-#ifdef HAVE_NETDB_H
-#include <netdb.h>
-#endif
-
-#include <curlx.h> /* from the private lib dir */
-
 static const char *backendaddr = "127.0.0.1";
 static unsigned short backendport = 0; /* default is use client's */
 
@@ -824,7 +807,7 @@ static curl_socket_t socksd_sockdaemon(curl_socket_t sock,
 #endif /* USE_IPV6 */
 #ifdef USE_UNIX_SOCKETS
     case AF_UNIX:
-    rc = bind_unix_socket(sock, unix_socket, &listener.sau);
+      rc = bind_unix_socket(sock, unix_socket, &listener.sau);
 #endif
   }
 
index 8c818f3d26d16743935181bbad8ce3472b46599f..30bc2f0f618d8dc2cb1d6b752ca138c37076218b 100644 (file)
@@ -21,7 +21,7 @@
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "curl_setup.h"
+#include "first.h"
 
 /* sws.c: simple (silly?) web server
 
 
  */
 
-#ifndef UNDER_CE
-#include <signal.h>
-#endif
-#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
-#ifdef HAVE_NETINET_IN6_H
-#include <netinet/in6.h>
-#endif
-#ifdef HAVE_ARPA_INET_H
-#include <arpa/inet.h>
-#endif
-#ifdef HAVE_NETDB_H
-#include <netdb.h>
-#endif
 #ifdef HAVE_NETINET_TCP_H
 #include <netinet/tcp.h> /* for TCP_NODELAY */
 #endif
 
-#include <curlx.h> /* from the private lib dir */
-#include "getpart.h"
-
 static bool use_gopher = FALSE;
 static bool is_proxy = FALSE;
 
index a59093694460c86d7ff58b29414d7c4d867a5fb9..1505d4de179892e99eaafb1f436cb11c4d92dd75 100644 (file)
  *
  * SPDX-License-Identifier: BSD-4-Clause-UC
  */
-
-#include "curl_setup.h"
+#include "first.h"
 
 #ifdef HAVE_SYS_IOCTL_H
-#include <sys/ioctl.h>
-#endif
-#ifndef UNDER_CE
-#include <signal.h>
+#include <sys/ioctl.h>  /* for ioctl() */
 #endif
 #ifdef HAVE_FCNTL_H
 #include <fcntl.h>
 #endif
-#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
-#ifdef HAVE_ARPA_INET_H
-#include <arpa/inet.h>
-#endif
-#ifdef HAVE_NETDB_H
-#include <netdb.h>
-#endif
 #ifdef HAVE_SYS_FILIO_H
 #include <sys/filio.h>  /* FIONREAD on Solaris 7 */
 #endif
@@ -82,9 +69,6 @@
 
 #include <ctype.h>
 
-#include <curlx.h> /* from the private lib dir */
-#include "getpart.h"
-
 /*****************************************************************************
 *  This is a rewrite/clone of the arpa/tftp.h file for systems without it.   *
 *****************************************************************************/
@@ -119,7 +103,6 @@ struct tftphdr {
 #define TFTP_EBADID    5
 #define TFTP_EEXISTS   6
 #define TFTP_ENOUSER   7
-/****************************************************************************/
 
 /*****************************************************************************
 *                      STRUCT DECLARATIONS AND DEFINES                       *
index f21c3eaafd6a5d1a7961f8081304bd79def42d21..8297c2027045b0e1a27fa0d9687dd11dc9a66f65 100644 (file)
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "curl_setup.h"
+#include "first.h"
 
-#ifndef UNDER_CE
-#include <signal.h>
-#endif
-#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
-#ifdef HAVE_NETINET_IN6_H
-#include <netinet/in6.h>
-#endif
-#ifdef _XOPEN_SOURCE_EXTENDED
-/* This define is "almost" required to build on HP-UX 11 */
-#include <arpa/inet.h>
-#endif
-#ifdef HAVE_NETDB_H
-#include <netdb.h>
-#endif
-
-#include <curlx.h> /* from the private lib dir */
-
-/* adjust for old MSVC */
-#if defined(_MSC_VER) && (_MSC_VER < 1900)
-#  define snprintf _snprintf
-#endif
-
-#ifdef _WIN32
-#  define CURL_STRNICMP(p1, p2, n) _strnicmp(p1, p2, n)
-#elif defined(HAVE_STRCASECMP)
-#  ifdef HAVE_STRINGS_H
-#    include <strings.h>
-#  endif
-#  define CURL_STRNICMP(p1, p2, n) strncasecmp(p1, p2, n)
-#elif defined(HAVE_STRCMPI)
-#  define CURL_STRNICMP(p1, p2, n) strncmpi(p1, p2, n)
-#elif defined(HAVE_STRICMP)
-#  define CURL_STRNICMP(p1, p2, n) strnicmp(p1, p2, n)
-#else
-#  error "missing case insensitive comparison function"
-#endif
-
-enum {
-  DOCNUMBER_NOTHING    = -7,
-  DOCNUMBER_QUIT       = -6,
-  DOCNUMBER_BADCONNECT = -5,
-  DOCNUMBER_INTERNAL   = -4,
-  DOCNUMBER_CONNECT    = -3,
-  DOCNUMBER_WERULEZ    = -2,
-  DOCNUMBER_404        = -1
-};
-
-#define SERVERLOGS_LOCKDIR "lock"  /* within logdir */
-
-#include "timeval.h"
-
-#include <curl/curl.h> /* for curl_socket_t */
-
-#ifdef USE_UNIX_SOCKETS
-#ifdef HAVE_SYS_UN_H
-#include <sys/un.h> /* for sockaddr_un */
-#endif
-#endif /* USE_UNIX_SOCKETS */
-
-typedef union {
-  struct sockaddr      sa;
-  struct sockaddr_in   sa4;
-#ifdef USE_IPV6
-  struct sockaddr_in6  sa6;
+#ifdef HAVE_FCNTL_H
+#include <fcntl.h>
 #endif
-#ifdef USE_UNIX_SOCKETS
-  struct sockaddr_un   sau;
-#endif
-} srvr_sockaddr_union_t;
-
-/* global variables */
-static const char *srcpath = "."; /* pointing to the test dir */
-static const char *pidname = NULL;
-static const char *portname = NULL; /* none by default */
-static const char *serverlogfile = NULL;
-static int serverlogslocked;
-static const char *configfile = NULL;
-static const char *logdir = "log";
-static char loglockfile[256];
-#ifdef USE_IPV6
-static bool use_ipv6 = FALSE;
-#endif
-static const char *ipv_inuse = "IPv4";
-static unsigned short server_port = 0;
-static const char *socket_type = "IPv4";
-static int socket_domain = AF_INET;
 
 /* This function returns a pointer to STATIC memory. It converts the given
  * binary lump to a hex formatted string usable for output in logs or
  * whatever.
  */
-static char *data_to_hex(char *data, size_t len)
+char *data_to_hex(char *data, size_t len)
 {
   static char buf[256*3];
   size_t i;
@@ -139,7 +54,26 @@ static char *data_to_hex(char *data, size_t len)
   return buf;
 }
 
-static void logmsg(const char *msg, ...)
+void loghex(unsigned char *buffer, ssize_t len)
+{
+  char data[12000];
+  ssize_t i;
+  unsigned char *ptr = buffer;
+  char *optr = data;
+  ssize_t width = 0;
+  int left = sizeof(data);
+
+  for(i = 0; i < len && (left >= 0); i++) {
+    snprintf(optr, left, "%02x", ptr[i]);
+    width += 2;
+    optr += 2;
+    left -= 2;
+  }
+  if(width)
+    logmsg("'%s'", data);
+}
+
+void logmsg(const char *msg, ...)
 {
   va_list ap;
   char buffer[2048 + 1];
@@ -197,26 +131,7 @@ static void logmsg(const char *msg, ...)
   }
 }
 
-static void loghex(unsigned char *buffer, ssize_t len)
-{
-  char data[12000];
-  ssize_t i;
-  unsigned char *ptr = buffer;
-  char *optr = data;
-  ssize_t width = 0;
-  int left = sizeof(data);
-
-  for(i = 0; i < len && (left >= 0); i++) {
-    snprintf(optr, left, "%02x", ptr[i]);
-    width += 2;
-    optr += 2;
-    left -= 2;
-  }
-  if(width)
-    logmsg("'%s'", data);
-}
-
-static unsigned char byteval(char *value)
+unsigned char byteval(char *value)
 {
   unsigned long num = strtoul(value, NULL, 10);
   return num & 0xff;
@@ -244,7 +159,7 @@ static void win32_cleanup(void)
   _flushall();
 }
 
-static int win32_init(void)
+int win32_init(void)
 {
   curlx_now_init();
 #ifdef USE_WINSOCK
@@ -276,7 +191,7 @@ static int win32_init(void)
 }
 
 /* socket-safe strerror (works on Winsock errors, too) */
-static const char *sstrerror(int err)
+const char *sstrerror(int err)
 {
   static char buf[512];
   return curlx_winapi_strerror(err, buf, sizeof(buf));
@@ -286,7 +201,7 @@ static const char *sstrerror(int err)
 #endif  /* _WIN32 */
 
 /* fopens the test case file */
-static FILE *test2fopen(long testno, const char *logdir2)
+FILE *test2fopen(long testno, const char *logdir2)
 {
   FILE *stream;
   char filename[256];
@@ -309,7 +224,7 @@ static FILE *test2fopen(long testno, const char *logdir2)
 #define t_getpid() getpid()
 #endif
 
-static curl_off_t our_getpid(void)
+curl_off_t our_getpid(void)
 {
   curl_off_t pid = (curl_off_t)t_getpid();
 #ifdef _WIN32
@@ -326,7 +241,7 @@ static curl_off_t our_getpid(void)
   return pid;
 }
 
-static int write_pidfile(const char *filename)
+int write_pidfile(const char *filename)
 {
   FILE *pidfile;
   curl_off_t pid;
@@ -344,7 +259,7 @@ static int write_pidfile(const char *filename)
 }
 
 /* store the used port number in a file */
-static int write_portfile(const char *filename, int port)
+int write_portfile(const char *filename, int port)
 {
   FILE *portfile = fopen(filename, "wb");
   if(!portfile) {
@@ -357,7 +272,7 @@ static int write_portfile(const char *filename, int port)
   return 1; /* success */
 }
 
-static void set_advisor_read_lock(const char *filename)
+void set_advisor_read_lock(const char *filename)
 {
   FILE *lockfile;
   int error = 0;
@@ -379,7 +294,7 @@ static void set_advisor_read_lock(const char *filename)
            filename, errno, strerror(errno));
 }
 
-static void clear_advisor_read_lock(const char *filename)
+void clear_advisor_read_lock(const char *filename)
 {
   int error = 0;
   int res;
@@ -440,18 +355,6 @@ static HANDLE thread_main_window = NULL;
 static HWND hidden_main_window = NULL;
 #endif
 
-/* global variable which if set indicates that the program should finish */
-static volatile int got_exit_signal = 0;
-
-/* global variable which if set indicates the first signal handled in
-   exit_signal_handler */
-static volatile int exit_signal = 0;
-
-#ifdef _WIN32
-/* global event which if set indicates that the program should finish */
-static HANDLE exit_event = NULL;
-#endif
-
 /* signal handler that will be triggered to indicate that the program
  * should finish its execution in a controlled manner as soon as possible.
  * The first time this is called it will set got_exit_signal to one and
@@ -665,7 +568,7 @@ static SIGHANDLER_T set_signal(int signum, SIGHANDLER_T handler,
 }
 #endif
 
-static void install_signal_handlers(bool keep_sigalrm)
+void install_signal_handlers(bool keep_sigalrm)
 {
 #ifdef _WIN32
   /* setup Windows exit event before any signal can trigger */
@@ -733,7 +636,7 @@ static void install_signal_handlers(bool keep_sigalrm)
 #endif
 }
 
-static void restore_signal_handlers(bool keep_sigalrm)
+void restore_signal_handlers(bool keep_sigalrm)
 {
 #ifdef SIGHUP
   if(SIG_ERR != old_sighup_handler)
@@ -789,8 +692,8 @@ static void restore_signal_handlers(bool keep_sigalrm)
 
 #ifdef USE_UNIX_SOCKETS
 
-static int bind_unix_socket(curl_socket_t sock, const char *unix_socket,
-                            struct sockaddr_un *sau)
+int bind_unix_socket(curl_socket_t sock, const char *unix_socket,
+                     struct sockaddr_un *sau)
 {
   int error;
   int rc;
@@ -860,7 +763,7 @@ static int bind_unix_socket(curl_socket_t sock, const char *unix_socket,
 #define CURL_MASK_USHORT  ((unsigned short)~0)
 #define CURL_MASK_SSHORT  (CURL_MASK_USHORT >> 1)
 
-static unsigned short util_ultous(unsigned long ulnum)
+unsigned short util_ultous(unsigned long ulnum)
 {
 #ifdef __INTEL_COMPILER
 #  pragma warning(push)