ソースを参照

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);
 }