mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-25 10:50:08 +03:00
testapi: Don't set http_proxy environment variable
We already disable network access, so this has no effect.
This commit is contained in:
parent
9fd57df815
commit
cb8ccb1078
@ -157,7 +157,6 @@ if (NOT MSVC)
|
||||
check_include_files(netdb.h HAVE_NETDB_H)
|
||||
check_include_files(netinet/in.h HAVE_NETINET_IN_H)
|
||||
check_include_files(poll.h HAVE_POLL_H)
|
||||
check_function_exists(putenv HAVE_PUTENV)
|
||||
check_function_exists(rand_r HAVE_RAND_R)
|
||||
check_library_exists(dld shl_load "" HAVE_SHLLOAD)
|
||||
check_function_exists(stat HAVE_STAT)
|
||||
|
@ -60,9 +60,6 @@
|
||||
/* Define if <pthread.h> is there */
|
||||
#cmakedefine HAVE_PTHREAD_H 1
|
||||
|
||||
/* Define to 1 if you have the `putenv' function. */
|
||||
#cmakedefine HAVE_PUTENV 1
|
||||
|
||||
/* Define to 1 if you have the `rand_r' function. */
|
||||
#cmakedefine HAVE_RAND_R 1
|
||||
|
||||
|
@ -307,7 +307,7 @@ dnl
|
||||
AC_CHECK_FUNCS(snprintf vsnprintf,, NEED_TRIO=1)
|
||||
|
||||
dnl Checks for library functions.
|
||||
AC_CHECK_FUNCS([gettimeofday ftime stat rand_r isascii mmap munmap putenv])
|
||||
AC_CHECK_FUNCS([gettimeofday ftime stat rand_r isascii mmap munmap])
|
||||
|
||||
AH_VERBATIM([HAVE_MUNMAP_AFTER],[/* mmap() is no good without munmap() */
|
||||
#if defined(HAVE_MMAP) && !defined(HAVE_MUNMAP)
|
||||
|
@ -14,7 +14,7 @@
|
||||
#include "libxml.h"
|
||||
#include <stdio.h>
|
||||
|
||||
#include <stdlib.h> /* for putenv() */
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <libxml/xmlerror.h>
|
||||
#include <libxml/catalog.h>
|
||||
@ -133,11 +133,6 @@ int main(int argc, char **argv) {
|
||||
return(0);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_PUTENV
|
||||
/* access to the proxy can slow up regression tests a lot */
|
||||
putenv((char *) "http_proxy=");
|
||||
#endif
|
||||
|
||||
memset(chartab, 0, sizeof(chartab));
|
||||
strncpy((char *) chartab, " chartab\n", 20);
|
||||
memset(inttab, 0, sizeof(inttab));
|
||||
|
Loading…
x
Reference in New Issue
Block a user