Merge pull request #98 from verisign/feature/fix_ck_fork_no

Fix test failures with CK_FORK=no
This commit is contained in:
cedespeaux 2014-02-04 11:14:10 -08:00
commit 75d410cd0b
2 changed files with 41 additions and 0 deletions

View File

@ -33,6 +33,8 @@
struct event_base *event_base = NULL;
getdns_transaction_t transaction_id = 0;
callback_called = 0; /* Initialize counter */
CONTEXT_CREATE(TRUE);
EVENT_BASE_CREATE;
@ -62,6 +64,8 @@
struct event_base *event_base = NULL;
getdns_transaction_t transaction_id = 0;
callback_called = 0; /* Initialize counter */
CONTEXT_CREATE(TRUE);
EVENT_BASE_CREATE;
@ -108,6 +112,13 @@
int odd = 0;
int even = 0;
/*
* Initialize counters
*/
callback_called = 0;
callback_completed = 0;
callback_canceled = 0;
CONTEXT_CREATE(TRUE);
EVENT_BASE_CREATE;
@ -180,6 +191,14 @@
int odd = 0;
int even = 0;
/*
* Initialize counters
*/
callback_called = 0;
callback_completed = 0;
callback_canceled = 0;
CONTEXT_CREATE(TRUE);
EVENT_BASE_CREATE;
@ -255,6 +274,13 @@
int odd = 0;
int even = 0;
/*
* Initialize counters
*/
callback_called = 0;
callback_completed = 0;
callback_canceled = 0;
CONTEXT_CREATE(TRUE);
EVENT_BASE_CREATE;
@ -334,6 +360,13 @@
int odd = 0;
int even = 0;
/*
* Initialize counters
*/
callback_called = 0;
callback_completed = 0;
callback_canceled = 0;
CONTEXT_CREATE(TRUE);
EVENT_BASE_CREATE;

View File

@ -44,6 +44,8 @@
struct event_base *event_base = NULL;
getdns_transaction_t transaction_id = 0;
callback_called = 0; /* Initialize counter */
CONTEXT_CREATE(TRUE);
EVENT_BASE_CREATE;
@ -69,6 +71,8 @@
struct event_base *event_base = NULL;
getdns_transaction_t transaction_id = 0;
callback_called = 0; /* Initialize counter */
CONTEXT_CREATE(TRUE);
EVENT_BASE_CREATE;
@ -97,6 +101,8 @@
struct getdns_dict *address = NULL;
getdns_transaction_t transaction_id = 0;
callback_called = 0; /* Initialize counter */
CONTEXT_CREATE(TRUE);
EVENT_BASE_CREATE;
@ -129,6 +135,8 @@
struct event_base *event_base = NULL;
getdns_transaction_t transaction_id = 0;
callback_called = 0; /* Initialize counter */
CONTEXT_CREATE(TRUE);
EVENT_BASE_CREATE;