mirror of
https://github.com/curl/curl.git
synced 2026-08-26 22:34:45 +03:00
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:
parent
53014175e8
commit
ebb9c7ae04
5 changed files with 32 additions and 17 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue