aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/curlcheck.h
AgeCommit message (Collapse)Author
2020-03-24copyright: fix out-of-date copyright ranges and missing headersDaniel Stenberg
Reported by the new script 'scripts/copyright.pl'. The script has a regex whitelist for the files that don't need copyright headers. Removed three (mostly usesless) README files from docs/ Closes #5141
2019-12-01build: Disable Visual Studio warning "conditional expression is constant"Jay Satiro
- Disable warning C4127 "conditional expression is constant" globally in curl_setup.h for when building with Microsoft's compiler. This mainly affects building with the Visual Studio project files found in the projects dir. Prior to this change the cmake and winbuild build systems already disabled 4127 globally for when building with Microsoft's compiler. Also, 4127 was already disabled for all build systems in the limited circumstance of the WHILE_FALSE macro which disabled the warning specifically for while(0). This commit removes the WHILE_FALSE macro and all other cruft in favor of disabling globally in curl_setup. Background: We have various macros that cause 0 or 1 to be evaluated, which would cause warning C4127 in Visual Studio. For example this causes it: #define Curl_resolver_asynch() 1 Full behavior is not clearly defined and inconsistent across versions. However it is documented that since VS 2015 Update 3 Microsoft has addressed this somewhat but not entirely, not warning on while(true) for example. Prior to this change some C4127 warnings occurred when I built with Visual Studio using the generated projects in the projects dir. Closes https://github.com/curl/curl/pull/4658
2018-09-23whitespace fixesViktor Szakats
- 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
2017-05-05tests: fix -Wcast-qual warningsMarcel Raad
Avoid casting string literals to non-const char *.
2016-04-03tests: Fixed header files to comply with our code styleSteve Holme
2016-04-03unit: make unit test source code checksrc compliantDaniel Stenberg
2016-02-03URLs: change all http:// URLs to https://Daniel Stenberg
2015-02-03unit1600: unit test for Curl_ntlm_core_mk_nt_hashDaniel Stenberg
2011-09-03fix a bunch of MSVC compiler warningsYang Tse
2011-03-10sources: update source headersDaniel Stenberg
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.
2011-03-04The unit test argument is allowed to be usedDan Fandrich
2011-03-04Added abort_* unit test macrosDan Fandrich
These are for when a test failure makes it impossible to continue running further tests.
2011-01-05Made unit_setup() return an error code to abort the test earlyDan Fandrich
This makes it possible to skip the call to unit_stop() in such cases. Also use Curl_safefree() in unit test 1302 so it will pass the memory torture test.
2011-01-04curlcheck.h: add fail()Daniel Stenberg
fail is a new function/macro that a test case can use to indicate a test failure for cases when the standard macros are not sufficient.
2011-01-04curlcheck.h: avoid using NULL pointersDaniel Stenberg
2011-01-04curlcheck.h: add verify_memoryDaniel Stenberg
This check verifies that a pointer contains the correct data.
2011-01-04curlcheck.h: add newlines in error messagesDaniel Stenberg
2011-01-03curlcheck.h: add fail_if() fix codeDaniel Stenberg
The UNITTEST_START and UNITTEST_STOP defines needed to do a new brace level so that test cases can declare variables fine and still remain fine C89 code.
2011-01-03unittest: framework for unit-testingDaniel Stenberg
This is the first approach at doing fairly clean and easy to write and debug unit tests.