From 79c0a12d5c2d4fd8e6bfcf3a632a452239c07fe0 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Sat, 12 Aug 2017 10:02:45 -0400 Subject: Work around float rounding change in gcc 7 on i386 This caused a build failure in the test suite. --- test/libapt/install_progress_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/libapt') diff --git a/test/libapt/install_progress_test.cc b/test/libapt/install_progress_test.cc index b63b4716f..6ba4f3242 100644 --- a/test/libapt/install_progress_test.cc +++ b/test/libapt/install_progress_test.cc @@ -16,7 +16,7 @@ TEST(InstallProgressTest, FancyGetTextProgressStr) EXPECT_EQ("[#.........]", p.GetTextProgressStr(0.1, 12)); EXPECT_EQ("[####......]", p.GetTextProgressStr(0.4999, 12)); EXPECT_EQ("[#####.....]", p.GetTextProgressStr(0.5001, 12)); - EXPECT_EQ("[#########.]", p.GetTextProgressStr(0.9, 12)); + EXPECT_EQ("[#########.]", p.GetTextProgressStr(0.9001, 12)); EXPECT_EQ("[##########]", p.GetTextProgressStr(1.0, 12)); // deal with incorrect inputs gracefully (or should we die instead?) -- cgit v1.2.3