aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/curlcheck.h
AgeCommit message (Collapse)Author
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.