Explorar o código

Use a smaller thread pool size for improved test coverage.

Using a smaller size (default is 20) forces the tests to reuse threads
from the pool. This should improve test coverage of the thread pool code.
Sascha Zelzer %!s(int64=13) %!d(string=hai) anos
pai
achega
39fb966893

+ 2 - 0
Plugins/org.commontk.eventadmin/Testing/Cpp/ctkEventAdminImplTestMain.cpp

@@ -63,6 +63,8 @@ int main(int argc, char** argv)
   fwProps.insert("pluginfw.testDir", testpluginDir);
   fwProps.insert("pluginfw.testDir", testpluginDir);
   fwProps.insert("event.impl", "org.commontk.eventadmin");
   fwProps.insert("event.impl", "org.commontk.eventadmin");
 
 
+  fwProps.insert("org.commontk.eventadmin.ThreadPoolSize", 10);
+
   testRunner.init(fwProps);
   testRunner.init(fwProps);
   return testRunner.run(argc, argv);
   return testRunner.run(argc, argv);
 }
 }