Fix test failures with CK_FORK=no

This commit is contained in:
Craig E. Despeaux 2014-02-04 14:09:31 -05:00
parent aa3fb2ae7e
commit 1bd95da937
2 changed files with 41 additions and 0 deletions

View File

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

View File

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