From: Jochen Sprickerhof Date: Mon, 13 Dec 2021 21:14:08 +0000 (+0100) Subject: Adopt unit tests for arm64 and ppc64el X-Git-Tag: archive/raspbian/1.12.1+dfsg-4+rpi1~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=02f2ae3f0f1346ba589004f1a89a47307262ba3a;p=pcl.git Adopt unit tests for arm64 and ppc64el Gbp-Pq: Name 0007-Adopt-unit-tests-for-arm64-and-ppc64el.patch --- diff --git a/test/common/test_pca.cpp b/test/common/test_pca.cpp index 9c3a64e4..8143a6b6 100644 --- a/test/common/test_pca.cpp +++ b/test/common/test_pca.cpp @@ -53,7 +53,7 @@ TEST(PCA, projection) { pca.project (point, projected); pca.reconstruct (projected, reconstructed); - EXPECT_NEAR_VECTORS (reconstructed.getVector3fMap (), point.getVector3fMap (), 2.5e-4); + EXPECT_NEAR_VECTORS (reconstructed.getVector3fMap (), point.getVector3fMap (), 5e-4); } } @@ -87,7 +87,7 @@ TEST(PCA, cloud_projection) for(std::size_t i = 0; i < cloud.size(); i++) EXPECT_NEAR_VECTORS (cloud[i].getVector3fMap (), cloud_reconstructed[i].getVector3fMap (), - 2.5e-4); + 5e-4); } catch (pcl::InitFailedException &/*e*/) { diff --git a/test/segmentation/test_non_linear.cpp b/test/segmentation/test_non_linear.cpp index 14101827..823070ff 100644 --- a/test/segmentation/test_non_linear.cpp +++ b/test/segmentation/test_non_linear.cpp @@ -73,7 +73,7 @@ TEST (SACSegmentation, Segmentation) EXPECT_NEAR (sphere_coefficients->values[2], 1.24558, 1e-2); EXPECT_NEAR (sphere_coefficients->values[3], 0.0536238, 1e-2); - EXPECT_NEAR (static_cast (inliers->indices.size ()), 3516, 15); + EXPECT_NEAR (static_cast (inliers->indices.size ()), 3516, 18); } //* ---[ */