Navigation


Changeset 892:b2e8f1a3ef76 in freeDiameter for tests


Ignore:
Timestamp:
Nov 19, 2012, 4:58:40 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Allow the content of the Failed-AVP to be parseable to bufferize the message. The content is only padded currently

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/testmesg.c

    r891 r892  
    757757#if 1
    758758                        {
     759                                unsigned char * buftmp = NULL;
    759760                                /* Check the parse or error works as expected */
    760761                                CPYBUF();
     
    767768                                CHECK( EBADMSG, fd_msg_parse_or_error( &msg ) );
    768769                               
     770                                CHECK( 0, fd_msg_bufferize( msg, &buftmp, NULL ) );                             
     771                               
     772                                fd_msg_dump_walk(0, msg);
     773                               
    769774                                TODO("Check the Failed-AVP is as expected");
    770775                               
    771                                 fd_msg_dump_walk(0, msg);
    772776                               
    773777                                /* reset */
    774778                                CHECK( 0, fd_msg_free ( msg ) );
     779                                free(buftmp);
    775780                        }
    776781#endif                 
Note: See TracChangeset for help on using the changeset viewer.