未验证 提交 5239a48d 编写于 作者: C Claudio Fantacci 提交者: Sérgio Agostinho

Fix test sample consensus under Windows in Debug

The test compiles differntly if the configuration is Release or Debug. In Debug mode, threads are required to finish their task in 15 seconds instead of 1.

Closes 2585
上级 72338f78
......@@ -89,7 +89,12 @@ TEST (SampleConsensus, InfiniteLoop)
cloud.points[idx].z = 0.0;
}
#if defined(DEBUG) || defined(_DEBUG)
boost::posix_time::time_duration delay (0, 0, 15, 0);
#else
boost::posix_time::time_duration delay (0, 0, 1, 0);
#endif
boost::function<bool ()> sac_function;
SampleConsensusModelSpherePtr model (new SampleConsensusModelSphere<PointXYZ> (cloud.makeShared ()));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册