Bring up of thread manager
facebook::thrift::concurrency::test.ThreadManagerTest::test00
Launch N tasks that block for time T, verify they all complete and that the thread manager cleans up properly
when it goes out of scope
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664725 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/concurrency/test/Tests.cc b/lib/cpp/src/concurrency/test/Tests.cc
index 36f29ff..02e1724 100644
--- a/lib/cpp/src/concurrency/test/Tests.cc
+++ b/lib/cpp/src/concurrency/test/Tests.cc
@@ -3,6 +3,7 @@
#include "ThreadFactoryTests.h"
#include "TimerManagerTests.h"
+#include "ThreadManagerTests.h"
int main(int argc, char** argv) {
@@ -48,5 +49,16 @@
assert(timerManagerTests.test00());
}
+
+ if(runAll || arg.compare("thread-manager") == 0) {
+
+ std::cout << "ThreadManager tests..." << std::endl;
+
+ std::cout << "\t\tThreadManager test00" << std::endl;
+
+ ThreadManagerTests threadManagerTests;
+
+ assert(threadManagerTests.test00());
+ }
}