diff options
author | Julian Andres Klode <jak@debian.org> | 2017-08-12 10:02:45 -0400 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2017-08-12 10:03:26 -0400 |
commit | 79c0a12d5c2d4fd8e6bfcf3a632a452239c07fe0 (patch) | |
tree | 6bf3b559a49505dc8e9bd029d9e0bf23ddcab725 | |
parent | e250a8d8d8ef2f8f8c5e2041f7645c49fba7aa36 (diff) |
Work around float rounding change in gcc 7 on i386
This caused a build failure in the test suite.
-rw-r--r-- | test/libapt/install_progress_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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?) |