Author: tabish
Date: Tue Oct 28 17:32:47 2008
New Revision: 708746
URL: http://svn.apache.org/viewvc?rev=708746&view=rev
Log:
Make CPPUnit Tests cleanup the TestSupport data quicker so there are less
threads and sockets hanging around.
Modified:
activemq/activemq-cpp/trunk/src/test/decaf/util/concurrent/ThreadPoolTest.h
Modified:
activemq/activemq-cpp/trunk/src/test/decaf/util/concurrent/ThreadPoolTest.h
URL:
http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/decaf/util/concurrent/ThreadPoolTest.h?rev=708746&r1=708745&r2=708746&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/decaf/util/concurrent/ThreadPoolTest.h
(original)
+++ activemq/activemq-cpp/trunk/src/test/decaf/util/concurrent/ThreadPoolTest.h
Tue Oct 28 17:32:47 2008
@@ -44,7 +44,6 @@
int tasksToComplete;
int complete;
- Mutex mutex;
bool caughtEx;
CountDownLatch* latch;
@@ -128,6 +127,10 @@
public:
+ virtual void setUp() {
+ this->latch = NULL;
+ }
+
virtual void test1();
virtual void test2();