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.
This commit is contained in:
Dan Fandrich
2011-01-05 23:53:24 -08:00
parent 53014175e8
commit ebb9c7ae04
5 changed files with 32 additions and 17 deletions

View File

@@ -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