]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests: drop unused or redundant includes
authorViktor Szakats <commit@vsz.me>
Mon, 23 Jun 2025 08:15:16 +0000 (10:15 +0200)
committerViktor Szakats <commit@vsz.me>
Mon, 23 Jun 2025 11:49:03 +0000 (13:49 +0200)
Closes #17717

108 files changed:
tests/client/first.h
tests/client/h2_pausing.c
tests/libtest/first.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/lib1515.c
tests/libtest/lib1522.c
tests/libtest/lib1523.c
tests/libtest/lib1531.c
tests/libtest/lib1540.c
tests/libtest/lib1541.c
tests/libtest/lib1542.c
tests/libtest/lib1552.c
tests/libtest/lib1553.c
tests/libtest/lib1556.c
tests/libtest/lib1557.c
tests/libtest/lib1558.c
tests/libtest/lib1559.c
tests/libtest/lib1560.c
tests/libtest/lib1565.c
tests/libtest/lib1568.c
tests/libtest/lib1569.c
tests/libtest/lib1591.c
tests/libtest/lib1592.c
tests/libtest/lib1598.c
tests/libtest/lib1599.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/lib1918.c
tests/libtest/lib1919.c
tests/libtest/lib1960.c
tests/libtest/lib1977.c
tests/libtest/lib2032.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/lib3026.c
tests/libtest/lib3027.c
tests/libtest/lib3105.c
tests/libtest/lib3207.c
tests/libtest/lib3208.c
tests/libtest/lib502.c
tests/libtest/lib503.c
tests/libtest/lib504.c
tests/libtest/lib505.c
tests/libtest/lib507.c
tests/libtest/lib509.c
tests/libtest/lib518.c
tests/libtest/lib525.c
tests/libtest/lib526.c
tests/libtest/lib530.c
tests/libtest/lib533.c
tests/libtest/lib537.c
tests/libtest/lib540.c
tests/libtest/lib541.c
tests/libtest/lib542.c
tests/libtest/lib555.c
tests/libtest/lib557.c
tests/libtest/lib559.c
tests/libtest/lib560.c
tests/libtest/lib562.c
tests/libtest/lib564.c
tests/libtest/lib568.c
tests/libtest/lib571.c
tests/libtest/lib572.c
tests/libtest/lib573.c
tests/libtest/lib575.c
tests/libtest/lib576.c
tests/libtest/lib582.c
tests/libtest/lib583.c
tests/libtest/lib591.c
tests/libtest/lib597.c
tests/libtest/lib653.c
tests/libtest/lib658.c
tests/libtest/lib659.c
tests/libtest/lib670.c
tests/libtest/lib674.c
tests/libtest/lib677.c
tests/libtest/lib678.c
tests/libtest/lib751.c
tests/libtest/lib753.c
tests/libtest/mk-lib1521.pl
tests/libtest/test.h
tests/libtest/testutil.h
tests/tunit/tool1394.c
tests/tunit/tool1604.c
tests/unit/unit1305.c

index feeb52871a5a263d1bb701417d73f03b565e8e07..3c1333829767676e7279ebcda94e636dc0502515 100644 (file)
@@ -38,9 +38,6 @@ extern const struct entry_s s_entries[];
 
 #include "curlx.h"
 
-#include <stdlib.h>  /* for calloc(), free(), strtol() */
-#include <string.h>  /* for strchr(), strcmp() */
-
 #define ERR()                                                                 \
   do {                                                                        \
     curl_mfprintf(stderr, "something unexpected went wrong - bailing out!\n");\
index 5ee360c463272bcb157b0e33f0f66a503b380b87..d2e90cd4831f1c94a52d4b079ba8ab013fd3e3ba 100644 (file)
@@ -25,8 +25,6 @@
  */
 #include "first.h"
 
-#include <assert.h>
-
 static void usage_h2_pausing(const char *msg)
 {
   if(msg)
index 00ff37558b33aed3d3308152d770fb3fd4d9d38b..0ca736668ba62aabf0fcf6971421fa3eb1c17bc4 100644 (file)
 #include "first.h"
 
 #ifdef HAVE_LOCALE_H
-#  include <locale.h> /* for setlocale() */
+#include <locale.h> /* for setlocale() */
 #endif
 
 #include "memdebug.h"
-#include "curlx/timediff.h"
-#include "curlx/binmode.h"
 
 int select_wrapper(int nfds, fd_set *rd, fd_set *wr, fd_set *exc,
                    struct timeval *tv)
index b5908ad335984bd6d3fa4d5bcc0be0cf9c08ae5e..50c851c640853c81b321057789c77b0d92034833 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 struct t1485_transfer_status {
index a193870c37f93bf89b50270278d1aac17d261a63..418db89503bd9af9ae8caa88fdb2820c504fa8d6 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1500(char *URL)
index 7ad3c7c999f94b0a57bd922afe2a64c8ba3da1dc..79f8353a6119807103543091d3680a08ceb2cbb3 100644 (file)
@@ -23,8 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include <fcntl.h>
-
 #include "memdebug.h"
 
 static CURLcode test_lib1501(char *URL)
index 51d33afa65506c4f12767ebca1bef7470e0ff51f..39a73874308e4a1693068e9d37bbb566ed64f0db 100644 (file)
@@ -31,9 +31,6 @@
 
 #include "first.h"
 
-#include <limits.h>
-
-#include "testutil.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1502(char *URL)
index 161c81c8182922d390a6afde4cd557d1b411f928..764ca3fcedfb7cc38d37024d3b1c8b0625699a5e 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1506(char *URL)
index c18bd577ee01b28f921d90fe8fc9033c8da52b16..4588f2af48048c171543ba38df3eca01370d6c37 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "timediff.h"
 #include "memdebug.h"
 
 /*
index 1769b5327d2aaae290982c64d7d165c3eb8d44ea..d07bb28d8e6803f70a7e44687a5ab5f4e8d1f494 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1508(char *URL)
index 703957256326c1b13d01f83f87305659662471ac..1cc76845cbd20ec8a97ef83cef77fa59a3ad056c 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 size_t WriteOutput(char *ptr, size_t size, size_t nmemb, void *stream);
index 26cea287b760e06983341d02f3e8279a4f0e66b3..13ee0b724e140937be4740b533bb958095c2fb1e 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1510(char *URL)
index e65c33975c9e48a185209241d17631284df4e3e6..473c2e36bdbe186fb652cfef04c63de2c9c6ba48 100644 (file)
@@ -31,7 +31,6 @@
 #include "first.h"
 
 #include "testtrace.h"
-#include "testutil.h"
 #include "memdebug.h"
 
 #define DNS_TIMEOUT 1L
index 750ecc9b0b4a606d875f611d10443be561702643..f714b9f55596e74fa37f67ed8217bc283a695229 100644 (file)
@@ -26,7 +26,6 @@
 /* test case and code based on https://github.com/curl/curl/issues/2847 */
 
 #include "testtrace.h"
-#include "testutil.h"
 #include "memdebug.h"
 
 static int sockopt_callback(void *clientp, curl_socket_t curlfd,
index 728a4c94b74f00731967869b27ea7905e65b10ea..13f3755326ffe72a334c46dcd70f1b349bb5f0ba 100644 (file)
@@ -25,7 +25,6 @@
 
 /* test case and code based on https://github.com/curl/curl/issues/3927 */
 
-#include "testutil.h"
 #include "memdebug.h"
 
 static int dload_progress_cb(void *a, curl_off_t b, curl_off_t c,
index 0a9266a645962decbe9dbc7b7e022bd625084ed3..38626222d91e3a20ade0e845f9a42d9706dbfd60 100644 (file)
@@ -23,8 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
-#include "timediff.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1531(char *URL)
index 26af4771eb55a87005bf4d07a7acab78a135f0b8..b53a3e847d53a693c860b265f16da3bbefe90b50 100644 (file)
@@ -24,7 +24,6 @@
 #include "first.h"
 
 #include "testtrace.h"
-#include "testutil.h"
 #include "memdebug.h"
 
 struct t1540_transfer_status {
index a1f905649e64f86ee96b55d03e4b6c7c107ed745..314be84792d3c5389e188488233f3dde346dbff8 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 struct t1541_transfer_status {
index e47f128c282efb02472d4a1017b4129f1f30ed08..f78999e2361a60b84d19ba15cb1985f71ba0aab4 100644 (file)
@@ -32,7 +32,6 @@
 
 #include "first.h"
 
-#include "testutil.h"
 #include "testtrace.h"
 #include "memdebug.h"
 
index 602c59dd3f4e822cf7ae25b325da7933a27f3f75..7d55e2873f231c928734776ef45b14792348e39f 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1552(char *URL)
index 57287885e197a3c191f5754a2701df8eec88ee7d..5a31f48a0956a30c6baa904df1c32495222c130a 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "testtrace.h"
 #include "memdebug.h"
 
index a5e5bde2b7f22e9a3c2c774bb8edc3faa777ffae..2bdb00361544cd4cbb3e2752ea0370dbf7d83e5c 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 struct headerinfo {
index f65fa9fad0f60105e48982cae34aee0c472eb00b..4aeba4085345fb00acbe3502830664d965bc4a44 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1557(char *URL)
index 51829e1d4e537ae9a86b81430209ee8c2a285cc4..a91e14ad0794b4a2dac2d99f440c897f5aac6bb9 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1558(char *URL)
index e933f925c38612693cd0ad1d1c415575f9099598..f1ce42e35c4d386a57a66fe4c5f564a93debe380 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1559(char *URL)
index b2294a112fd549d7abd710f4e8051fae59b2217c..6f3512f2932e19e6ddd3070701a939f0b5472c93 100644 (file)
@@ -35,7 +35,6 @@
 #define USE_IDN
 #endif
 
-#include "testutil.h"
 #include "memdebug.h" /* LAST include file */
 
 static int checkparts(CURLU *u, const char *in, const char *wanted,
index 03fd94014d922a3ab98335b68fae49f17d35f956..620cbbe592f10892fafca71eb2fb8195fa229048 100644 (file)
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 #ifdef HAVE_PTHREAD_H
 #include <pthread.h>
-#include <unistd.h>
 
 #define CONN_NUM 3
 #define TIME_BETWEEN_START_SECS 2
index e3d9053af66371f33897a59a5bba997de1d3c96f..7a402a029324d1a0ab9fa4d83ad0b90c638b7166 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testtrace.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1568(char *URL)
index a1a1d40a8572b4ba23d07a4e0661a3011a433863..a29ed65f68504b33f357d735f6fa23974bdaa76f 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testtrace.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1569(char *URL)
index 562a15761633040ef4773ea8f6be88629d9bcff5..13590c1e94a86447ddf435fcafe32a97c1da03a8 100644 (file)
@@ -29,8 +29,6 @@
 
 #include "first.h"
 
-#include <stdio.h>
-
 #include "memdebug.h"
 
 static size_t consumed = 0;
index 5a108a9f8aedd61c6518b6b07a6451746597e4ea..a64dfb84c28c076deda0600c00d4e28949392bcd 100644 (file)
 
 #include "first.h"
 
-#include "testutil.h"
-
-#include <sys/stat.h>
-
 static CURLcode test_lib1592(char *URL)
 {
   int stillRunning;
index baab3770c3d51ad62c01bf9598d64b013a7cf74d..72b18d4c531cb4b274e36de469e344c072f92b68 100644 (file)
@@ -29,8 +29,6 @@
 
 #include "first.h"
 
-#include <stdio.h>
-
 #include "memdebug.h"
 
 /*
index d7c7c49241da0a40443efec77e019d0df315edcd..24617246b286da2c0d156201939aa242981f26e9 100644 (file)
@@ -23,8 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testtrace.h"
-
 static CURLcode test_lib1599(char *URL)
 {
   CURL *curl;
index 622b20f2451e041f5ba9632add7b731bb3724180..a3932de5b81c1715e77fb7947299e5200bd8789a 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1900(char *URL)
index e3fdd2152d0a5cd5005c307daa9cd5093ef5b14e..d326a2172e10297e8ab8b9c39baf96747eeffc75 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 static size_t t1901_read_cb(char *ptr, size_t size, size_t nmemb, void *stream)
index 79b9ffbd5c05b4a588f3fbb49073786afbe32323..3c99a99a478520a11fbb49db0aff7602d0586c4e 100644 (file)
@@ -23,8 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
-#include "timediff.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1903(char *URL)
index b81ab440fb8d5415f773a07160f7f48306b91b99..abc7a52c716419340c9c04404b2399a783489865 100644 (file)
@@ -23,8 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
-#include "timediff.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1905(char *URL)
index 1f2415e36d29dd4a1fc1b884e1ff972c3012670c..010434be1c40b9f7535d1b6d07c26f0133554d34 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1906(char *URL)
index aad70b9a9e45486a13cfb594abcb7ea1d8f0367c..98d7f68c5302a883c31645e9b2f8bab34fe261be 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1907(char *URL)
index 521b38c003eda1d13e320cc5444adddca1568386..57982b9bd64870c0efafcb37ff26a764471ed936 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1908(char *URL)
index b8779f6a0d15b40de77742e38be9083aa0117d6a..da83f66491f46b76a6cef4e640f206f672591e7b 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1910(char *URL)
index 3d3787744e64a10a7015832328fa4ffb3d46ad15..b9d8c30f1e0728db8660cdfad9a5750bea0b77c6 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 /* The maximum string length limit (CURL_MAX_INPUT_LENGTH) is an internal
index 9eabe2f671d3a1c8e460aefb08bd113ff301b65e..db6c3d1e68109c586eed25c5bf29bb46b52f5f6c 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 #define print_err(name, exp)                                            \
index 76b01b6789360b13576fa0d6b0ae7835c27e5112..b33a5face86f1a971c063b2f92258b592427c7f5 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1913(char *URL)
index 24e79d4014cc7971121211b19509c05d11a2e949..3c4d4bb34df264de91bb0d768497c16d6fac18b2 100644 (file)
@@ -24,7 +24,6 @@
 #include "first.h"
 
 #include "testtrace.h"
-#include "testutil.h"
 #include "memdebug.h"
 
 struct state {
index c70a07bb8c99808e5f53d83fe0737c249a7b3cc1..1f40962cd5d86af56b27c9d1d9b70256b12f0d56 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1918(char *URL)
index 5f718c08aca1142feeb4483165b4d33184dbdad5..e86e6d53c4b74390e876bab7c080e37f7a241041 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1919(char *URL)
index 2df9f119eeff9b0e4239942923414cb626a830d3..4fb72470735a114a1be1c69b981ea7e48b39b4da 100644 (file)
@@ -28,9 +28,6 @@
 #ifdef HAVE_NETINET_IN_H
 #include <netinet/in.h>
 #endif
-#ifndef _WIN32
-#include <sys/socket.h>
-#endif
 #ifdef HAVE_ARPA_INET_H
 #include <arpa/inet.h>
 #endif
index b73db8235440cae49e7814bc8d27e18bcc273e3a..a9294609ac88e0218dfc608640871980a538c521 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 static CURLcode test_lib1977(char *URL)
index 936de928712a5ef8b420d831e10c90d2d5791ec2..a998c7223073d232a1da757f6726a2543e94b65a 100644 (file)
  ***************************************************************************/
 #include "first.h"
 
-#include <limits.h>
-#include <assert.h>
-
-#include "testutil.h"
 #include "memdebug.h"
 
 #define MAX_EASY_HANDLES 3
index 4f25c29116d7d9dab7983d4c14584cd0903d39b0..5d37d74dd3a0f55b5079cfa3492121c94e8b8ab1 100644 (file)
@@ -23,8 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testtrace.h"
-
 static CURLcode test_lib2306(char *URL)
 {
   /* first a fine GET response, then a bad one */
index 26fac9b7f171ee108bebe21006136eceb92bfe0d..a66dcb70ca2b533c1adcd07392db70836ccb0a2c 100644 (file)
@@ -23,8 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testtrace.h"
-
 static size_t cb_curl(char *buffer, size_t size, size_t nmemb, void *userp)
 {
   (void)buffer;
index 928b007f405e041de35fed42467a3117aacc27ba..9145b63965749e756e08d76a456187d26ca78d78 100644 (file)
@@ -23,8 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testtrace.h"
-
 static size_t cb_ignore(char *buffer, size_t size, size_t nmemb, void *userp)
 {
   (void)buffer;
index f633b469a9554e74906842805ffb322f3b9e56d6..db932aac8230905da653669c20668031b02f5344 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 static CURLcode test_lib2402(char *URL)
index 9f0f5aa20e313bf7c77c10d79aa07385f199d325..d4fec33b9bd90b69a0ad57a989660c53d4927840 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 static CURLcode test_lib2404(char *URL)
index 2302ae1fd31084b8da6ebd16890ae6b64393a22e..d93dede6912b49111ff927c0f1b90fefd6d2e18b 100644 (file)
@@ -39,7 +39,6 @@
 
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 /* ---------------------------------------------------------------- */
index 6eb0dd144f1fec37d0d01971b947c3f613ae37c0..fde428397242b794a8fdd84c5a138deb3ead51e4 100644 (file)
@@ -24,7 +24,6 @@
 #include "first.h"
 
 #include "testtrace.h"
-#include "testutil.h"
 #include "memdebug.h"
 
 static CURLcode test_lib2502(char *URL)
index a595deaa6c61a5523c7d1c352131b3264277998e..fb50b97e5324ded82adabde1fda0595227e1e874 100644 (file)
@@ -23,8 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
-
 #define NUM_THREADS 100
 
 #ifdef _WIN32
@@ -101,7 +99,6 @@ cleanup:
 
 #elif defined(HAVE_PTHREAD_H)
 #include <pthread.h>
-#include <unistd.h>
 
 static void *t3026_run_thread(void *ptr)
 {
index 7f79a37bc663e4d98e782f54499dd0acb87b876d..7461e3f22a141855c812df008043fc28ec9fd9a8 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 static CURLcode test_lib3027(char *URL)
index cd9e7a7eab00653e56d1af193fcb1daa0e09d9b6..962997a53e0a8b58dfeb2670f5ff29a6494ded69 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 static CURLcode test_lib3105(char *URL)
index d2e1806af7d2fe4a38bf8a414ac4bf687d7f8c40..e1c4f4b055ed8db6133919d0377225cb9d90ff51 100644 (file)
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
-#include <stdio.h>
-
 #if defined(USE_THREADS_POSIX) || defined(USE_THREADS_WIN32)
 #if defined(USE_THREADS_POSIX)
 #include <pthread.h>
index 55ea21d16e8c9b6cdc21f733ac7fea28ef859393..6dbf9bcadff0950d7ddeb396c4522bde634b88e9 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 static CURLcode test_lib3208(char *URL)
index 0c6feb8c5338e5ca7018aa88527fbbe1f3f1c4d4..a18e6976b9093ba8c69968397ffc742c2fcf2f30 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 /*
index 87e679e908792ecab668206f0ddbeb43cb337297..0598b1bcffc16fd6b212e4aa5542f1eb41f72503 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 /*
index 49afc851e2ad3d293b6ce9ee14b7b25729b51680..a795571cc17950451a9d1744d26a454aa1eec1fe 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 /*
index fd56fe4624adcdcbe3a255eaa045a89952d82374..3ed339fc5f67b1a918d05e35201f9876457a9704 100644 (file)
  ***************************************************************************/
 #include "first.h"
 
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
-
 #include "memdebug.h"
 
 /*
index 23c5b58c3131fca8aba733720e42a77dcb7fdbd1..e6eacfd2ec858bffafdda3ef92276b037b3f269b 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 static CURLcode test_lib507(char *URL)
index 37358c98dcf429121e477664ba6e14a474e26885..776e26184fcec97c70194f0fca78efcc2d9a3d15 100644 (file)
@@ -23,8 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include <string.h>
-
 /*
  * This test uses these funny custom memory callbacks for the only purpose
  * of verifying that curl_global_init_mem() functionality is present in
index a992cb1b87d7a89305431ea0f8c920dddce51aa7..79ada45e54ba448d12317734aed1e3dc8af08eac 100644 (file)
  ***************************************************************************/
 #include "first.h"
 
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
-
 #include "testutil.h"
 #include "memdebug.h"
 
@@ -481,7 +477,7 @@ static CURLcode test_lib518(char *URL)
 {
   (void)URL;
   curl_mprintf("system lacks necessary system function(s)");
-  return 1; /* skip test */
+  return TEST_ERR_MAJOR_BAD; /* skip test */
 }
 
 #endif /* defined(HAVE_GETRLIMIT) && defined(HAVE_SETRLIMIT) */
index 4c49f29fe2ea1c53beeccb02b20220380499a841..0c60710870210a4bfb72fe2171cbd2b5ad055898 100644 (file)
@@ -23,9 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include <fcntl.h>
-
-#include "testutil.h"
 #include "memdebug.h"
 
 static CURLcode test_lib525(char *URL)
index 85221652a45fc4a854a2b3db801ab0f636371be4..de097e1b04739ac59c910efc3822a1d6804a55fd 100644 (file)
@@ -42,9 +42,6 @@
 
 #include "first.h"
 
-#include <fcntl.h>
-
-#include "testutil.h"
 #include "memdebug.h"
 
 static CURLcode test_lib526(char *URL)
index 957efa2d4f259aad90da83a4d5bb28ddf5760970..d971799da831faf768cb696b33e669c7a6e0d259 100644 (file)
@@ -30,8 +30,6 @@
 
 #include "first.h"
 
-#include <fcntl.h>
-
 #include "memdebug.h"
 
 
index 4dae47a85aebba7deddf2a0195cad50787326d7d..064ff9d7a3457f707d31e74ad8ad017f3feda419 100644 (file)
@@ -25,9 +25,6 @@
 
 #include "first.h"
 
-#include <fcntl.h>
-
-#include "testutil.h"
 #include "memdebug.h"
 
 static CURLcode test_lib533(char *URL)
index c4964b82e0b9a2711873b228db330f057f08a34a..ab3f01dd3d7bc3fd418f7aa8faf9194b7f3efc89 100644 (file)
  ***************************************************************************/
 #include "first.h"
 
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
-
 #include "testutil.h"
 #include "memdebug.h"
 
@@ -195,7 +191,7 @@ static int t537_test_rlimit(int keep_open)
    * avoid a low memory condition once the file descriptors are
    * open. System conditions that could make the test fail should
    * be addressed in the precheck phase. This chunk of memory shall
-   * be always free()ed before exiting the test_rlimit() function so
+   * be always free()ed before exiting the t537_test_rlimit() function so
    * that it becomes available to the test.
    */
 
index 9b6f1187323a94cd4044197ae5e9ae23723c4801..1914206972f8493cc14584c4cc7803a1fb6b8d2f 100644 (file)
@@ -32,9 +32,6 @@
 
 #include "first.h"
 
-#include <limits.h>
-
-#include "testutil.h"
 #include "memdebug.h"
 
 #define PROXY libtest_arg2
index 33411117f4dec418af604c001df92bb839d727d6..9ae605a1834c66726021cc0b4f5e2ac7fa333f74 100644 (file)
  ***************************************************************************/
 #include "first.h"
 
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
-
 #include "memdebug.h"
 
 /*
index 9e3a2aa898c8d84c16447386b483c778ece1cb18..cb065d722ac911fd91fc20c15fd45188b2d6bfcb 100644 (file)
  ***************************************************************************/
 #include "first.h"
 
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
-
 #include "memdebug.h"
 
 /*
index 87706c2dff02a3d5445972a3b17af9f83cc9756d..f3e03d6dfd4459a87204ff492feafce72e2d9e5f 100644 (file)
@@ -32,7 +32,6 @@
 
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 static const char uploadthis[] = "this is the blurb we want to upload\n";
index df1eb69cbfaf1ca542225571113a81d8cef5893e..4d3dede6cace62f40008e9aac4082dd670c69e7b 100644 (file)
@@ -29,8 +29,6 @@
 
 #include "first.h"
 
-#include <limits.h>
-
 #ifdef HAVE_LOCALE_H
 #  include <locale.h> /* for setlocale() */
 #endif
index 0b6eb308e628efac09ee4cc7f2b83b40914175df..987dc708adaa20c0248133c7fa71e4640ccbcbf1 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testtrace.h"
 #include "memdebug.h"
 
 static CURLcode test_lib559(char *URL)
index 712820dd52932ba9d1808f4839c69e31ffb3732d..f6a398e17f7c27ee44965c206ac10fc7d620a39a 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 /*
index 5e010784ab3f7dfa2a3ba63fd5e2bc6e1203b08d..c6a391cf6564a334099c937a1c553cc492e7bb0b 100644 (file)
  ***************************************************************************/
 #include "first.h"
 
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
-
 #include "memdebug.h"
 
 /*
index ed64a64fb9ccdfac02dd6b7f220ff0f18fdc3311..9f5035b48587bb09b3fdfd84226701a2005ce69b 100644 (file)
@@ -23,9 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include <fcntl.h>
-
-#include "testutil.h"
 #include "memdebug.h"
 
 static CURLcode test_lib564(char *URL)
index e69ab97798ea819979c014af3a298ab44a590aa6..b0e8b610d2e60c4fc6d3fd20220bc34f9b34245e 100644 (file)
  ***************************************************************************/
 #include "first.h"
 
-#ifdef HAVE_SYS_STAT_H
-#include <sys/stat.h>
-#endif
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
-
 #include "testutil.h"
 #include "memdebug.h"
 
index 865b158adfc8bf9a0715e2273f63b182f1acc92e..4a8d805bf0f4ec3d403d557321f8997986bb6a10 100644 (file)
 #include "first.h"
 
 #ifdef HAVE_NETINET_IN_H
-#  include <netinet/in.h>
+#include <netinet/in.h>
 #endif
 #ifdef HAVE_NETDB_H
-#  include <netdb.h>
+#include <netdb.h>
 #endif
 #ifdef HAVE_ARPA_INET_H
-#  include <arpa/inet.h>
-#endif
-#ifdef HAVE_SYS_STAT_H
-#  include <sys/stat.h>
-#endif
-#ifdef HAVE_FCNTL_H
-#  include <fcntl.h>
+#include <arpa/inet.h>
 #endif
 
 #include "testutil.h"
index d03934c93bdaac6aa989c25880326eec5610cac6..cf5fa7c9147fe0d90026306391161dddc284e9e6 100644 (file)
  ***************************************************************************/
 #include "first.h"
 
-#ifdef HAVE_SYS_STAT_H
-#include <sys/stat.h>
-#endif
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
-
 #include "testutil.h"
 #include "memdebug.h"
 
index fa49ae18ffe23abd288fa269da3e4b7fb014fb0b..2cfecc09cca8d0b7cfd7fcfcc1063abd0b84fa45 100644 (file)
@@ -24,7 +24,6 @@
 #include "first.h"
 
 #include "testtrace.h"
-#include "testutil.h"
 #include "memdebug.h"
 
 /*
index a4c1aedb75c2cf6a5fe0e2a30f236f98dae6a76b..e474721778d22f66a60ee7fbba89d1bd5f92f1ed 100644 (file)
@@ -23,9 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include <fcntl.h>
-
-#include "testutil.h"
 #include "memdebug.h"
 
 /* 3x download!
index e52c228aa27b85e8019a321d25cbe39b27861d82..5c58c0a5600b9f89364e5645dc4771d97572ece4 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 struct chunk_data {
index 06216ff1612489abce85c6049a40246f855e6e4a..fbd329b64a6e335dd0f7b88863ec4c958ca53d32 100644 (file)
@@ -23,8 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include <fcntl.h>
-
 #include "memdebug.h"
 
 struct t582_Sockets {
index 691e142e35658ab292e318438f0f412d31ff333f..a68105ea473eb0fd2414eb7bbe79c589cdd3a92c 100644 (file)
@@ -28,8 +28,6 @@
 
 #include "first.h"
 
-#include <sys/stat.h>
-
 #include "memdebug.h"
 
 static CURLcode test_lib583(char *URL)
index 6a9f03f8490ebb6ee6fdcc4ebd52358c6e261cdf..82568babc33a494e4f23c4b41720f0fb0ffff55b 100644 (file)
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
-#include "first.h"
-
 /* lib591 is used for test cases 591, 592, 593 and 594 */
 
-#include <limits.h>
-
-#include <fcntl.h>
+#include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 static CURLcode test_lib591(char *URL)
index 5c11fc8809a4aa7091aa90020f7dc99ba7d30344..0bbc9671d1ffc09e13da87bacaa06fb524abf677 100644 (file)
@@ -23,9 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include <limits.h>
-
-#include "testutil.h"
 #include "memdebug.h"
 
 /*
index f2a00447be8935009b760a80a31f5ad18341e8d9..e1cdb2b335828787b8b18581cd315802093c5bed 100644 (file)
@@ -23,8 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
-#include "warnless.h"
 #include "memdebug.h"
 
 static CURLcode test_lib653(char *URL)
index d0eb222b37a92526ea6dd73edc34e384d7961068..410ab070e9caeefc58c8cdba2f1bb31902bb1166 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 /*
index 941ca7370cacc33e18c21642bacc9f46317d2064..d926c513bb15637f0b9ec03dc0642a3a6168822d 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 /*
index c2f70d859b4641cda062fdb59f1252b3d94505c3..eb3a6bac1c6c23dbfc7cf64625583c8bfaea9c8f 100644 (file)
@@ -23,8 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include <time.h>
-
 #include "memdebug.h"
 
 #define PAUSE_TIME      5
index 48938b5d01165a36b4ba0a62e2bfa419b5eb181a..0da7af317d648bf291c6139ec4651388c9594a8f 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 /*
index aa58ccf234b763e485c9c855fc497f1b0c863040..1b54eb669a94b1f71be000695e19e68b1acc4e27 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 static CURLcode test_lib677(char *URL)
index cc2216e2a9416231b24cbc768cad41552fd0d519..48a54b0527e512fb3d1e852835d01b2525a886ad 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 static int loadfile(const char *filename, void **filedata, size_t *filesize)
index 5623a20b89267eb8b00e1a99e3ac18579a3b42ba..f9ebbf1fa8ca44908414117ced3fe39cdd022af1 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "memdebug.h"
 
 /*
index 27aec1d735a2acc75e929eda7a70faee6f3ccc1e..36b45e764864ccf4f65013c14b1d08c1e8e3c115 100644 (file)
@@ -23,7 +23,6 @@
  ***************************************************************************/
 #include "first.h"
 
-#include "testutil.h"
 #include "testtrace.h"
 #include "memdebug.h"
 
index a3b39517606858660af819ac4b6638d7ef2ce4f3..95dbb456bf103f205195330fcfa1a5a109aaf2ec 100755 (executable)
@@ -205,7 +205,6 @@ print $fh <<HEADER
  ***************************************************************************/
 #include "first.h"
 #include "memdebug.h"
-#include <limits.h>
 
 /* This source code is generated by mk-lib1521.pl ! */
 
index 9d3935cc97c893a332a66ddb1b0f7498aeb39a9a..2c01794fe0ac37acdc052d29a47f7d048439319b 100644 (file)
@@ -37,8 +37,6 @@
 #ifdef HAVE_SYS_SELECT_H
 /* since so many tests use select(), we can just as well include it here */
 #include <sys/select.h>
-#elif defined(HAVE_UNISTD_H)
-#include <unistd.h>
 #endif
 
 #include "curl_printf.h"
index dd2a5a9d3bdbc5b635a680a4f32526e0c72a903f..f7bedff4070664f14a536821dc69d18eab384f7f 100644 (file)
 char *tutil_suburl(const char *base, int i);
 
 #ifdef HAVE_SYS_RESOURCE_H
-#include <sys/resource.h>
+#include <sys/resource.h>  /* for getrlimit() */
 #endif
 
-#include <limits.h>
-
 #if defined(HAVE_GETRLIMIT) && defined(HAVE_SETRLIMIT)
 void tutil_rlim2str(char *buf, size_t len, rlim_t val);
 #endif
index b57ae1d375bc083f047a10262cf27407f5104a4e..8c874ef4e2fa176226aad87b6b5d80e30e52c162 100644 (file)
 
 #include "tool_getparam.h"
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
 #include "memdebug.h" /* LAST include file */
 
 static CURLcode test_tool1394(char *arg)
index bd029c8d189b19987f71e26a4abeb25c875cce45..4d3101fd01585e2cf2fc7b83cd9b635a6a95157f 100644 (file)
 #include "tool_cfgable.h"
 #include "tool_doswin.h"
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
 #include "memdebug.h" /* LAST include file */
 
 #if defined(_WIN32) || defined(MSDOS)
index a2bc7292ed51fb30e1ef6ce0bebb9dd99f72a426..cf8090c304d794dd0f5f6b7d91201b98962a1b2d 100644 (file)
 #include "curlcheck.h"
 
 #ifdef HAVE_NETINET_IN_H
-#  include <netinet/in.h>
+#include <netinet/in.h>
 #endif
 #ifdef HAVE_NETDB_H
-#  include <netdb.h>
+#include <netdb.h>
 #endif
 #ifdef HAVE_ARPA_INET_H
-#  include <arpa/inet.h>
+#include <arpa/inet.h>
 #endif
 
 #include <curlx.h>