diff --git a/modules/dnn/test/test_common.hpp b/modules/dnn/test/test_common.hpp index 7d31d798c1..2f9d450a38 100644 --- a/modules/dnn/test/test_common.hpp +++ b/modules/dnn/test/test_common.hpp @@ -276,6 +276,8 @@ static testing::internal::ParamGenerator > dnnBackendsAnd targets.push_back(make_tuple(DNN_BACKEND_OPENCV, DNN_TARGET_OPENCL_FP16)); } #endif + if (targets.empty()) // validate at least CPU mode + targets.push_back(make_tuple(DNN_BACKEND_OPENCV, DNN_TARGET_CPU)); return testing::ValuesIn(targets); }