G-API: Adding a skip for failed streaming tests#18819
Conversation
| @@ -35,7 +35,6 @@ void initTestDataPath() | |||
| // Since G-API has no own test data (yet), it is taken from the common space | |||
| const char* testDataPath = getenv("OPENCV_TEST_DATA_PATH"); | |||
There was a problem hiding this comment.
OPENCV_TEST_DATA_PATH
Do we really need that?
It is already handled by ts module (OpenCV testing framework)
There was a problem hiding this comment.
I don't know. Can I get an example or a file where this is used?
There was a problem hiding this comment.
There was a problem hiding this comment.
I looked at the ts.hpp. And findDataFile(call findData) do this step. But i don't understand, how i can to get around addDataSearchPath(...). I can remove initTestDataPath in this case.
| } | ||
|
|
||
| struct GAPI_Streaming: public ::testing::TestWithParam<KernelPackage> { | ||
| GAPI_Streaming() { initTestDataPath(); } |
There was a problem hiding this comment.
Because i get segfault on my local pc.
There was a problem hiding this comment.
Assertion failed) testDataPath != nullptr in function 'initTestDataPath'
" thrown in the test fixture's constructor.
Segmentation fault (core dumped)
There was a problem hiding this comment.
Segfault is here because nobody catched exception.
Need to remove GAPI_Assert(testDataPath != nullptr); line from implementation and make this env variable optional (it make sense to left stdout message).
| GAPI_Assert(testDataPath != nullptr); | ||
|
|
||
| cvtest::addDataSearchPath(testDataPath); | ||
| cvtest::addDataSearchPath("OPENCV_TEST_DATA_PATH"); |
There was a problem hiding this comment.
Wrong change.
environment variable's name != path
There was a problem hiding this comment.
I know. It is my mistake.
15a8851 to
419f101
Compare
| try { | ||
| ccomp.setSource(gapi::wip::make_src<cv::gapi::wip::GCaptureSource> | ||
| (findDataFile("cv/video/768x576.avi"))); | ||
| } catch(...) { |
There was a problem hiding this comment.
Please extract findDataFile() call out of this catch "anything" statement.
There was a problem hiding this comment.
Fixed for all.
| const char* testDataPath = getenv("OPENCV_TEST_DATA_PATH"); | ||
| GAPI_Assert(testDataPath != nullptr); | ||
|
|
||
| cvtest::addDataSearchPath(testDataPath); |
There was a problem hiding this comment.
Assertions are usually used to check assumptions of the code below.
So with removal of assertion you must check/fix the code below:
if (testDataPath)
cvtest::addDataSearchPath(testDataPath);
|
BTW, There are 3 cases left to make green the module tests: |
|
Yes, these tests appeared after merge. |
…ntos-tests G-API: Adding a skip for failed streaming tests * Skip tests * Pathfinding * Pathfinding part 2 * Pathfinding part 3 * Fix review comments
Added a skip for failed streaming tests
Tests failed for standalone centOs build.
Case:
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.
Magic centos commands: