core: forbid handling of the case when src=dst in cv::repeat
This commit is contained in:
@@ -145,3 +145,12 @@ TEST(Core_String, end_method_regression)
|
||||
cv::String new_string(old_string.begin(), old_string.end());
|
||||
EXPECT_EQ(6u, new_string.size());
|
||||
}
|
||||
|
||||
TEST(Core_Copy, repeat_regression_8972)
|
||||
{
|
||||
Mat src = (Mat_<int>(1, 4) << 1, 2, 3, 4);
|
||||
|
||||
ASSERT_ANY_THROW({
|
||||
repeat(src, 5, 1, src);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user