Navigation



Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • freeDiameter/tests/tests.h

    r3 r1  
    5252#endif /* TEST_TIMEOUT */
    5353
     54static int test_verbosity = 0;
     55
    5456/* Standard includes */
    5557#include <getopt.h>
     
    7476}
    7577
    76 static int test_verbo = 0;
    77 
    7878/* Define the standard check routines */
    7979#define CHECK( _val, _assert ){                         \
    80         if (test_verbo > 0) {                           \
     80        if (test_verbosity > 0) {                       \
    8181                fprintf(stderr,                         \
    8282                        "%s:%-4d: CHECK( " #_assert " == "\
     
    9898/* Minimum inits */
    9999#define INIT_FD() {                                     \
    100         CHECK( 0, fd_lib_init() );                      \
     100        pthread_key_create(&fd_log_thname, free);       \
    101101        fd_log_threadname(basename(__FILE__));          \
    102102        CHECK( 0, fd_dict_init(&fd_g_dict) );           \
     
    111111                switch (c) {
    112112                        case 'd':       /* Increase verbosity of debug messages.  */
    113                                 test_verbo++;
     113                                test_verbosity++;
    114114                                break;
    115115                               
    116                         case 'q':       /* Decrease verbosity.  */
    117                                 test_verbo--;
     116                        case 'q':       /* Decrease verbosity then remove debug messages.  */
     117                                test_verbosity--;
    118118                                break;
    119119                       
     
    126126                }
    127127        }
    128         fd_g_debug_lvl = (test_verbo > 0) ? (test_verbo - 1) : 0;
    129128        if (!no_timeout)
    130129                alarm(TEST_TIMEOUT);
Note: See TracChangeset for help on using the changeset viewer.