From: Jochen Sprickerhof Date: Sun, 10 Oct 2021 09:22:48 +0000 (+0200) Subject: Fix tests on armel X-Git-Tag: archive/raspbian/1.14.0+dfsg-2+rpi1^2~55 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4d08751ad2915ee728e222f73a61493b15f82c72;p=pcl.git Fix tests on armel --- diff --git a/debian/patches/0006-Fix-alignment-in-tests-for-armhf-armel.patch b/debian/patches/0006-Fix-alignment-in-tests-for-armhf-armel.patch new file mode 100644 index 00000000..a87371e8 --- /dev/null +++ b/debian/patches/0006-Fix-alignment-in-tests-for-armhf-armel.patch @@ -0,0 +1,54 @@ +From: Jochen Sprickerhof +Date: Fri, 8 Oct 2021 19:22:51 +0200 +Subject: Fix alignment in tests for armhf/armel + +--- + test/common/test_pointcloud.cpp | 1 + + test/filters/test_crop_hull.cpp | 1 + + test/filters/test_functor_filter.cpp | 2 ++ + 3 files changed, 4 insertions(+) + +diff --git a/test/common/test_pointcloud.cpp b/test/common/test_pointcloud.cpp +index 2e43620..922177d 100644 +--- a/test/common/test_pointcloud.cpp ++++ b/test/common/test_pointcloud.cpp +@@ -16,6 +16,7 @@ using namespace pcl; + + ////////////////////////////////////////////// + struct pointCloudTest : public testing::Test { ++ EIGEN_MAKE_ALIGNED_OPERATOR_NEW + protected: + PointCloud cloud; + }; +diff --git a/test/filters/test_crop_hull.cpp b/test/filters/test_crop_hull.cpp +index d46838a..fcac94c 100644 +--- a/test/filters/test_crop_hull.cpp ++++ b/test/filters/test_crop_hull.cpp +@@ -101,6 +101,7 @@ class PCLCropHullTestFixture : public ::testing::Test + baseOffsetList_.emplace_back(10, 1, 5); + baseOffsetList_.emplace_back(10, 5, 1); + } ++ EIGEN_MAKE_ALIGNED_OPERATOR_NEW + protected: + + void +diff --git a/test/filters/test_functor_filter.cpp b/test/filters/test_functor_filter.cpp +index e4a1190..741ffb1 100644 +--- a/test/filters/test_functor_filter.cpp ++++ b/test/filters/test_functor_filter.cpp +@@ -52,6 +52,7 @@ struct FunctorFilterRandom : public testing::TestWithParam { + + shared_ptr> cloud; + PointCloud out_cloud, negative_cloud, positive_cloud; ++ EIGEN_MAKE_ALIGNED_OPERATOR_NEW + }; + + TEST_P(FunctorFilterRandom, functioning) +@@ -172,6 +173,7 @@ struct FunctorFilterFunctionObject : public ::testing::Test { + cloud.resize(2); + } + PointCloud cloud; ++ EIGEN_MAKE_ALIGNED_OPERATOR_NEW + }; + TYPED_TEST_SUITE_P(FunctorFilterFunctionObject); + diff --git a/debian/patches/0006-Fix-alignment-in-tests-for-armhf.patch b/debian/patches/0006-Fix-alignment-in-tests-for-armhf.patch deleted file mode 100644 index e5d3111b..00000000 --- a/debian/patches/0006-Fix-alignment-in-tests-for-armhf.patch +++ /dev/null @@ -1,46 +0,0 @@ -From: Jochen Sprickerhof -Date: Fri, 8 Oct 2021 19:22:51 +0200 -Subject: Fix alignment in tests for armhf - ---- - test/common/test_pointcloud.cpp | 1 + - test/filters/test_crop_hull.cpp | 1 + - test/filters/test_functor_filter.cpp | 1 + - 3 files changed, 3 insertions(+) - -diff --git a/test/common/test_pointcloud.cpp b/test/common/test_pointcloud.cpp -index 2e43620..922177d 100644 ---- a/test/common/test_pointcloud.cpp -+++ b/test/common/test_pointcloud.cpp -@@ -16,6 +16,7 @@ using namespace pcl; - - ////////////////////////////////////////////// - struct pointCloudTest : public testing::Test { -+ EIGEN_MAKE_ALIGNED_OPERATOR_NEW - protected: - PointCloud cloud; - }; -diff --git a/test/filters/test_crop_hull.cpp b/test/filters/test_crop_hull.cpp -index d46838a..fcac94c 100644 ---- a/test/filters/test_crop_hull.cpp -+++ b/test/filters/test_crop_hull.cpp -@@ -101,6 +101,7 @@ class PCLCropHullTestFixture : public ::testing::Test - baseOffsetList_.emplace_back(10, 1, 5); - baseOffsetList_.emplace_back(10, 5, 1); - } -+ EIGEN_MAKE_ALIGNED_OPERATOR_NEW - protected: - - void -diff --git a/test/filters/test_functor_filter.cpp b/test/filters/test_functor_filter.cpp -index e4a1190..03f541f 100644 ---- a/test/filters/test_functor_filter.cpp -+++ b/test/filters/test_functor_filter.cpp -@@ -172,6 +172,7 @@ struct FunctorFilterFunctionObject : public ::testing::Test { - cloud.resize(2); - } - PointCloud cloud; -+ EIGEN_MAKE_ALIGNED_OPERATOR_NEW - }; - TYPED_TEST_SUITE_P(FunctorFilterFunctionObject); - diff --git a/debian/patches/series b/debian/patches/series index 59d021e5..85e3b3f2 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -3,4 +3,4 @@ 0003-Use-newly-build-libs-when-testing.patch 0004-Disable-failing-tests.patch 0005-Adopt-unit-test-for-i386.patch -0006-Fix-alignment-in-tests-for-armhf.patch +0006-Fix-alignment-in-tests-for-armhf-armel.patch