Changes in freeDiameter/tests/tests.h [29:5ba91682f0bc:10:c5c99c73c2bf] in freeDiameter
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
freeDiameter/tests/tests.h
r29 r10 46 46 #include <pthread.h> 47 47 #include <errno.h> 48 #include <gcrypt.h>49 48 50 49 /* Test timeout duration, unless -n is passed on the command line */ 51 50 #ifndef TEST_TIMEOUT 52 #define TEST_TIMEOUT 30 /* inseconds */51 #define TEST_TIMEOUT 5 /* 5 seconds */ 53 52 #endif /* TEST_TIMEOUT */ 54 53 … … 79 78 struct fd_config * fd_g_config = &conf; 80 79 81 /* gcrypt functions to support posix threads */82 GCRY_THREAD_OPTION_PTHREAD_IMPL;83 84 80 /* Define the standard check routines */ 85 81 #define CHECK( _val, _assert ){ \ … … 103 99 104 100 /* Minimum inits */ 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); \ 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); \ 115 108 } 116 109
Note: See TracChangeset
for help on using the changeset viewer.