diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2011-01-05 23:53:24 -0800 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2011-01-05 23:53:24 -0800 |
commit | ebb9c7ae04f905f86f6beddba06a9b0c3e4e0ac8 (patch) | |
tree | ec81d52e6fdc6d35cb6e8b946a0e3c12c6c4fd18 /tests/unit/unit1301.c | |
parent | 53014175e8dce8bc1ea6fbe00f1da886767d7587 (diff) |
Made unit_setup() return an error code to abort the test early
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.
Diffstat (limited to 'tests/unit/unit1301.c')
-rw-r--r-- | tests/unit/unit1301.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/unit1301.c b/tests/unit/unit1301.c index 6f01e2dae..7de6f069a 100644 --- a/tests/unit/unit1301.c +++ b/tests/unit/unit1301.c @@ -5,7 +5,7 @@ #include "strequal.h" #include "curlcheck.h" -static void unit_setup( void ) {} +static CURLcode unit_setup( void ) {return CURLE_OK;} static void unit_stop( void ) {} UNITTEST_START |