> On Fri, 2008-12-12 at 18:13 -0500, Worley, Dale (BL60:9D30) wrote:
> > The failure I am seeing is in
> > SubscribeWithoutEventListSupportRejectedTest.
> > 
> > I've got a general idea what is going wrong:  At some 
> point, the test 
> > RLS is not getting shut down properly, and its listening 
> sockets (TCP 
> > and UDP, 45140 and 45141) remain open.  The next time it is 
> started, 
> > it can't open its sockets.  This is reported in the log file as an 
> > error, but it doesn't stop execution.  However, it will cause 
> > SipUdpServer to abort, as we've seen.
> 
> I don't understand the unit test framework at all well, but 
> there is an example of how to clean up a unit test after it 
> hits an exception in 
> sipXtackLib/src/net/SipSubscribeClientTest.cpp.  A unit test 
> class can have setUp() and tearDown() methods, which are 
> executed before and after every test (even if the test fails 
> an assertion).

That is a good point Dale. I will move all the calls to
freeAllTestFixtures() to the tearDown() method.  Will commit a patch
shortly...  Thanks.
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev

Reply via email to