aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest
AgeCommit message (Collapse)Author
2012-03-20fix several compiler warningsYang Tse
2012-02-07curl_easy_reset: reset the referer stringDaniel Stenberg
When CURLOPT_REFERER has been used, curl_easy_reset() did not properly clear it. Verified with the new test 598 Bug: http://curl.haxx.se/bug/view.cgi?id=3481551 Reported by: Michael Day
2012-01-19testtrace.c: fix compiler warningYang Tse
2012-01-17tests: enable time tracing on tests 500, 573 and 585Yang Tse
2012-01-17tests: testtrace.[ch] provides debug callback for libtest usageYang Tse
Allows tests from the libtest subdir to generate log traces similar to those of curl with --tracetime and --trace-ascii options but with output going to stderr.
2011-12-30removed trailing whitespaceYang Tse
2011-12-20FTP: perform active connections non-blockingGokhan Sengun
1- Two new error codes are introduced. CURLE_FTP_ACCEPT_FAILED to be set whenever ACCEPTing fails because of FTP server connected. CURLE_FTP_ACCEPT_TIMEOUT to be set whenever ACCEPTing timeouts. Neither of these errors are considered fatal and control connection remains OK because it could just be a firewall blocking server to connect to the client. 2- One new setopt option was introduced. CURLOPT_ACCEPTTIMEOUT_MS It sets the maximum amount of time FTP client is going to wait for a server to connect. Internal default accept timeout is 60 seconds.
2011-12-20lib500: verify timers relative each otherDaniel Stenberg
As commit ce896875f8 fixed a timer that accidentally had been moved in code and then returned a bad timer, the lib500.c code (used in test 500 and some others) now verifies 5 timers against each other to verify that they have the correct relative values. We cannot compare against absolute values as the timings will vary a lot.
2011-12-07multi interface: fix block when CONNECT_ONLY option is usedGokhan Sengun
2011-12-04test: verify the opensocket callback for FTPDaniel Stenberg
test 595: for passive FTP test 596: for active FTP
2011-11-25tvdiff_secs(): sub-zero time difference adjustmentYang Tse
Skip a floating point addition operation when integral part of time difference is zero. This avoids potential floating point addition rounding problems while preserving decimal part value.
2011-11-24lib573.c: fix double data type variable comparison with zeroYang Tse
2011-11-17libtest build: add the missing lib586Alejandro Alvarez Ayllon
2011-11-11Active mode FTP test cases with server not establishing data connectionYang Tse
591 -> FTP multi PORT and 425 on upload 592 -> FTP multi PORT and 421 on upload 593 -> FTP multi PORT upload, no data conn and no transient neg. reply 594 -> FTP multi PORT upload, no data conn and no positive prelim. reply 1206 -> FTP PORT and 425 on download 1207 -> FTP PORT and 421 on download 1208 -> FTP PORT download, no data conn and no transient negative reply 1209 -> FTP PORT download, no data conn and no positive preliminary reply
2011-11-06test 590: verify the bug fix in 4851dafcf1Daniel Stenberg
This test is created to verify Rene Bernhardt's patch which makes sure libcurl properly _not_ deals with Negotiate if not asked to even if the proxy says it can serve it.
2011-10-27lib589.c: add CURLOPT_READDATA missing stuffYang Tse
2011-10-26test 589: active FTP upload using multi timeout and EPRT disabled serverYang Tse
2011-10-26multi tests: OOM handling fixes - commit 629d2e34 follow-upYang Tse
2011-10-21multi tests: OOM handling fixesYang Tse
Additionally, improved error checking and logging.
2011-10-19Silenced a compiler warning about an unused variableDan Fandrich
2011-10-16formdata: ack read callback abortDaniel Stenberg
When doing a multipart formpost with a read callback, and that callback returns CURL_READFUNC_ABORT, that return code must be properly propagated back and handled accordingly. Previously it would be handled as a zero byte read which would cause a hang! Added test case 587 to verify. It uses the lib554.c source code with a small ifdef. Reported by: Anton Bychkov Bug: http://curl.haxx.se/mail/lib-2011-10/0097.html
2011-10-10lib540.c: OOM handling fixes making test 540 pass torture testingYang Tse
2011-10-07libcurl: some OOM handling fixesYang Tse
2011-09-28SSL session sharing support addedAlejandro Alvarez
With locking, plus test, plus documentation
2011-09-08lib582.c: fix segfault triggered when torture testing test case 582Yang Tse
2011-09-06test case 583: ensure that test failures don't go unnoticed - follow-upYang Tse
2011-09-06test suite: libtest header inclusion cleanup - follow-upYang Tse
Adjust tests/libtest/Makefile.inc and remove a couple of unused headers from tests/libtest/lib583.c
2011-09-06test case 583: ensure that test failures don't go unnoticedYang Tse
2011-09-06test suite: libtest header inclusion cleanupYang Tse
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.
2011-09-03fix a bunch of MSVC compiler warningsYang Tse
2011-08-29tests: break busy loops in tests 502, 555, and 573Kamil Dudka
2011-08-21MemoryTracking: adjust initialization calling - followupYang Tse
Fix macro definition
2011-08-20MemoryTracking: adjust initialization callingYang Tse
Calling of curl_memdebug() was still done with a pending free()
2011-08-08CURLFORM_BUFFER: insert filename as documentedDaniel Stenberg
A regression where CURLFORM_BUFFER stopped to properly insert the file name part in the formpart. Bug introduced in commit f851f768578dc096. Added CURLFORM_BUFFER use to test 554 to verify this. Bug: http://curl.haxx.se/mail/lib-2011-07/0176.html Reported by: Henry Ludemann
2011-07-26fix compiler warningYang Tse
2011-07-24errno.h inclusion conditionally done in setup_once.hYang Tse
2011-06-27libtests: stop checking for CURLM_CALL_MULTI_PERFORMDaniel Stenberg
CURLM_CALL_MULTI_PERFORM stopped being a valid return code from curl_multi_perform back in 7.20.0. All the libcurl tests are ajusted to this and no longer check for this return code. Makes them simpler.
2011-06-23Added a leap second test to test517Dan Fandrich
2011-06-23parsedate: detect more invalid dates betterDaniel Stenberg
2011-06-17CURLFORM_STREAM: acknowledge CURLFORM_FILENAMEDaniel Stenberg
The CURLFORM_STREAM is documented to only insert a file name (and thus look like a file upload) in the part if CURLFORM_FILENAME is set, but in reality it always inserted a filename="" and if CURLFORM_FILENAME wasn't set, it would insert insert rubbish (or possibly crash). This is now fixed to work as documented, and test 554 has been extended to verify this. Reported by: Sascha Swiercy Bug: http://curl.haxx.se/mail/lib-2011-06/0070.html
2011-06-11write: add return code checks when usedDaniel Stenberg
These were just warnings in test code but it still makes it nicer to not generate them.
2011-06-01makefile: avoid preprocessor definition usage when linkingYang Tse
2011-05-26compiler warning: fixYang Tse
Fix compiler warning: variable was set but never used Fix compiler warning: clobber ignored
2011-05-25unit tests: build adjustmentYang Tse
Also define UNITTESTS macro when building unit test sources. Fixing compiler warning: external definition with no prior declaration
2011-05-24compiler warning: fixYang Tse
Fix compiler warning: external definition with no prior declaration
2011-05-24compiler warning: fixYang Tse
Fix compiler warning: argument is incompatible with corresponding format string conversion
2011-05-19tests: verify OPEN/CLOSESOCKETFUNCTIONYang Tse
Test 585: Fix opensocket return type, and avoid function name clash.
2011-05-18tests: verify OPEN/CLOSESOCKETFUNCTIONDaniel Stenberg
Test 585 and 586 were added. Using a modified lib500.c
2011-04-21Fixed test 1023 when using daily snapshotsDan Fandrich
2011-04-20Fixed test 1022 when using daily snapshotsDan Fandrich