1
0
mirror of https://github.com/moparisthebest/curl synced 2025-02-28 09:21:50 -05:00

test suite: libtest header inclusion cleanup

Added missing memoryTracking to test cases 560 and 583. If this triggers
leak detection on these, it only means that previously it was going unnoticed.
This commit is contained in:
Yang Tse 2011-09-06 17:47:54 +02:00
parent 46df51a391
commit c8ba8740b9
33 changed files with 12 additions and 106 deletions

View File

@ -22,6 +22,7 @@
#include "test.h"
#include "testutil.h"
#include "warnless.h"
#include "memdebug.h"
#define MAIN_LOOP_HANG_TIMEOUT 90 * 1000

View File

@ -21,8 +21,6 @@
***************************************************************************/
#include "test.h"
#include <sys/types.h>
#include "testutil.h"
#include "warnless.h"
#include "memdebug.h"

View File

@ -21,8 +21,6 @@
***************************************************************************/
#include "test.h"
#include <sys/types.h>
#include "testutil.h"
#include "warnless.h"
#include "memdebug.h"

View File

@ -24,12 +24,6 @@
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif

View File

@ -20,8 +20,6 @@
*
***************************************************************************/
#include "test.h"
#include <stdlib.h>
#include <ctype.h>
#include <curl/mprintf.h>

View File

@ -21,9 +21,6 @@
***************************************************************************/
#include "test.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_RESOURCE_H
#include <sys/resource.h>
#endif
@ -33,10 +30,8 @@
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif
#ifdef HAVE_STRING_H
#include <string.h>
#endif
#include "warnless.h"
#include "memdebug.h"
#ifndef FD_SETSIZE

View File

@ -21,8 +21,6 @@
***************************************************************************/
#include "test.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "testutil.h"

View File

@ -40,8 +40,6 @@
#include "test.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "testutil.h"

View File

@ -21,16 +21,6 @@
***************************************************************************/
#include "test.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
#ifdef HAVE_STRING_H
#include <string.h>
#endif
#include "testutil.h"
#include "warnless.h"
#include "memdebug.h"

View File

@ -23,8 +23,6 @@
#include "test.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "testutil.h"

View File

@ -21,8 +21,6 @@
***************************************************************************/
#include "test.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "testutil.h"

View File

@ -21,9 +21,6 @@
***************************************************************************/
#include "test.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_RESOURCE_H
#include <sys/resource.h>
#endif
@ -33,10 +30,8 @@
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif
#ifdef HAVE_STRING_H
#include <string.h>
#endif
#include "warnless.h"
#include "memdebug.h"
#if !defined(HAVE_POLL_FINE) && \

View File

@ -21,23 +21,10 @@
***************************************************************************/
#include "test.h"
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include "memdebug.h"
/*

View File

@ -21,23 +21,10 @@
***************************************************************************/
#include "test.h"
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include "memdebug.h"
/*

View File

@ -30,6 +30,7 @@
#include "test.h"
#include "testutil.h"
#include "warnless.h"
#include "memdebug.h"
#define MULTI_PERFORM_HANG_TIMEOUT 60 * 1000

View File

@ -22,6 +22,7 @@
#include "test.h"
#include "warnless.h"
#include "memdebug.h"
/*
* Simply download a HTTPS file!

View File

@ -19,26 +19,12 @@
* KIND, either express or implied.
*
***************************************************************************/
#include "test.h"
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include "memdebug.h"
/*

View File

@ -19,11 +19,8 @@
* KIND, either express or implied.
*
***************************************************************************/
#include "test.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "testutil.h"

View File

@ -19,7 +19,6 @@
* KIND, either express or implied.
*
***************************************************************************/
#include "test.h"
#include "memdebug.h"

View File

@ -19,8 +19,8 @@
* KIND, either express or implied.
*
***************************************************************************/
#include "test.h"
#include "memdebug.h"
/*

View File

@ -19,7 +19,6 @@
* KIND, either express or implied.
*
***************************************************************************/
#include "test.h"
#ifdef HAVE_SYS_STAT_H

View File

@ -19,7 +19,6 @@
* KIND, either express or implied.
*
***************************************************************************/
#include "test.h"
#include <curl/mprintf.h>

View File

@ -19,7 +19,6 @@
* KIND, either express or implied.
*
***************************************************************************/
#include "test.h"
#include <curl/mprintf.h>

View File

@ -19,12 +19,8 @@
* KIND, either express or implied.
*
***************************************************************************/
#include "test.h"
#ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif

View File

@ -19,7 +19,6 @@
* KIND, either express or implied.
*
***************************************************************************/
#include "test.h"
#ifdef HAVE_SYS_STAT_H

View File

@ -19,10 +19,10 @@
* KIND, either express or implied.
*
***************************************************************************/
#include "test.h"
#include "testutil.h"
#include "warnless.h"
#include "memdebug.h"
#define MAIN_LOOP_HANG_TIMEOUT 90 * 1000

View File

@ -19,7 +19,6 @@
* KIND, either express or implied.
*
***************************************************************************/
#include "test.h"
#include "memdebug.h"

View File

@ -19,11 +19,8 @@
* KIND, either express or implied.
*
***************************************************************************/
#include "test.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "testutil.h"

View File

@ -19,8 +19,8 @@
* KIND, either express or implied.
*
***************************************************************************/
#include "test.h"
#include "testutil.h"
#include "memdebug.h"

View File

@ -19,7 +19,6 @@
* KIND, either express or implied.
*
***************************************************************************/
#include "test.h"
#include "memdebug.h"

View File

@ -19,7 +19,6 @@
* KIND, either express or implied.
*
***************************************************************************/
#include "test.h"
#include "memdebug.h"

View File

@ -21,8 +21,6 @@
***************************************************************************/
#include "test.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "testutil.h"

View File

@ -26,9 +26,12 @@
#include "test.h"
#include <unistd.h>
#include <sys/stat.h>
#include "testutil.h"
#include "warnless.h"
#include "memdebug.h"
int test(char *URL)
{
CURLMcode retVal;