Changeset 1451


Ignore:
Timestamp:
Sep 24, 2007 9:16:48 PM (13 years ago)
Author:
bennylp
Message:

Fixed several unit test failures: typecast error on C++ mode, SIP parsing, etc.

Location:
pjproject/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/src/pjnath-test/stun.c

    r1439 r1451  
    638638 
    639639        pos = cmp_buf(buf, (const pj_uint8_t*)v->pdu, len); 
    640         if (pos != -1) { 
     640        if (pos != (unsigned)-1) { 
    641641            PJ_LOG(1,(THIS_FILE, "    Message mismatch at byte %d", pos)); 
    642642            rc = -1060; 
  • pjproject/trunk/pjsip/src/pjsip-ua/sip_reg.c

    r1431 r1451  
    201201 
    202202        pj_strdup_with_null(regc->pool, &tmp, &contact[i]); 
    203         hdr = pjsip_parse_hdr(regc->pool, &CONTACT, tmp.ptr, tmp.slen, NULL); 
     203        hdr = (pjsip_hdr*) 
     204              pjsip_parse_hdr(regc->pool, &CONTACT, tmp.ptr, tmp.slen, NULL); 
    204205        if (hdr == NULL) { 
    205206            PJ_LOG(4,(THIS_FILE, "Invalid Contact URI: \"%.*s\"",  
  • pjproject/trunk/pjsip/src/test-pjsip/msg_test.c

    r1372 r1451  
    10861086        return -1510; 
    10871087 
    1088     if (pj_strcmp2(&hdr->id, "-.!%*_+`'~()<>:\\\"/[]?{}\r\n")) 
     1088    if (pj_strcmp2(&hdr->id, "-.!%*_+`'~()<>:\\\"/[]?{}")) 
    10891089        return -1520; 
    10901090 
  • pjproject/trunk/self-test.mak

    r1330 r1451  
    1515build_test: distclean rm_build_mak build_mak everything cpp_prep cpp_test cpp_post everything 
    1616  
    17 all: build_test pjlib_test pjlib_util_test pjnath_test pjsip_test pjsua_test 
     17run_test: pjlib_test pjlib_util_test pjnath_test pjsip_test pjsua_test 
     18 
     19all: build_test run_test 
    1820 
    1921CPP_DIR=pjlib pjlib-util pjnath pjmedia pjsip 
     
    5860 
    5961pjsua_test: pjsua_config_file pjsua_local_port0 pjsua_ip_addr pjsua_no_tcp pjsua_no_udp pjsua_outbound pjsua_use_ice pjsua_add_codec pjsua_clock_rate pjsua_play_file pjsua_play_tone pjsua_rec_file pjsua_rtp_port pjsua_quality pjsua_ptime pjsua_ectail 
     62        @echo pjsua_test completed successfully 
    6063 
    6164pjsua_config_file: 
Note: See TracChangeset for help on using the changeset viewer.