Age | Commit message (Collapse) | Author |
|
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.
|
|
I came up with 33 different ways to call it and verify that it returns the
correct return code.
|
|
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.
|
|
|
|
|
|
|
|
|
|
This check verifies that a pointer contains the correct data.
|
|
|
|
|
|
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.
|
|
|
|
|
|
When configure --enable-debug has been used, all files in lib/ are now
built twice and a separate static library crafted for unit-testing will
be linked. The unit tests in the tests/unit subdir will use that
library.
|
|
This is the first approach at doing fairly clean and easy to write and
debug unit tests.
|