From db1672cb6965cdb4ad7dd12844b194025f550349 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 9 Jul 2003 19:32:43 +0000 Subject: removed #ifdef ENABLE_THREADS svn path=/trunk/; revision=21779 --- camel/tests/lib/camel-test.c | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'camel/tests') diff --git a/camel/tests/lib/camel-test.c b/camel/tests/lib/camel-test.c index 76385ec696..41622cb3ea 100644 --- a/camel/tests/lib/camel-test.c +++ b/camel/tests/lib/camel-test.c @@ -5,17 +5,13 @@ #include #include #include +#include #include #include #include -#ifdef ENABLE_THREADS -#include -#endif - #include -#ifdef ENABLE_THREADS /* well i dunno, doesn't seem to be in the headers but hte manpage mentions it */ /* a nonportable checking mutex for glibc, not really needed, just validates the test harness really */ @@ -27,11 +23,6 @@ static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER; #define CAMEL_TEST_LOCK pthread_mutex_lock(&lock) #define CAMEL_TEST_UNLOCK pthread_mutex_unlock(&lock) #define CAMEL_TEST_ID (pthread_self()) -#else -#define CAMEL_TEST_LOCK -#define CAMEL_TEST_UNLOCK -#define CAMEL_TEST_ID (0) -#endif static int setup; static int ok; @@ -57,10 +48,9 @@ static void dump_action(int id, struct _state *s, void *d) { struct _stack *node; - -#ifdef ENABLE_THREADS + printf("\nThread %d:\n", id); -#endif + node = s->state; if (node) { printf("Current action:\n"); @@ -80,13 +70,11 @@ static void die(int sig) indie = 1; printf("\n\nReceived fatal signal %d\n", sig); g_hash_table_foreach(info_table, (GHFunc)dump_action, 0); - -#ifdef ENABLE_THREADS + if (camel_test_verbose > 2) { printf("Attach debugger to pid %d to debug\n", getpid()); sleep(1000); } -#endif } _exit(1); -- cgit v1.2.3