]> granicus.if.org Git - curl/commitdiff
unit tests: adjust header inclusion order
authorYang Tse <yangsita@gmail.com>
Sat, 21 May 2011 11:22:11 +0000 (13:22 +0200)
committerYang Tse <yangsita@gmail.com>
Sat, 21 May 2011 11:22:11 +0000 (13:22 +0200)
Additionally, prevent multiple inclusions of curl_config.h

tests/unit/unit1300.c
tests/unit/unit1301.c
tests/unit/unit1302.c
tests/unit/unit1303.c
tests/unit/unit1304.c
tests/unit/unit1305.c
tests/unit/unit1307.c

index f4f5f2a549387b00b63b3d0f04306d6c6a1a6756..0589c920ac164a19a999eeb62e216e895e87982d 100644 (file)
  * KIND, either express or implied.
  *
  ***************************************************************************/
-#include <stdlib.h>
-#include "curl_config.h"
-#include "setup.h"
+#include "curlcheck.h"
 
 #include "llist.h"
-#include "curlcheck.h"
 
 struct curl_llist *llist;
 
index 95f4b6aabd6c74d2fbe19d97d5c36d092c6e4a40..47df481a83f07afc13fe9564f1fb85fe5080911c 100644 (file)
  * KIND, either express or implied.
  *
  ***************************************************************************/
-#include <stdlib.h>
-#include "curl_config.h"
-#include "setup.h"
+#include "curlcheck.h"
 
 #include "strequal.h"
-#include "curlcheck.h"
 
 static CURLcode unit_setup( void ) {return CURLE_OK;}
 static void unit_stop( void ) {}
index bc3651627bd1ed22191c375edf6e00938e2674ba..7a61ec0621c51a573951769a2d84d371ca0af5f8 100644 (file)
  * KIND, either express or implied.
  *
  ***************************************************************************/
-#include <stdlib.h>
-#include "curl_config.h"
-#include "setup.h"
+#include "curlcheck.h"
 
 #include "urldata.h"
 #include "url.h" /* for Curl_safefree */
 #include "curl_base64.h"
-#include "curlcheck.h"
 #include "memdebug.h" /* LAST include file */
 
 static struct SessionHandle *data;
index 2b5669d2853d2070fab2963656ed089a02c672d9..f94daf7a67eed22bba4f4b0f67b00079cf51ed07 100644 (file)
  * KIND, either express or implied.
  *
  ***************************************************************************/
-#include <stdlib.h>
-#include "curl_config.h"
-#include "setup.h"
+#include "curlcheck.h"
 
 #include "urldata.h"
 #include "connect.h"
-#include "curlcheck.h"
 #include "memdebug.h" /* LAST include file */
 
 static struct SessionHandle *data;
index 8b3132edca4320b2c7bfc942fd35f8d4dc5b5bb1..3efbe0b8298481bea26bb669619a88faf2be39ff 100644 (file)
  * KIND, either express or implied.
  *
  ***************************************************************************/
-#include <stdlib.h>
-#include "curl_config.h"
-#include "setup.h"
+#include "curlcheck.h"
 
 #include "netrc.h"
-#include "curlcheck.h"
 
 char login[LOGINSIZE];
 char password[PASSWORDSIZE];
index 68c76ceaef37c51905c95681d36f6c60a02f92e4..5900c6dd5480a649c0b4dd8619c27ba65abd7648 100644 (file)
  * KIND, either express or implied.
  *
  ***************************************************************************/
-#include "test.h"
+#include "curlcheck.h"
 
-#ifdef HAVE_SYS_SOCKET_H
-#  include <sys/socket.h>
-#endif
 #ifdef HAVE_NETINET_IN_H
 #  include <netinet/in.h>
 #endif
@@ -39,7 +36,6 @@
 
 #include "hash.h"
 #include "hostip.h"
-#include "curlcheck.h"
 
 #include "curl_memory.h"
 #include "memdebug.h" /* LAST include file */
index 983237e48672f22b64d9d572a37c9460b2899f74..c26e80cd0b857673bfb7e7fd5cab32aa9402b1d9 100644 (file)
  * KIND, either express or implied.
  *
  ***************************************************************************/
-#include "curl_fnmatch.h"
 #include "curlcheck.h"
 
+#include "curl_fnmatch.h"
+
 #define MATCH   CURL_FNMATCH_MATCH
 #define NOMATCH CURL_FNMATCH_NOMATCH
 #define RE_ERR  CURL_FNMATCH_FAIL