routerkeygen / routerkeygenPC

Qt Port for Linux, Mac OSX and Windows
GNU General Public License v3.0
291 stars 89 forks source link

Algorithms test fail on some brands #48

Open peterpt opened 5 years ago

peterpt commented 5 years ago

After compiling the test code to see if everything went fine ahead i got some algorithms test failures .

According to gcc everything went fine : https://pastebin.com/2KN9niNK

However , on the tests i got this :

Start testing of AlgorithmsTest Config: Using QtTest library 5.11.3, Qt 5.11.3 (i386-little_endian-ilp32 shared (dynamic) release build; by GCC 8.2.0) PASS : AlgorithmsTest::initTestCase() PASS : AlgorithmsTest::test() PASS : AlgorithmsTest::testAliceItaly() PASS : AlgorithmsTest::testAliceItaly2() PASS : AlgorithmsTest::testAliceItaly3() PASS : AlgorithmsTest::testAliceItaly4() PASS : AlgorithmsTest::testAliceGermany() PASS : AlgorithmsTest::testArcadyan() PASS : AlgorithmsTest::testArcadyan2() PASS : AlgorithmsTest::testInterCable() FAIL! : AlgorithmsTest::testArnetPirelli() Compared values are not the same Actual (results.at(0)) : "7qp5eq4ekr" Expected (QString("hcckr5ch38")): "hcckr5ch38" Loc: [AlgorithmsTest.cpp(169)] FAIL! : AlgorithmsTest::testArnetPirelli2() Compared values are not the same Actual (results.at(0)) : "7qp5eq4e" Expected (QString("ds7prly5")): "ds7prly5" Loc: [AlgorithmsTest.cpp(182)] PASS : AlgorithmsTest::testBelkin() FAIL! : AlgorithmsTest::testBelkin2() Caught unhandled exception Loc: [qtestcase.cpp(1847)] Totals: 11 passed, 3 failed, 0 skipped, 0 blacklisted, 122ms Finished testing of AlgorithmsTest terminate called after throwing an instance of 'int' Aborted

RealEnder commented 5 years ago

Sorry for the late reply, on 64bit LE system everything passes OK. Will try to hunt this down on i386 build.

peterpt commented 5 years ago

this is an amd 64bit linux .

RealEnder commented 5 years ago

Yes, but with 32bit QT5, see Config line: Config: Using QtTest library 5.11.3, Qt 5.11.3 (i386-little_endian-ilp32 shared (dynamic) release build; by GCC 8.2.0) Try to use 64bit for now, eg mine reads: Config: Using QtTest library 5.11.1, Qt 5.11.1 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 8.2.0)

peterpt commented 5 years ago

ok , i will do the tests here .