From: g0dil Date: Tue, 27 Oct 2009 10:39:45 +0000 (+0000) Subject: PPI: More MultiConnectorMixin disconnect handling tests X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=66101f618adf223cf360dd891f82f6eae37930cb;p=senf.git PPI: More MultiConnectorMixin disconnect handling tests git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1509 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/senf/PPI/AnnotationRouter.test.cc b/senf/PPI/AnnotationRouter.test.cc index d862bd3..9919d22 100644 --- a/senf/PPI/AnnotationRouter.test.cc +++ b/senf/PPI/AnnotationRouter.test.cc @@ -94,19 +94,13 @@ BOOST_AUTO_UNIT_TEST(annotationRouter) sink1.input.disconnect(); BOOST_CHECK_EQUAL(router.connectors().size(), 1u); - + + senf::ppi::connect(router, 1, sink1); + senf::ppi::init(); source.submit(p1); - source.submit(p2); - BOOST_CHECK_EQUAL( sink1.size(), 1u ); - BOOST_CHECK_EQUAL( sink2.size(), 2u ); - -// ppi::connect(router, 1, sink1); -// ppi::init(); -// -// source.submit(p1); -// source.submit(p2); -// BOOST_CHECK_EQUAL( sink1.size(), 2u ); -// BOOST_CHECK_EQUAL( sink2.size(), 3u ); + + BOOST_CHECK_EQUAL( sink1.size(), 2u ); + BOOST_CHECK_EQUAL( sink2.size(), 1u ); } ///////////////////////////////cc.e////////////////////////////////////////