Yang Tse
4f4427ff41
check symbol HAVE_UNISTD_H instead of UNISTD_H to include unistd.h
2006-11-02 00:34:21 +00:00
Yang Tse
905ca77c9e
test 518 is all about testing libcurl functionality
...
when more than FD_SETSIZE file descriptors are open.
This means that if for any reason we are not able to
open more than FD_SETSIZE file descriptors then test
518 should not be run.
test 537 is all about testing libcurl functionality
when the system has nearly exhausted the number of
free file descriptors. Test 537 will try to run with
very few free file descriptors.
2006-11-01 18:33:50 +00:00
Yang Tse
9b2acca63e
Sync comment with code and add three messages more
2006-10-31 01:24:03 +00:00
Yang Tse
afcd9f1b1c
Address some pitfalls in the rlimit() function check that were
...
preventing execution of this test on many platforms
2006-10-30 17:24:31 +00:00
Yang Tse
609044aea2
Compiler warning fix
2006-10-29 21:19:23 +00:00
Yang Tse
32ad212ac9
30 seconds isn't long enough for this test on a loaded server.
2006-10-27 01:58:59 +00:00
Gisle Vanem
125830ab4b
Use proper 'stat' structure for fstat(). I.e. 'struct _stati64' and '_fstati64()'
...
on Win32.
2006-10-26 14:30:11 +00:00
Yang Tse
5b75b423e6
Improved rlimit logic:
...
- Take in account RLIM_INFINITY.
- Verify that soft limit is actually changed when doing so.
- Show errno in case getrlimit or setrlimit fails.
- Keep file descriptors open only while runing this test.
2006-10-26 13:55:24 +00:00
Yang Tse
cd3029f36f
30 seconds isn't long enough for this test on a loaded server.
2006-10-26 09:50:21 +00:00
Yang Tse
b4700f026b
Add project notice and file Id
2006-10-25 09:20:44 +00:00
Yang Tse
d771fa7c48
Compiler warning fix
2006-10-25 08:52:00 +00:00
Yang Tse
384c8f3560
Use curl_global_init() and curl_global_cleanup().
...
Improve cleanup in case of initialization failure.
2006-10-25 05:59:46 +00:00
Yang Tse
c54a4301ee
Abort test if it seems that it would have run forever. This is just to prevent
...
test hanging and actually is an indication that there's a condition that is
not being properly handled at some point in the library.
Remove a pair of braces and adjust indentation appropriately.
2006-10-24 15:51:42 +00:00
Dan Fandrich
9b8b1a68f0
30 seconds isn't long enough for this test on a loaded server.
2006-10-23 19:15:14 +00:00
Daniel Stenberg
90933ac660
rely on the global LDADD instead of having specific ones for every program
2006-10-21 13:00:51 +00:00
Daniel Stenberg
deb81b2ad4
Nir Soffer made the tests/libtest/Makefile.am use a proper variable for all
...
the single test applications' link and dependences, so that you easier can
override those from the command line when using make.
2006-10-21 11:40:04 +00:00
Yang Tse
33acd6f041
Compiler warning fix
2006-10-21 10:54:41 +00:00
Yang Tse
d997ff6aa8
Oops! Actually set the limit to 30 seconds.
2006-10-20 15:45:12 +00:00
Yang Tse
b9ccecf86e
Decrease the posibility of aborting a test which actually is not
...
stale by replacing loop counters with timeouts. In this way the
main loop of the test will be allowed to run up to 30 seconds on
any platform before aborting it.
2006-10-20 15:39:54 +00:00
Yang Tse
19e07771d1
Set loop2 counter limit to 60 on this test to avoid a false positive.
2006-10-19 23:35:52 +00:00
Yang Tse
ef267ab449
Replace tabs with spaces and Compiler warning fix.
2006-10-19 22:49:33 +00:00
Yang Tse
4f6ed683e8
Compiler warning fix
2006-10-19 22:48:33 +00:00
Yang Tse
c818e7064f
When aborting, show loop counter values when more than one counter exists.
2006-10-19 21:12:27 +00:00
Yang Tse
ead6ab2ef7
Abort test if it seems that it would have run forever. This is just to prevent
...
test hanging and actually is an indication that there's a condition that is
not being properly handled at some point in the library.
Loop counter limits might need to be further increased on false positives.
2006-10-19 17:29:25 +00:00
Yang Tse
5df4be1165
Check for USE_WINSOCK instead of WIN32 where the check was done
...
to verify winsock API availability.
2006-10-18 21:05:40 +00:00
Yang Tse
e150150d9f
Remove redundant __CYGWIN__ symbol check
2006-10-11 16:01:16 +00:00
Yang Tse
943f0733bb
Compiler warning fix
2006-10-10 23:58:02 +00:00
Yang Tse
8274447dd9
Call curl_global_cleanup() in all code paths before exiting test
2006-10-10 23:50:37 +00:00
Daniel Stenberg
cbcdd337aa
Added test case 536 in an attempt to add Bogdan Nicula's problematic case
...
with multi interface and pipelining. This test just works and did not repeat
the problem his test code showed, but could still serve as a useful test.
2006-10-09 21:29:53 +00:00
Daniel Stenberg
c144adf77c
used for test 535 too
2006-10-09 21:26:09 +00:00
Yang Tse
15e3dfe1d3
Compiler warning fix
2006-10-09 11:21:40 +00:00
Daniel Stenberg
a1de9367ec
Bogdan Nicula's second test case (posted Sun, 08 Oct 2006) converted to test
...
case 535 and it now runs fine. Again a problem with the pipelining code not
taking all possible (error) conditions into account.
2006-10-09 06:58:05 +00:00
Daniel Stenberg
2ad7fcbc2f
test 534 added in an attempt to repeat Bogdan Nicula's bug...
2006-10-08 10:51:53 +00:00
Daniel Stenberg
2c62dfd124
modified lib533 to accept both URLs on the command line
2006-10-08 08:50:12 +00:00
Daniel Stenberg
befc30bc55
Bogdan Nicula's hanging test case was converted to test case 533 and the test
...
now runs fine.
2006-10-06 21:19:57 +00:00
Daniel Stenberg
552b963e6d
Dmitriy Sergeyev provided an example source code that crashed CVS libcurl
...
but that worked nicely in 7.15.5. I converted it into test case 532 and
fixed the problem.
2006-10-04 21:11:08 +00:00
Daniel Stenberg
ae13c93b7d
Reported in #1561470 ( http://curl.haxx.se/bug/view.cgi?id=1561470 ), libcurl
...
would crash if a bad function sequence was used when shutting down after
using the multi interface (i.e using easy_cleanup after multi_cleanup) so
precautions have been added to make sure it doesn't any more - test case 529
was added to verify.
2006-09-28 21:26:06 +00:00
Yang Tse
5a6c89661a
Cygwin preprocessor adjustments
2006-09-12 01:17:16 +00:00
Daniel Stenberg
29dc39fce1
- Fixed my breakage from earlier today so that doing curl_easy_cleanup() on a
...
handle that is part of a multi handle first removes the handle from the
stack.
- Added CURLOPT_SSL_SESSIONID_CACHE and --no-sessionid to disable SSL
session-ID re-use on demand since there obviously are broken servers out
there that misbehave with session-IDs used.
2006-09-11 17:18:18 +00:00
Gisle Vanem
e134a40208
Added select_test() function to allow selecting on no sockets on
...
Winsock.
2006-09-10 19:01:04 +00:00
Gisle Vanem
145084b699
Print usage in case 'arg2 == NULL'.
2006-09-09 16:55:21 +00:00
Daniel Stenberg
e9160a31e0
removed the comment that isn't valid for this file, just a copy'n paste error
2006-09-08 12:03:55 +00:00
Daniel Stenberg
e3c15fc4b9
test 530 is the first ever HTTP pipelining test for libcurl
2006-09-08 11:56:56 +00:00
Daniel Stenberg
b7eeb6e67f
Major overhaul introducing http pipelining support and shared connection
...
cache within the multi handle.
2006-09-07 21:49:20 +00:00
Yang Tse
b33f47804d
Allow again proper compilation outside of the source tree
2006-08-07 18:06:37 +00:00
Yang Tse
773bec5ae5
Fix compiler warning "enumerated type mixed with another type"
2006-07-17 14:32:19 +00:00
Gisle Vanem
cc5174a89a
Fix "'x' might be used uninitialized in this function" warnings.
2006-06-10 17:35:28 +00:00
Daniel Stenberg
7929600798
stricter type use to please compilers
2006-06-09 08:25:16 +00:00
Daniel Stenberg
6a03ab3ad4
lib525.c does a FTP upload with PORT using multi interface
2006-06-08 22:43:21 +00:00
Daniel Stenberg
7d68101f83
Prevent uploading to a URL that has no file name part.
2006-03-03 13:09:30 +00:00
Gisle Vanem
34a827bbfe
Needs 'struct_stat'. Increased verbosity.
2005-07-28 13:20:27 +00:00
Daniel Stenberg
e3a530eb61
Andrs Garca fixed a warning appearing on windows
2005-05-27 11:01:41 +00:00
Daniel Stenberg
63d109f7be
Olivier reported that even though he used CURLOPT_PORT, libcurl clearly still
...
used the default port. He was right. I fixed the problem and added the test
cases 521, 522 and 523 to verify the fix.
2005-04-18 19:41:04 +00:00
Daniel Stenberg
346992c366
Attempt to make this code more forgiving for systems that doesn't detect
...
the failed connect "immediately".
2005-03-31 14:10:54 +00:00
Daniel Stenberg
d26cfd5791
skip the test of "2094 Nov 6" for now, since the 64bit time_t systems return
...
different values for it...
2005-03-09 07:56:32 +00:00
Daniel Stenberg
702664e959
Dominick Meglio reported that using CURLOPT_FILETIME when transferring a FTP
...
file got a Last-Modified: header written to the data stream, corrupting the
actual data. This was because some conditions from the previous FTP code was
not properly brought into the new FTP code. I fixed and I added test case 520
to verify. (This bug was introduced in 7.13.1)
2005-03-08 08:09:14 +00:00
Daniel Stenberg
6a2e21ec8c
FTP code turned into state machine. Not completely yet, but a good start.
...
The tag 'before_ftp_statemachine' was set just before this commit in case
of future need.
2005-02-09 13:06:40 +00:00
Daniel Stenberg
aacc79a3a3
Use the same work-around for the memdebug stuff as in the command line client,
...
to allow the contents of the env var decide the file name.
2005-01-27 22:40:56 +00:00
Daniel Stenberg
0d0d5e7ee3
Harshal Pradhan fixed changing username/password on a persitent HTTP
...
connection.
2004-12-14 21:22:51 +00:00
Gisle Vanem
e587a56fc0
Use "HAVE_SYS_TYPES_H".
2004-12-01 13:41:22 +00:00
Daniel Stenberg
113531432a
make the "check" actually open all those file desciptors as well to make sure
...
it works, as it has proved to not work in some cases (like on Tor Arntsen's
AIX 5100-06 xlc 5.0 --disable-shared runs).
2004-12-01 10:34:46 +00:00
Daniel Stenberg
0d7446c134
add more info to the stderr output
2004-11-28 08:57:03 +00:00
Daniel Stenberg
be5cc378c8
introducing the client/precheck concept to allow test 518 to *only* run when
...
it actually can run and test the FD_SETSIZE stuff it is meant to test
2004-11-23 09:50:16 +00:00
Daniel Stenberg
a4e1ac7952
David Phillips fix for test 518 and my extension to make it not run on
...
systems that can't run it fine.
2004-11-22 22:26:46 +00:00
Gisle Vanem
cca9fca894
ifdef for portable "/dev/null".
2004-11-19 13:50:41 +00:00
Daniel Stenberg
1a05a90f1c
David Phillips' FD_SETSIZE fix
2004-11-19 08:52:33 +00:00
Daniel Stenberg
66f6f43056
added test case 517: 22 tests of the curl_getdate() function
2004-11-15 21:49:35 +00:00
Daniel Stenberg
59c063dfd3
Fix behaviour when passing NULL to CURLOPT_POSTFIELDS and CURLOPT_HTTPPOST.
2004-11-11 23:11:04 +00:00
Daniel Stenberg
e2fe03df8e
removed trailing whitespace
2004-10-03 08:15:40 +00:00
Daniel Stenberg
23550fe5de
Dan Fandrich's fix to use 127.0.0.1 instead of localhost to not depend on
...
it resolving nicely
2004-09-22 18:21:45 +00:00
Daniel Stenberg
2b1673c9c8
Now the test servers and test cases can run on a custom port number. There's
...
no fixed port numbers in use anymore. Starting now, the default ports the
servers use are 8990 - 8993. There's no option to modify these yet, but
changing the $base option in the top of the runtests.pl script.
2004-09-08 08:08:38 +00:00
Daniel Stenberg
0c54013ee3
An Andres Garcia fix: add a typecast to make it work better
2004-07-14 14:20:53 +00:00
Daniel Stenberg
185baf036b
NOBODY set TRUE after a POST makes a good HEAD now
2004-06-30 11:09:16 +00:00
Daniel Stenberg
7291772b1f
added test case 513
2004-06-21 14:08:48 +00:00
Daniel Stenberg
7e186f9a63
just code formatting and killed whitespace
2004-05-19 09:24:18 +00:00
Daniel Stenberg
0383f7f19d
modified to not leak memory if a libcurl function returns failure, for better
...
memory leak detection
2004-05-17 07:45:20 +00:00
Daniel Stenberg
eb946690d2
make it not leak memory when it returns prematurely
2004-05-17 06:55:04 +00:00
Daniel Stenberg
e2e593a036
clean up properly on failure to enable easier libcurl leak detection
2004-05-14 09:22:12 +00:00
Daniel Stenberg
4ab0d74250
enable memory debugging the same way the curl command line tool already does
2004-05-14 08:40:33 +00:00
Daniel Stenberg
84b52e92f4
simplied the creation of new urls
2004-05-06 13:29:04 +00:00
Daniel Stenberg
58387b91f9
printf %s with plain 'char *', not unsigned ones to silence icc's picky
...
warnings
2004-05-06 10:57:07 +00:00
Daniel Stenberg
707f217b2d
new test case for a simple curl_easy_duphandle() test
2004-04-29 10:56:22 +00:00
Daniel Stenberg
2f53da5e7a
make the loop use a fixed number of attempts to prevent eternal loops
2004-04-27 10:59:43 +00:00
Daniel Stenberg
c3dd928e29
enable verbose as well
2004-04-14 06:53:34 +00:00
Daniel Stenberg
aba6c2b89d
Added test case 511 in an attempt to repeat bug report #934666 "storage leak
...
in ftp.c", but it shows no leaking.
2004-04-14 06:30:37 +00:00
Daniel Stenberg
4e84ac4db8
minor edits to make picky compilers whine less
2004-03-23 08:46:08 +00:00
Daniel Stenberg
f8ff0f6bef
minor variable type fix
2004-03-12 12:05:33 +00:00
Daniel Stenberg
87a1c7033e
removed include stuff now handled by test.h
2004-03-03 10:09:30 +00:00
Daniel Stenberg
6e3fa90c9e
We let this file include more generic headers that many libtests need anyway
...
to reduce the amount of #include stuff in each single libNNN.c file.
unistd.h was added to prevent select() warnings on FreeBSD
2004-03-03 10:09:16 +00:00
Daniel Stenberg
b2cff76722
typecast to int when printfing CURLcode
2004-02-25 15:43:15 +00:00
Daniel Stenberg
8777ba7e42
include sys/select.h to prevent picky compiler warnings when using select()
...
without proto
2004-02-20 08:51:43 +00:00
Daniel Stenberg
7729c63be0
fixed the no-ssl version to return int as well
2004-02-19 15:39:06 +00:00
Daniel Stenberg
eebcf90942
provide protos to the functions to prevent warnings
2004-02-19 13:03:04 +00:00
Daniel Stenberg
fa8ecd3d53
typecast the type to an int on return
2004-02-19 13:00:33 +00:00
Daniel Stenberg
134cb66129
return int from test()
2004-02-19 13:00:05 +00:00
Daniel Stenberg
349a15b089
provide a test() proto
2004-02-19 12:59:57 +00:00
Daniel Stenberg
debbcf81bb
ignore more
2004-02-17 07:57:31 +00:00
Daniel Stenberg
12b71e422f
return an int
2004-02-13 12:18:34 +00:00
Daniel Stenberg
d25a0a1bc8
return an int, not a CURLcode
2004-02-13 12:17:42 +00:00
Daniel Stenberg
b440c6638f
return 'res' to better discover test failures and to stop compiler warnings
...
about it never being used
2004-02-09 08:28:00 +00:00
Daniel Stenberg
648c5b05c0
Uninitialized variable set.
2004-02-09 08:25:48 +00:00
Daniel Stenberg
a5c4442ebf
changed the test() function to return type int
2004-02-05 12:34:17 +00:00
Daniel Stenberg
3d99b566a6
added lib510.c for callback POST using chunked encoding
2004-01-30 09:26:23 +00:00
Daniel Stenberg
3c1bb36193
use the *correct* header!
2004-01-13 08:57:01 +00:00
Daniel Stenberg
206039cb76
fix the include path to point to the libcurl's source dir too for the setup.h
...
inclusion
2004-01-13 07:36:13 +00:00
Daniel Stenberg
4ba05e1128
include setup.h from the lib dir instead to get even more private stuff
...
from the libcurl build, but right now for the USE_SSLEAY define.
2004-01-13 07:35:28 +00:00
Daniel Stenberg
3a61c98b65
Peter Sylvester brought code that now allows a callback to modified the URL
...
even when the multi interface is used, and then libcurl will simulate a
"follow location" to that new URL. Test 509 was added to test this feature.
2004-01-12 15:26:32 +00:00
Daniel Stenberg
b60e0fa97e
David J Meyer's large file support.
2004-01-05 22:29:29 +00:00
Daniel Stenberg
989ec98ebd
modified and corrected test 506
2003-12-16 09:49:36 +00:00
Daniel Stenberg
527850928d
Define TRUE and FALSE unless already present. I've moved away those
...
definitions from the global curl header and thus this needs to do it
themselves.
2003-11-06 13:07:54 +00:00
Daniel Stenberg
245ab7c796
avoid dependence on the order of the fields in the timeval struct, pointed out
...
by Gisle Vanem
2003-10-25 06:03:50 +00:00
Daniel Stenberg
da0b380655
don't select() forever, set a timeout so at least the test fails nice
2003-10-24 20:58:34 +00:00
Daniel Stenberg
f52534522c
test case 508 added to test callback-based POST
2003-10-07 14:43:48 +00:00
Daniel Stenberg
3a5a6038e7
better ignore pattern
2003-08-19 09:38:49 +00:00
Daniel Stenberg
d412724598
test507 for multi with bad host name
2003-08-19 09:37:28 +00:00
Daniel Stenberg
ae66bd1284
ignore lib506 too
2003-08-14 13:00:34 +00:00
Daniel Stenberg
26f5c53be8
test case 506 added, written by Dirk Manske
2003-08-11 06:44:46 +00:00
Daniel Stenberg
449e5bc2ad
CURLDEBUG not MALLOCDEBUG anymore
2003-07-04 16:37:16 +00:00
Daniel Stenberg
6ff5621dd7
more generic
2003-06-10 12:05:12 +00:00
Daniel Stenberg
9a12db1aa2
typecast the setting of the size, as it might be an off_t which is bigger
...
than long and libcurl expects a long...
2003-04-15 14:18:37 +00:00
Daniel Stenberg
4b1203d4c9
include config.h before all system headers, so that _FILE_OFFSET_BITS and
...
similar is set properly by us first
2003-04-15 13:32:26 +00:00
Daniel Stenberg
d37031f14e
ignore lib505 too
2003-04-01 07:13:28 +00:00
Daniel Stenberg
b4e84ca7d2
lib505.c is a new test case for ftp uploading with rename
2003-04-01 07:13:04 +00:00
Daniel Stenberg
8319ea7078
more defensive checking as platforms differ...
2003-03-17 17:20:26 +00:00
Daniel Stenberg
38cf0268c0
use include path from BUILD dir since we want the config.h
2003-03-13 15:54:46 +00:00
Daniel Stenberg
f317f8b149
Add include files to prevent warnings on some (HPUX) systems.
2003-03-12 08:54:45 +00:00
Daniel Stenberg
f8d552dde5
include "config.h" from the lib's private dir
2003-03-12 08:54:11 +00:00
Daniel Stenberg
606f72bb13
Setup include path to the lib dir to enable inclusion of "config.h"
2003-03-12 08:53:44 +00:00
Daniel Stenberg
a302ff1605
string.h keeps the proto for memset() on some platforms, used for FD_ZERO
2003-01-23 19:41:30 +00:00
Daniel Stenberg
2288086695
nah, include test.h instead
2003-01-08 09:37:35 +00:00
Daniel Stenberg
61421b7a8f
include curl.h without directory
2003-01-08 09:33:19 +00:00
Daniel Stenberg
5359bc8083
ignore lib504 too
2003-01-07 09:27:32 +00:00
Daniel Stenberg
5a4c56fc44
don't install the test programs
2002-12-17 09:40:13 +00:00
Daniel Stenberg
2b839853ec
Added test case 504, using multi interface and a local proxy without anything
...
listening on the port we use.
2002-12-16 15:30:10 +00:00
Daniel Stenberg
e0d6ebc2f2
please mr CVS ignore these
2002-12-13 16:24:04 +00:00
Daniel Stenberg
4938991ab8
set up arg2 to point to argv[2] to be used at will by programs
2002-12-13 16:22:57 +00:00
Daniel Stenberg
13722f536e
added 503
2002-12-13 16:22:17 +00:00
Daniel Stenberg
57f0e3292d
used this to verify bug report 651460
2002-12-13 16:21:18 +00:00
Daniel Stenberg
57572e550f
include files without the curl/ to reduce the risk of us including the wrong
...
set of include files during tests
2002-12-13 14:14:35 +00:00
Daniel Stenberg
d346ba5c3c
lib502.c for multi interface tests on a single URL without select()
2002-12-13 13:40:25 +00:00
Daniel Stenberg
ead065d803
remove test piece
2002-12-12 13:44:26 +00:00
Daniel Stenberg
0f493b6038
fixes
2002-12-12 13:40:16 +00:00
Daniel Stenberg
f26b709c50
link the test tools this way instead
2002-12-12 13:39:02 +00:00
Daniel Stenberg
ae10d9cf22
no more
2002-12-12 13:36:50 +00:00
Daniel Stenberg
7196d784d3
The first ever attempts to do pure libcurl test cases
2002-12-12 12:11:16 +00:00