diff --git a/tests/dispatch_test.cpp b/tests/dispatch_test.cpp index 8bb7fbc41..7137137d1 100644 --- a/tests/dispatch_test.cpp +++ b/tests/dispatch_test.cpp @@ -242,11 +242,16 @@ void DispatchTest::testDispatchUntilFail() this->finishDispatch( >c, "x"); } -void DispatchTest::testSendDispatch() +void DispatchTest::testDispatchMany() { // XXX not a valid test. send not present in Orocos, this looks like 'try' // a program which must not fail, even if the command failes. - string prog = "program x { send space.subspace.test.assert(false) \n }"; + string prog = string("program x { ") + +" do space.subspace.test.instantDone()\n" + +" do space.subspace.test.instantDone()\n" + +" do space.subspace.test.instantDone()\n" + +" do space.subspace.test.instantDone()\n" + +" }"; this->doDispatch( prog, >c ); CPPUNIT_ASSERT( gtc.engine()->programs()->getProgramStatus("x") != ProgramInterface::Status::error ); diff --git a/tests/dispatch_test.hpp b/tests/dispatch_test.hpp index e7729f0ff..18686e1a9 100644 --- a/tests/dispatch_test.hpp +++ b/tests/dispatch_test.hpp @@ -42,6 +42,7 @@ class DispatchTest : public CppUnit::TestFixture CPPUNIT_TEST( testDispatchTry ); CPPUNIT_TEST( testDispatchUntil ); CPPUNIT_TEST( testDispatchUntilFail ); + CPPUNIT_TEST( testDispatchMany ); CPPUNIT_TEST_SUITE_END(); //CPPUNIT_TEST( testSendDispatch ); @@ -74,7 +75,7 @@ class DispatchTest : public CppUnit::TestFixture void testParseDispatch(); void testDispatchCondition(); - void testSendDispatch(); + void testDispatchMany(); void testDispatchFailure(); void testDispatchAnd(); void testDispatchTry();