Navigation


Changeset 480:907b00ae3679 in freeDiameter for freeDiameter/tests/tests.h


Ignore:
Timestamp:
Aug 9, 2010, 6:20:08 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Allow file-based debug in tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freeDiameter/tests/tests.h

    r462 r480  
    127127        int c;
    128128        int no_timeout = 0;
    129         while ((c = getopt (argc, argv, "dqnf:")) != -1) {
     129        while ((c = getopt (argc, argv, "dqnf:F:")) != -1) {
    130130                switch (c) {
    131131                        case 'd':       /* Increase verbosity of debug messages.  */
     
    149149                                break;
    150150                               
     151                        case 'F':       /* Full debug for the functions in file with this name.  */
     152                                #ifdef DEBUG
     153                                fd_debug_one_file = optarg;
     154                                #else /* DEBUG */
     155                                TRACE_DEBUG(INFO, "Error: must compile with DEBUG support to use this feature");
     156                                #endif /* DEBUG */
     157                                break;
     158                               
    151159                        default:        /* bug: option not considered.  */
    152160                                return;
Note: See TracChangeset for help on using the changeset viewer.