瀏覽代碼

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 13 年之前
父節點
當前提交
39fb966893
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Plugins/org.commontk.eventadmin/Testing/Cpp/ctkEventAdminImplTestMain.cpp

+ 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("event.impl", "org.commontk.eventadmin");
 
+  fwProps.insert("org.commontk.eventadmin.ThreadPoolSize", 10);
+
   testRunner.init(fwProps);
   return testRunner.run(argc, argv);
 }