Changeset 29:5ba91682f0bc in freeDiameter for freeDiameter/tests/tests.h
- Timestamp:
- Oct 28, 2009, 3:19:50 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
freeDiameter/tests/tests.h
r10 r29 46 46 #include <pthread.h> 47 47 #include <errno.h> 48 #include <gcrypt.h> 48 49 49 50 /* Test timeout duration, unless -n is passed on the command line */ 50 51 #ifndef TEST_TIMEOUT 51 #define TEST_TIMEOUT 5 /* 5seconds */52 #define TEST_TIMEOUT 30 /* in seconds */ 52 53 #endif /* TEST_TIMEOUT */ 53 54 … … 78 79 struct fd_config * fd_g_config = &conf; 79 80 81 /* gcrypt functions to support posix threads */ 82 GCRY_THREAD_OPTION_PTHREAD_IMPL; 83 80 84 /* Define the standard check routines */ 81 85 #define CHECK( _val, _assert ){ \ … … 99 103 100 104 /* Minimum inits */ 101 #define INIT_FD() { \ 102 memset(fd_g_config, 0, sizeof(struct fd_config)); \ 103 CHECK( 0, fd_lib_init() ); \ 104 fd_log_threadname(basename(__FILE__)); \ 105 CHECK( 0, fd_conf_init() ); \ 106 CHECK( 0, fd_dict_base_protocol(fd_g_config->cnf_dict) ); \ 107 parse_cmdline(argc, argv); \ 105 #define INIT_FD() { \ 106 memset(fd_g_config, 0, sizeof(struct fd_config)); \ 107 CHECK( 0, fd_lib_init() ); \ 108 fd_log_threadname(basename(__FILE__)); \ 109 (void) gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread); \ 110 (void) gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0); \ 111 CHECK( 0, gnutls_global_init()); \ 112 CHECK( 0, fd_conf_init() ); \ 113 CHECK( 0, fd_dict_base_protocol(fd_g_config->cnf_dict) ); \ 114 parse_cmdline(argc, argv); \ 108 115 } 109 116
Note: See TracChangeset
for help on using the changeset viewer.