summaryrefslogtreecommitdiff
path: root/tests/libtest/lib500.c
Commit message (Collapse)AuthorAgeFilesLines
* whitespace fixesViktor Szakats2018-09-231-1/+0
| | | | | | | | | | | - replace tabs with spaces where possible - remove line ending spaces - remove double/triple newlines at EOF - fix a non-UTF-8 character - cleanup a few indentations/line continuations in manual examples Closes https://github.com/curl/curl/pull/3037
* getinfo: add microsecond precise timers for various intervalsPhilip Prindeville2018-05-171-18/+32
| | | | | | | | | | | | | | | | | Provide a set of new timers that return the time intervals using integer number of microseconds instead of floats. The new info names are as following: CURLINFO_APPCONNECT_TIME_T CURLINFO_CONNECT_TIME_T CURLINFO_NAMELOOKUP_TIME_T CURLINFO_PRETRANSFER_TIME_T CURLINFO_REDIRECT_TIME_T CURLINFO_STARTTRANSFER_TIME_T CURLINFO_TOTAL_TIME_T Closes #2495
* code style: use spaces around equals signsDaniel Stenberg2017-09-111-2/+2
|
* checksrc: warn for assignments within if() expressionsDaniel Stenberg2016-12-141-1/+2
| | | | | ... they're already frowned upon in our source code style guide, this now enforces the rule harder.
* tests/libtest: follow our code style guidelines betterDaniel Stenberg2016-04-031-37/+37
| | | | ... checksrc of all test code is pending.
* URLs: change all http:// URLs to https://Daniel Stenberg2016-02-031-1/+1
|
* test585: Fixed NULL pointer dereference in fopenDan Fandrich2014-05-011-35/+36
|
* test 500: workaround low timer resolution on WindowsMarc Hoersken2014-02-011-4/+4
| | | | | | Since the timer resolution is lower, there are actually cases that the compared values are equal. Therefore we check for previous timestamps being greater than the current one instead.
* Revert changes relative to lib/*.[ch] recent renamingYang Tse2013-01-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts renaming and usage of lib/*.h header files done 28-12-2012, reverting 2 commits: f871de0... build: make use of 76 lib/*.h renamed files ffd8e12... build: rename 76 lib/*.h files This also reverts removal of redundant include guard (redundant thanks to changes in above commits) done 2-12-2013, reverting 1 commit: c087374... curl_setup.h: remove redundant include guard This also reverts renaming and usage of lib/*.c source files done 3-12-2013, reverting 3 commits: 13606bb... build: make use of 93 lib/*.c renamed files 5b6e792... build: rename 93 lib/*.c files 7d83dff... build: commit 13606bbfde follow-up 1 Start of related discussion thread: http://curl.haxx.se/mail/lib-2013-01/0012.html Asking for confirmation on pushing this revertion commit: http://curl.haxx.se/mail/lib-2013-01/0048.html Confirmation summary: http://curl.haxx.se/mail/lib-2013-01/0079.html NOTICE: The list of 2 files that have been modified by other intermixed commits, while renamed, and also by at least one of the 6 commits this one reverts follows below. These 2 files will exhibit a hole in history unless git's '--follow' option is used when viewing logs. lib/curl_imap.h lib/curl_smtp.h
* build: make use of 76 lib/*.h renamed filesYang Tse2012-12-281-1/+1
| | | | | | 76 private header files renamed to use our standard naming scheme. This change affects 322 files in libcurl's source tree.
* tests: enable time tracing on tests 500, 573 and 585Yang Tse2012-01-171-1/+8
|
* lib500: verify timers relative each otherDaniel Stenberg2011-12-201-0/+31
| | | | | | | | 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.
* test: verify the opensocket callback for FTPDaniel Stenberg2011-12-041-0/+3
| | | | | test 595: for passive FTP test 596: for active FTP
* fix a bunch of MSVC compiler warningsYang Tse2011-09-031-1/+1
|
* compiler warning: fixYang Tse2011-05-241-1/+1
| | | | Fix compiler warning: external definition with no prior declaration
* tests: verify OPEN/CLOSESOCKETFUNCTIONYang Tse2011-05-191-6/+6
| | | | Test 585: Fix opensocket return type, and avoid function name clash.
* tests: verify OPEN/CLOSESOCKETFUNCTIONDaniel Stenberg2011-05-181-0/+35
| | | | Test 585 and 586 were added. Using a modified lib500.c
* sources: update source headersDaniel Stenberg2011-03-101-3/+15
| | | | | | All C and H files now (should) feature the proper project curl source code header, which includes basic info, a copyright statement and some basic disclaimers.
* remove the CVSish $Id$ linesDaniel Stenberg2010-03-241-1/+0
|
* Addes OOM handling for curl_easy_setopt() calls in testYang Tse2010-02-051-2/+4
|
* include "memdebug.h"Yang Tse2008-09-201-0/+2
|
* - Added CURLINFO_PRIMARY_IP as a new information retrievable withDaniel Stenberg2008-06-061-1/+12
| | | | | | curl_easy_getinfo. It returns a pointer to a string with the most recently used IP address. Modified test case 500 to also verify this feature. The implementing of this feature was sponsored by Lenny Rachitsky at NeuStar.
* Made sure to pass longs in to curl_easy_setopt where necessary in theDan Fandrich2008-05-221-1/+1
| | | | libtest code.
* Add project notice and file IdYang Tse2006-10-251-0/+10
|
* Use curl_global_init() and curl_global_cleanup().Yang Tse2006-10-251-1/+17
| | | | Improve cleanup in case of initialization failure.
* typecast the type to an int on returnDaniel Stenberg2004-02-191-1/+1
|
* return int from test()Daniel Stenberg2004-02-191-1/+1
|
* fixesDaniel Stenberg2002-12-121-10/+11
|
* The first ever attempts to do pure libcurl test casesDaniel Stenberg2002-12-121-0/+12