| 639 | } |
| 640 | |
| 641 | int run_test(int argc, ACE_TCHAR* argv[]) |
| 642 | { |
| 643 | DomainParticipantFactory_var dpf = TheParticipantFactoryWithArgs(argc, argv); |
| 644 | DomainParticipant_var dp = |
| 645 | dpf->create_participant(23, PARTICIPANT_QOS_DEFAULT, 0, |
| 646 | DEFAULT_STATUS_MASK); |
| 647 | |
| 648 | Publisher_var pub = dp->create_publisher(PUBLISHER_QOS_DEFAULT, 0, |
| 649 | DEFAULT_STATUS_MASK); |
| 650 | |
| 651 | DomainParticipant_var dp2 = |
| 652 | dpf->create_participant(23, PARTICIPANT_QOS_DEFAULT, 0, |
| 653 | DEFAULT_STATUS_MASK); |
| 654 | |
| 655 | Subscriber_var sub = dp2->create_subscriber(SUBSCRIBER_QOS_DEFAULT, 0, |
| 656 | DEFAULT_STATUS_MASK); |
| 657 | |
| 658 | TransportRegistry& treg = *TheTransportRegistry; |
| 659 | if (!treg.get_config("t1").is_nil()) { |
| 660 | treg.bind_config("t1", pub); |
| 661 | treg.bind_config("t2", sub); |
| 662 | } |
| 663 | |
| 664 | const bool passed = run_multitopic_test(pub, sub); |
| 665 | |
| 666 | dp->delete_contained_entities(); |
| 667 | dpf->delete_participant(dp); |
| 668 | dp2->delete_contained_entities(); |
| 669 | dpf->delete_participant(dp2); |
| 670 | return passed ? 0 : 1; |
| 671 | } |
| 672 | |
| 673 | int ACE_TMAIN(int argc, ACE_TCHAR* argv[]) |
| 674 | { |
no test coverage detected