Browse Source

Work around float rounding change in gcc 7 on i386

This caused a build failure in the test suite.
tags/debian/1.5_beta2
Julian Andres Klode 4 years ago
parent
commit
79c0a12d5c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      test/libapt/install_progress_test.cc

+ 1
- 1
test/libapt/install_progress_test.cc View File

@@ -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?)


Loading…
Cancel
Save