ts(feature): add "--test_threads=<N>" command-line option

This commit is contained in:
Alexander Alekhin
2017-12-27 14:51:03 +00:00
parent 2e33844f0d
commit 5232ea1ee6
3 changed files with 11 additions and 6 deletions
+3 -1
View File
@@ -11,11 +11,13 @@
namespace cvtest {
void checkIppStatus();
extern bool skipUnstableTests;
extern int testThreads;
}
#define CV__TEST_INIT \
cv::ipp::setIppStatus(0); \
cv::theRNG().state = cvtest::param_seed;
cv::theRNG().state = cvtest::param_seed; \
cv::setNumThreads(cvtest::testThreads);
#define CV__TEST_CLEANUP ::cvtest::checkIppStatus();
#define CV__TEST_BODY_IMPL(name) \
{ \