Commit 2c2b1405 authored by Vladislav Sovrasov's avatar Vladislav Sovrasov

Add test for Mat_::release()

parent 00374543
...@@ -1725,4 +1725,12 @@ TEST(Core_Mat_array, SplitMerge) ...@@ -1725,4 +1725,12 @@ TEST(Core_Mat_array, SplitMerge)
EXPECT_EQ(0, countNonZero(diff)); EXPECT_EQ(0, countNonZero(diff));
} }
} }
#endif #endif
\ No newline at end of file
TEST(Mat, regression_8680)
{
Mat_<Point2i> mat(3,1);
ASSERT_EQ(mat.channels(), 2);
mat.release();
ASSERT_EQ(mat.channels(), 2);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment