MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / run_test

Function run_test

tests/DCPS/MultiTopic/MultiTopicTest.cpp:641–671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

639}
640
641int 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
673int ACE_TMAIN(int argc, ACE_TCHAR* argv[])
674{

Callers 1

ACE_TMAINFunction · 0.70

Calls 9

run_multitopic_testFunction · 0.85
delete_participantMethod · 0.80
create_participantMethod · 0.45
create_publisherMethod · 0.45
create_subscriberMethod · 0.45
is_nilMethod · 0.45
get_configMethod · 0.45
bind_configMethod · 0.45

Tested by

no test coverage detected