https://bugs.kde.org/show_bug.cgi?id=393487

            Bug ID: 393487
           Summary: range(0, 1, 0.2) fails test on x86 (misses 1)
           Product: analitza
           Version: unspecified
          Platform: Compiled Sources
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: core
          Assignee: aleix...@kde.org
          Reporter: awil...@adelielinux.org
  Target Milestone: ---

I'm the KDE maintainer for the Adélie Linux distro, a newer distribution (based
on Alpine) that uses the musl libc.  While building analitza 17.12.2 for the
32-bit x86 architecture:


********* Start testing of CommandsTest *********
Config: Using QtTest library 5.9.3, Qt 5.9.3 (i386-little_endian-ilp32 shared
(dynamic) release build; by GCC 6.4.0)
PASS   : CommandsTest::initTestCase()
PASS   : CommandsTest::testCorrect(simple range)
PASS   : CommandsTest::testCorrect(range(a,b))
FAIL!  : CommandsTest::testCorrect(range(a,b)) Compared values are not the same
   Actual   (last.toString()): "list { 0, 0.2, 0.4, 0.6, 0.8 }"
   Expected (result)         : "list { 0, 0.2, 0.4, 0.6, 0.8, 1 }"
   Loc:
[/usr/src/packages/user/analitza/src/analitza-17.12.2/analitza/tests/commandstest.cpp(422)]


This is the only test that fails.  Trying a simple C program:

#include <stdio.h>

int main(void)
{
        for(double x = 0.0; x <= 1.0; x += 0.2)
                printf("%.02f\n", x);
        return 0;
}


does produce the intended result:

0.00
0.20
0.40
0.60
0.80
1.00


so it doesn't seem like the architecture itself is the problem.  I will note
that Analitza passes its test suite successfully on x86_64, 32-bit PowerPC, and
64-bit PowerPC.  I'm not sure how else to help debug this failure.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to