Changeset 555 for pjproject/trunk/pjsip/src/test-pjsip/tsx_uas_test.c
- Timestamp:
- Jun 26, 2006 3:12:55 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/test-pjsip/tsx_uas_test.c
r547 r555 445 445 * TEST4_BRANCH_ID tests receiving retransmissions in TRYING state. 446 446 */ 447 if (tsx->state == PJSIP_TSX_STATE_TERMINATED) { 447 if (tsx->state == PJSIP_TSX_STATE_TRYING) { 448 /* Request is received. */ 449 } else if (tsx->state == PJSIP_TSX_STATE_TERMINATED) { 448 450 449 451 /* Check that status code is status_code. */ 450 452 if (tsx->status_code != TEST4_STATUS_CODE) { 451 PJ_LOG(3,(THIS_FILE, " error: incorrect status code")); 453 PJ_LOG(3,(THIS_FILE, 454 " error: incorrect status code %d " 455 "(expecting %d)", tsx->status_code, 456 TEST4_STATUS_CODE)); 452 457 test_complete = -120; 453 458 } … … 461 466 } else if (tsx->state != PJSIP_TSX_STATE_DESTROYED) 462 467 { 463 PJ_LOG(3,(THIS_FILE, " error: unexpected state")); 468 PJ_LOG(3,(THIS_FILE, " error: unexpected state %s (122)", 469 pjsip_tsx_state_str(tsx->state))); 464 470 test_complete = -122; 465 471 … … 472 478 * TEST5_BRANCH_ID tests receiving retransmissions in PROCEEDING state 473 479 */ 474 if (tsx->state == PJSIP_TSX_STATE_TERMINATED) { 480 if (tsx->state == PJSIP_TSX_STATE_TRYING) { 481 /* Request is received. */ 482 483 } else if (tsx->state == PJSIP_TSX_STATE_TERMINATED) { 475 484 476 485 /* Check that status code is status_code. */ … … 495 504 496 505 } else if (tsx->state != PJSIP_TSX_STATE_DESTROYED) { 497 PJ_LOG(3,(THIS_FILE, " error: unexpected state")); 506 PJ_LOG(3,(THIS_FILE, " error: unexpected state %s (133)", 507 pjsip_tsx_state_str(tsx->state))); 498 508 test_complete = -133; 499 509 … … 505 515 * TEST6_BRANCH_ID tests receiving retransmissions in COMPLETED state 506 516 */ 507 if (tsx->state == PJSIP_TSX_STATE_TERMINATED) { 517 if (tsx->state == PJSIP_TSX_STATE_TRYING) { 518 /* Request is received. */ 519 520 } else if (tsx->state == PJSIP_TSX_STATE_TERMINATED) { 508 521 509 522 /* Check that status code is status_code. */ … … 523 536 tsx->state != PJSIP_TSX_STATE_DESTROYED) 524 537 { 525 PJ_LOG(3,(THIS_FILE, " error: unexpected state")); 538 PJ_LOG(3,(THIS_FILE, " error: unexpected state %s (142)", 539 pjsip_tsx_state_str(tsx->state))); 526 540 test_complete = -142; 527 541 … … 544 558 code = TEST8_STATUS_CODE; 545 559 546 if (tsx->state == PJSIP_TSX_STATE_TERMINATED) { 560 if (tsx->state == PJSIP_TSX_STATE_TRYING) { 561 /* Request is received. */ 562 563 } else if (tsx->state == PJSIP_TSX_STATE_TERMINATED) { 547 564 548 565 if (test_complete == 0) … … 577 594 } else if (tsx->state != PJSIP_TSX_STATE_DESTROYED) { 578 595 579 PJ_LOG(3,(THIS_FILE, " error: unexpected state "));596 PJ_LOG(3,(THIS_FILE, " error: unexpected state (154)")); 580 597 test_complete = -154; 581 598 … … 590 607 */ 591 608 592 if (tsx->state == PJSIP_TSX_STATE_TERMINATED) { 609 if (tsx->state == PJSIP_TSX_STATE_TRYING) { 610 /* Request is received. */ 611 612 } else if (tsx->state == PJSIP_TSX_STATE_TERMINATED) { 593 613 594 614 if (test_complete == 0) … … 638 658 } else if (tsx->state != PJSIP_TSX_STATE_DESTROYED) { 639 659 640 PJ_LOG(3,(THIS_FILE, " error: unexpected state "));660 PJ_LOG(3,(THIS_FILE, " error: unexpected state (166)")); 641 661 test_complete = -166; 642 662 … … 746 766 if (status != PJ_SUCCESS) { 747 767 app_perror(" error: unable to create transaction", status); 748 test_complete = -1 20;768 test_complete = -116; 749 769 return PJ_TRUE; 750 770 } … … 1272 1292 int status; 1273 1293 1274 PJ_LOG(3,(THIS_FILE," test 1: basic sending 2xx final response"));1294 PJ_LOG(3,(THIS_FILE," test3: basic sending 2xx final response")); 1275 1295 1276 1296 status = perform_test("sip:129.0.0.1;transport=loop-dgram",
Note: See TracChangeset
for help on using the changeset viewer.