Changeset 4893 for pjproject/trunk/pjsip/src/test/tsx_uas_test.c
- Timestamp:
- Aug 19, 2014 7:51:46 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/test/tsx_uas_test.c
r4728 r4893 703 703 } else 704 704 if (pj_stricmp2(&tsx->branch, TEST10_BRANCH_ID)==0 || 705 pj_stricmp2(&tsx->branch, TEST11_BRANCH_ID)==0 ||706 705 pj_stricmp2(&tsx->branch, TEST12_BRANCH_ID)==0) 707 706 { … … 712 711 713 712 if (tsx->status_code != PJSIP_SC_TSX_TRANSPORT_ERROR) { 714 PJ_LOG(3,(THIS_FILE," error: incorrect status code")); 713 PJ_LOG(3,(THIS_FILE," error: incorrect status code" 714 " (expecting %d, got %d)", 715 PJSIP_SC_TSX_TRANSPORT_ERROR, 716 tsx->status_code)); 715 717 test_complete = -170; 716 718 } 717 719 } 718 } 719 720 } else 721 if (pj_stricmp2(&tsx->branch, TEST11_BRANCH_ID)==0) 722 { 723 if (tsx->state == PJSIP_TSX_STATE_TERMINATED) { 724 725 if (!test_complete) 726 test_complete = 1; 727 728 if (tsx->status_code != PJSIP_SC_TSX_TRANSPORT_ERROR && 729 tsx->status_code != PJSIP_SC_OK) 730 { 731 PJ_LOG(3,(THIS_FILE," error: incorrect status code" 732 " (expecting %d, got %d)", 733 PJSIP_SC_TSX_TRANSPORT_ERROR, 734 tsx->status_code)); 735 test_complete = -170; 736 } 737 } 738 } 720 739 } 721 740 … … 1458 1477 ***************************************************************************** 1459 1478 */ 1460 staticint tsx_transport_failure_test(void)1479 int tsx_transport_failure_test(void) 1461 1480 { 1462 1481 struct test_desc … … 1473 1492 { 50, 1500, TEST11_BRANCH_ID, "test11: failed transport in PROCEEDING state (50 ms delay)" }, 1474 1493 { 0, 2500, TEST12_BRANCH_ID, "test12: failed transport in COMPLETED state (no delay)" }, 1475 { 50, 2500, TEST12_BRANCH_ID, "test12: failed transport in COMPLETED state (50 ms delay)" }, 1494 //Not applicable (maybe) 1495 //This test may expect transport failure notification in COMPLETED state. This may not be 1496 //possible because the loop transport can only notify failure when it has something to send, 1497 //while in this case, there is nothing to send because UAS already sends 200/OK 1498 //{ 50, 2500, TEST12_BRANCH_ID, "test12: failed transport in COMPLETED state (50 ms delay)" }, 1476 1499 }; 1477 1500 int i, status; … … 1626 1649 } 1627 1650 1628 1629 1651 /* TEST10_BRANCH_ID: test transport failure in TRYING state. 1630 1652 * TEST11_BRANCH_ID: test transport failure in PROCEEDING state. … … 1658 1680 return 0; 1659 1681 } 1660
Note: See TracChangeset
for help on using the changeset viewer.