Daniel Stenberg
d296dd4ee8
sethostname: avoid including unistd.h to duck for warnings
2010-07-30 22:32:57 +02:00
Daniel Stenberg
04eff9beb9
sethostname: ISO C does not allow extra `;' outside of a function
2010-07-30 22:26:19 +02:00
Kamil Dudka
b5c3feda17
NTLM tests: boost coverage by forcing the hostname
...
A shared library tests/libtest/.libs/lihostname.so is preloaded in NTLM
test-cases to override the system implementation of gethostname(). It
makes it possible to test the NTLM authentication for exact match, and
this way test the implementation of MD4 and DES.
If LD_PRELOAD doesn't work, a debug build willl also workk as debug
builds are now made to prefer a specific environment variable and will
then return that content as host name instead of the actual one.
Kamil wrote the bulk of this, Daniel Stenberg polished it.
2010-07-30 00:51:24 +02:00
Kamil Dudka
d63bdba097
test575: do not fail with threaded DNS resolver
2010-06-17 17:07:15 +02:00
Yang Tse
12043e3c9c
fix compiler warning: external declaration in primary source file
2010-05-31 16:58:24 +02:00
Yang Tse
a324fa7b97
fix compiler warning: variable was set but never used
2010-05-31 16:51:36 +02:00
Kamil Dudka
35955179c6
CURL_LLONG_MAX: avoid constant overflow
...
... when (CURL_SIZEOF_CURL_OFF_T == 4)
2010-05-29 21:23:18 +02:00
Kamil Dudka
75743b009b
lib577: avoid redefinition of ERROR
2010-05-28 00:50:11 +02:00
Tor Arntsen
eadeb5bd9a
lib573: do not compare double for exact match
2010-05-27 20:20:08 +02:00
Tor Arntsen
22f3b01478
Test 573: Use correct type for CURLINFO_CONNECT_TIME
...
curl_easy_getinfo() called with a pointer to long instead of double
would sigbus on RISC processors (e.g. MIPS) due to wrong alignment
of pointer address.
2010-05-20 17:12:53 +02:00
Kamil Dudka
2ffe834bff
ftp wildcard: a new option CURLOPT_FNMATCH_DATA
2010-05-16 02:52:33 +02:00
Dan Fandrich
43b816538f
Fixed test 577 to work when --enable-hidden-symbols is configured
2010-05-14 14:42:58 -07:00
Pavel Raiskup
0825cd80a6
FTP: WILDCARDMATCH/CHUNKING/FNMATCH added
2010-05-12 23:17:51 +02:00
Daniel Stenberg
adaf87530d
multi interface: missed storing connection time
...
Dirk Manske reported a regression. When connecting with the multi
interface, there were situations where libcurl wouldn't store
connect time correctly as it used to (and is documented to) do.
Using his fine sample program we could repeat it, and I wrote up
test case 573 using that code. The problem does not easily show
itself using the local test suite though.
The fix, also as suggested by Dirk, is a bit on the ugly side as
it adds yet another call to Curl_verboseconnect() and setting the
TIMER_CONNECT time. That situation is subject for some closer
inspection in the future.
2010-05-07 23:49:29 +02:00
Kamil Dudka
d487ade72c
test536: do not fail with threaded DNS resolver
...
Also tweaked comments in certain examples using curl_multi_fdset().
2010-04-24 12:14:21 +02:00
Dan Fandrich
f38510f4b5
Eliminated an unlikely race condition in some tests.
...
Based on a patch from the FreeBSD ports by Peter Pentchev.
2010-04-15 10:51:03 -07:00
Dan Fandrich
8c6793d79a
Call curl_global_cleanup() in test 560 to avoid a memory leak
2010-03-30 12:52:44 -07:00
Dan Fandrich
643ae2ca8b
Allow test 538 to run even when proxy support is disabled
2010-03-30 11:40:34 -07:00
Daniel Stenberg
05de2cf180
remove all .cvsignore files
2010-03-25 23:22:03 +01:00
Daniel Stenberg
a1a66c7cd6
s/CVS/DEV in the version string from the git repo
2010-03-25 10:38:17 +01:00
Chris Conroy
c869ae7447
remove debug printfs
2010-03-24 15:12:49 +01:00
Daniel Stenberg
8aa68b4cad
remove trace of CVS
2010-03-24 13:27:49 +01:00
Chris Conroy
1ac168e576
Fix RTSP GET_PARAMETER empty and non-empty operation.
...
Test coverage included. Thanks to Massimo Callegari for the bug report
2010-03-24 13:21:14 +01:00
Daniel Stenberg
50b51161c9
s/CVS/DEV/ in the version string for repo versions
2010-03-24 11:30:34 +01:00
Daniel Stenberg
2309b4e330
remove the CVSish $Id$ lines
2010-03-24 11:02:54 +01:00
Daniel Stenberg
b33ddd615a
ignore more files generated when tests run in the source tree
2010-03-23 12:43:42 +01:00
Yang Tse
46b112bcd4
replaced tabs with spaces
2010-02-16 13:32:45 +00:00
Yang Tse
a07bc79117
removed trailing whitespace
2010-02-14 19:40:18 +00:00
Yang Tse
0f4a91afde
OOM handling fix
2010-02-06 13:21:45 +00:00
Yang Tse
2c2464a682
fix compiler warning
2010-02-05 20:52:00 +00:00
Yang Tse
880452d2ed
fix compiler warning
2010-02-05 19:24:22 +00:00
Yang Tse
e3009f2950
fix compiler warning
2010-02-05 19:19:34 +00:00
Yang Tse
cad9c3f55f
Addes OOM handling for curl_easy_setopt() calls in test
2010-02-05 18:07:19 +00:00
Yang Tse
1a5749424b
Fix variable initialization
2010-02-04 14:50:58 +00:00
Yang Tse
a9a5a8e45c
Modified test case 557 to additionally verify libcurl's internal curl_m*printf()
...
functions formatting functionality when handling signed and unsigned shorts.
2010-02-04 14:41:01 +00:00
Yang Tse
381a4d6efe
Fix portability issue related with unaligned memory access
2010-02-03 06:49:27 +00:00
Yang Tse
232d17ec64
avoid possibility of using obsoleted stuff
2010-02-02 12:39:10 +00:00
Yang Tse
bafba6946c
remove setup.h inclusion which is already done from test.h inclusion
2010-02-02 12:36:16 +00:00
Yang Tse
9f6c4daa27
include headers
2010-02-02 07:01:21 +00:00
Yang Tse
ea72194650
Conroy added a check to the coded message size since the docs stipulate
...
that each call will contain a full protocol packet.
2010-02-01 22:14:22 +00:00
Yang Tse
eff18763a1
portability fix
2010-01-28 10:27:09 +00:00
Yang Tse
6259bcd51f
Chris Conroy provided first RTSP tests
2010-01-28 04:58:03 +00:00
Yang Tse
55e68ba333
I removed leading 'curl' path on the 'curlbuild.h' include statement in
...
curl.h, adjusting auto-makefiles include path, to enhance portability to
OS's without an orthogonal directory tree structure such as OS/400.
2009-11-05 15:04:03 +00:00
Daniel Stenberg
223d848104
- Gabriel Kuri reported a problem with CURLINFO_CONTENT_LENGTH_DOWNLOAD if the
...
download was 0 bytes, as libcurl would then return the size as unknown (-1)
and not 0. I wrote a fix and test case 566 to verify it.
2009-10-31 18:51:50 +00:00
Daniel Stenberg
2c0b65d37b
Added test case 566 in an attempt to repeat bug 2884561
...
(http://curl.haxx.se/bug/view.cgi?id=2884561 ) but it seems to work for me...
2009-10-30 22:38:21 +00:00
Daniel Stenberg
d68f215f03
- "Tom" posted a bug report that mentioned how libcurl did wrong when doing a
...
POST using a read callback, with Digest authentication and
"Transfer-Encoding: chunked" enforced. I would then cause the first request
to be wrongly sent and then basically hang until the server closed the
connection. I fixed the problem and added test case 565 to verify it.
2009-10-30 22:24:48 +00:00
Yang Tse
640e49976f
Fix compiler warning: loop without body
2009-10-10 12:29:32 +00:00
Daniel Stenberg
1d92cf1dab
disable the tests that differ between 32 and 64 bit
2009-08-27 18:15:38 +00:00
Daniel Stenberg
be2fcbcbf1
Added a range of new fun date strings to try. This set of dates come from a
...
mail posted to the http-state mailing list, from Adam Barth, and is said to be
the set of date formats the Chrome browser code is tested against:
http://www.ietf.org/mail-archive/web/http-state/current/msg00129.html
libcurl parses most of them identically, but not all of them.
2009-08-12 11:18:55 +00:00
Daniel Stenberg
9cff716925
don't set READDATA since it isn't used and only confuses readers
2009-07-22 22:08:01 +00:00
Bill Hoffman
a8ea1e9ef4
ENH: add optional support for c-ares
2009-07-14 19:03:31 +00:00
Gunter Knauf
f671d0513c
renamed generated config.h to curl_config.h in order to avoid clashes when libcurl is used with other projects which also have a config.h.
2009-07-14 13:25:14 +00:00
Yang Tse
1d97f13462
TrackMemory is another feature not supported by curl-config
2009-06-10 04:06:06 +00:00
Bill Hoffman
744dceaffe
ENH: lower case cmake functions and remove tabs and re-indent cmake code
2009-06-09 17:29:16 +00:00
Yang Tse
8d581f7fe4
Revert delegating c-ares linking magic on libtool and auto-makefiles when using
...
the uninstalled c-ares libtool archive built from the CVS embedded tree.
This embedded c-ares linking is again handled from the configure script.
2009-06-06 13:20:39 +00:00
Yang Tse
13fdb9d8a5
c-ares embbeded builds header include paths fully defined in makefiles
2009-06-04 04:13:39 +00:00
Yang Tse
cd5e6743f7
Delegate c-ares linking magic on libtool and auto-makefiles when using
...
the uninstalled c-ares libtool archive built from the CVS embedded tree.
2009-05-30 15:56:42 +00:00
Yang Tse
90cd2a4753
fix compiler warning: unused variable
2009-05-15 10:16:33 +00:00
Daniel Stenberg
e6e6c6e635
Added test 564 as DISABLED. It is for testing FTP over a SOCK4 proxy using
...
the multi interface, which currently doesn't work because of how the data
connection is not waiting for connect before it tries to do proxy magic.
2009-05-11 11:43:55 +00:00
Yang Tse
c5c03ac556
Fixes for non-ASCII platforms by David McCreedy
2009-05-08 02:14:50 +00:00
Yang Tse
5a91746b80
David McCreedy's "TPF-platform specific changes to various files" patch
2009-05-01 12:39:40 +00:00
Daniel Stenberg
6b95c4e358
- I was going to fix issue #59 in KNOWN_BUGS
...
If the CURLOPT_PORT option is used on an FTP URL like
"ftp://example.com/file;type=A" the ";type=A" is stripped off.
I added test case 562 to verify, only to find out that I couldn't repeat
this bug so I hereby consider it not a bug anymore!
2009-04-30 09:02:39 +00:00
Yang Tse
33a3753c3f
libcurl's memory.h renamed to curl_memory.h
2009-04-21 11:46:16 +00:00
Yang Tse
c382c550e7
fix compiler warning: implicit conversion shortens 64-bit value into a 32-bit value
2009-04-14 12:53:53 +00:00
Yang Tse
c621546bd6
fix compiler warning: implicit conversion shortens 64-bit value into a 32-bit value
2009-04-13 07:18:39 +00:00
Yang Tse
63fad159e8
Skip test #558 and #559 also when using a Win32 DLL
2009-04-09 01:24:41 +00:00
Benoit Neil
e5f1480a38
(Minor update) Added labal prefixes to tests targets
2009-04-08 23:48:07 +00:00
Benoit Neil
25f626cc52
Fixed compile defines in CMake scripts
2009-04-08 11:42:45 +00:00
Daniel Stenberg
c4fba310d2
and include the .inc files in the release tarballs...
2009-04-07 22:07:07 +00:00
Benoit Neil
e9dd099870
Added missing tests in CMake, added Makefile.inc for tests (+ use in CMake scripts), and fixed a missing define under windows in a test source file.
2009-04-07 21:59:15 +00:00
Benoit Neil
b85154f13f
Added tests (exes) targets, refactor a few things.
...
PS: Once again, sorry if the added files have executable perms on Linux.
2009-04-06 21:05:44 +00:00
Dan Fandrich
6bb9ef8de4
Call setlocale() for libtest tests to test the effects of locale-induced
...
libc changes on libcurl.
2009-01-21 04:30:05 +00:00
Dan Fandrich
b2ed1e2607
Fixed an OOM problem with test 560
2008-11-12 22:26:06 +00:00
Daniel Stenberg
d07d1a6ef8
Added test case 560:
...
This test was added after the HTTPS-using-multi-interface with OpenSSL
regression of 7.19.1 to hopefully prevent this embarassing mistake from
appearing again... Unfortunately the bug wasn't triggered by this test, which
presumably is because the connect to a local server is too fast/different
compared to the real/distant servers we saw the bug happen with.
2008-11-11 21:59:25 +00:00
Yang Tse
95a849efc2
terminate with appropriate exit code
2008-11-07 12:22:43 +00:00
Yang Tse
02fc7bb5f6
fix OOM handling
2008-10-31 14:46:48 +00:00
Yang Tse
0ce97f77e0
Use our Curl_addrinfo definition even when an addrinfo struct is available.
...
Use a wrapper function to call system's getaddrinfo().
2008-10-30 13:45:25 +00:00
Yang Tse
b17ca44f0b
fix test # 558 and 559 CFLAGS
2008-10-28 00:35:08 +00:00
Yang Tse
92f3b3895e
test #558 tests internal hash create/destroy
...
test #559 tests internal hash create/add/destroy
2008-10-27 20:01:58 +00:00
Yang Tse
310d842b70
Skip test #558 when libcurl is built with hidden symbols
2008-10-27 14:02:50 +00:00
Yang Tse
1498de83d6
For tracing purposes log a fake call to getaddrinfo
...
when allocating/building the fake Curl_addrinfo.
2008-10-27 08:20:36 +00:00
Yang Tse
39e5fa6ae8
avoid using Curl_ip2addr(), simply build up a fake Curl_addrinfo
2008-10-27 03:00:47 +00:00
Yang Tse
dc289aa4fa
convert test #558 into something more interesting, attempting
...
now to minimally exercise some internal hash routines.
2008-10-26 21:40:20 +00:00
Yang Tse
6db8f53445
test #558 verifies loop operation using malloc() and free()
2008-10-26 03:03:29 +00:00
Dan Fandrich
88513d2d1a
Fixed some compiler warnings with gcc
2008-10-01 17:34:24 +00:00
Dan Fandrich
abe61b9926
Fixed test 539 to handle an out of memory condition that shows up now
...
that memdebug.h is included in the test programs.
2008-09-22 17:20:29 +00:00
Yang Tse
7c9631081d
fix compiler warning: external declaration in primary source file
2008-09-21 03:48:25 +00:00
Yang Tse
7beb473a3d
include "memdebug.h"
2008-09-20 04:26:55 +00:00
Yang Tse
f7ef60c13f
fix compiler warning: external definition with no prior declaration
2008-09-18 19:17:28 +00:00
Yang Tse
8b2bfa4212
fix compiler warning: external definition with no prior declaration
2008-09-18 19:02:40 +00:00
Yang Tse
a6c915aab9
fix compiler warning: external declaration in primary source file
2008-09-18 16:21:09 +00:00
Dan Fandrich
974145f61c
Changed the test data file so it passes an XML syntax check
2008-09-15 22:35:09 +00:00
Daniel Stenberg
780f13db30
Stefan Krause's mail to curl-library at 03 Sep 2008 made me add these two
...
new date strings to get tested too.
2008-09-05 08:15:21 +00:00
Yang Tse
62d94ff342
Fix wrong signed int formatting string directive in test case #557 .
...
This error did not cause test failures on systems where sizeof(int) == sizeof(long).
2008-08-24 17:10:24 +00:00
Yang Tse
95cef39def
Test case 557 now also verifies signed and unsigned int formatting.
2008-08-21 05:19:40 +00:00
Yang Tse
1c68e79091
Simplify condition check
2008-08-20 23:29:07 +00:00
Yang Tse
3e0b6a7d1f
Update test case 557
2008-08-18 18:52:13 +00:00
Yang Tse
2f71461b29
Added test case 557 to verify libcurl's internal curl_m*printf() functions
...
formatting functionality when handling signed and unsigned longs, as well as
our curl_off_t data type.
2008-08-18 09:58:08 +00:00
Dan Fandrich
9ee7a014c9
Handle short reads
2008-08-12 18:32:55 +00:00
Yang Tse
14240e9e10
Initial support of curlbuild.h and curlrules.h which allows
...
to have a curl_off_t data type no longer gated to off_t.
2008-08-07 00:29:08 +00:00