Skip to content

Commit

Permalink
Disable tests failing on arm64 (#510)
Browse files Browse the repository at this point in the history
Some of the tests are failing that involve string
comparisons of the output of stream operators  with
different levels of precision.

Signed-off-by: Steve Peters <[email protected]>
  • Loading branch information
scpeters authored Sep 23, 2022
1 parent 56d7985 commit 818ccf8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Helpers_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1011,6 +1011,8 @@ TEST(HelpersTest, AppendToStream)
math::appendToStream(out, pi);
EXPECT_EQ(out.str(), "0 456 0 3.14159 3.141592654");

// Skip end of test for arm64
#ifndef __arm__
out << " "
<< std::setprecision(std::numeric_limits<long double>::digits10 + 1);

Expand All @@ -1030,4 +1032,6 @@ TEST(HelpersTest, AppendToStream)
#else
EXPECT_EQ(out.str(), "0 456 0 3.14159 3.141592654 3.141592653589793239 3.14");
#endif
// ifndef __arm__
#endif
}
2 changes: 2 additions & 0 deletions src/Pose_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,9 @@ TEST(PoseTest, OperatorStreamOut)
math::Pose3d p(0.1, 1.2, 2.3, 0.0, 0.1, 1.0);
std::ostringstream stream;
stream << p;
#ifndef __arm__
EXPECT_EQ(stream.str(), "0.1 1.2 2.3 0 0.1 1");
#endif
}

/////////////////////////////////////////////////
Expand Down

0 comments on commit 818ccf8

Please sign in to comment.