Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit tests fail #106

Open
bionade24 opened this issue Dec 30, 2021 · 0 comments
Open

Unit tests fail #106

bionade24 opened this issue Dec 30, 2021 · 0 comments
Assignees

Comments

@bionade24
Copy link
Collaborator

22:38:11: Starting /usr/lib/harbour-contrac-tests/harbour-contrac-tests ...
********* Start testing of Test_Tracing *********
Config: Using QtTest library 5.6.3, Qt 5.6.3 (arm-little_endian-ilp32-qreal_float-eabi-hardfloat shared (dynamic) release build; by GCC 8.3.0 20190222 (Sailfish OS gcc 8.3.0-3))
PASS   : Test_Tracing::initTestCase()
QDEBUG : Test_Tracing::testDtk() [D] Settings::Settings:22 - Settings created:  "/home/defaultuser/.config/harbour-contrac/harbour-contrac-tests.conf"
QDEBUG : Test_Tracing::testDtk() [D] Settings::upgrade:166 - Existing settings file version:  0
QDEBUG : Test_Tracing::testDtk() [D] AppSettings::AppSettings:56 - Pixel ration:  1.75
QDEBUG : Test_Tracing::testDtk() [D] AppSettings::AppSettings:63 - Image folder:  "./qml/images/z1.75/"
QDEBUG : Test_Tracing::testDtk() [D] AppSettings::AppSettings:65 - Settings created:  "/home/defaultuser/.config/harbour-contrac/harbour-contrac-tests.conf"
QDEBUG : Test_Tracing::testDtk() [D] AppSettings::upgrade:264 - Existing settings file version:  0
QDEBUG : Test_Tracing::testDtk() [D] AppSettings::upgradeToVersion1:293 - Upgrading settings to version 1
QDEBUG : Test_Tracing::testDtk() [D] Contrac::~Contrac:42 - ~Contrac
QDEBUG : Test_Tracing::testDtk() [D] Settings::~Settings:31 - Deleted settings
QDEBUG : Test_Tracing::testDtk() [D] AppSettings::~AppSettings:102 - Deleted settings
QDEBUG : Test_Tracing::testDtk() [D] Test_Tracing::cleanup:95 - Removing folder "/home/defaultuser/.config/harbour-contrac/harbour-contrac-tests"
PASS   : Test_Tracing::testDtk()
QDEBUG : Test_Tracing::testRpi() [D] Settings::Settings:22 - Settings created:  "/home/defaultuser/.config/harbour-contrac/harbour-contrac-tests.conf"
QDEBUG : Test_Tracing::testRpi() [D] Settings::upgrade:166 - Existing settings file version:  1
QDEBUG : Test_Tracing::testRpi() [D] AppSettings::AppSettings:56 - Pixel ration:  1.75
QDEBUG : Test_Tracing::testRpi() [D] AppSettings::AppSettings:63 - Image folder:  "./qml/images/z1.75/"
QDEBUG : Test_Tracing::testRpi() [D] AppSettings::AppSettings:65 - Settings created:  "/home/defaultuser/.config/harbour-contrac/harbour-contrac-tests.conf"
QDEBUG : Test_Tracing::testRpi() [D] AppSettings::upgrade:264 - Existing settings file version:  0
QDEBUG : Test_Tracing::testRpi() [D] AppSettings::upgradeToVersion1:293 - Upgrading settings to version 1
QDEBUG : Test_Tracing::testRpi() [D] Contrac::~Contrac:42 - ~Contrac
QDEBUG : Test_Tracing::testRpi() [D] Settings::~Settings:31 - Deleted settings
QDEBUG : Test_Tracing::testRpi() [D] AppSettings::~AppSettings:102 - Deleted settings
QDEBUG : Test_Tracing::testRpi() [D] Test_Tracing::cleanup:95 - Removing folder "/home/defaultuser/.config/harbour-contrac/harbour-contrac-tests"
PASS   : Test_Tracing::testRpi()
QDEBUG : Test_Tracing::testMetadata() [D] Settings::Settings:22 - Settings created:  "/home/defaultuser/.config/harbour-contrac/harbour-contrac-tests.conf"
QDEBUG : Test_Tracing::testMetadata() [D] Settings::upgrade:166 - Existing settings file version:  1
QDEBUG : Test_Tracing::testMetadata() [D] AppSettings::AppSettings:56 - Pixel ration:  1.75
QDEBUG : Test_Tracing::testMetadata() [D] AppSettings::AppSettings:63 - Image folder:  "./qml/images/z1.75/"
QDEBUG : Test_Tracing::testMetadata() [D] AppSettings::AppSettings:65 - Settings created:  "/home/defaultuser/.config/harbour-contrac/harbour-contrac-tests.conf"
QDEBUG : Test_Tracing::testMetadata() [D] AppSettings::upgrade:264 - Existing settings file version:  0
QDEBUG : Test_Tracing::testMetadata() [D] AppSettings::upgradeToVersion1:293 - Upgrading settings to version 1
QDEBUG : Test_Tracing::testMetadata() [D] Contrac::~Contrac:42 - ~Contrac
QDEBUG : Test_Tracing::testMetadata() [D] Settings::~Settings:31 - Deleted settings
QDEBUG : Test_Tracing::testMetadata() [D] AppSettings::~AppSettings:102 - Deleted settings
QDEBUG : Test_Tracing::testMetadata() [D] Test_Tracing::cleanup:95 - Removing folder "/home/defaultuser/.config/harbour-contrac/harbour-contrac-tests"
PASS   : Test_Tracing::testMetadata()
QDEBUG : Test_Tracing::testMatchAggregation() [D] Settings::Settings:22 - Settings created:  "/home/defaultuser/.config/harbour-contrac/harbour-contrac-tests.conf"
QDEBUG : Test_Tracing::testMatchAggregation() [D] Settings::upgrade:166 - Existing settings file version:  1
QDEBUG : Test_Tracing::testMatchAggregation() [D] AppSettings::AppSettings:56 - Pixel ration:  1.75
QDEBUG : Test_Tracing::testMatchAggregation() [D] AppSettings::AppSettings:63 - Image folder:  "./qml/images/z1.75/"
QDEBUG : Test_Tracing::testMatchAggregation() [D] AppSettings::AppSettings:65 - Settings created:  "/home/defaultuser/.config/harbour-contrac/harbour-contrac-tests.conf"
QDEBUG : Test_Tracing::testMatchAggregation() [D] AppSettings::upgrade:264 - Existing settings file version:  0
QDEBUG : Test_Tracing::testMatchAggregation() [D] AppSettings::upgradeToVersion1:293 - Upgrading settings to version 1
QDEBUG : Test_Tracing::testMatchAggregation() [D] ContactStorage::onTimeChanged:42 - Storage day set to  1159
QDEBUG : Test_Tracing::testMatchAggregation() [D] ContactStorage::harvestOldData:111 - Harvesting file:  "00000000.dat"
QDEBUG : Test_Tracing::testMatchAggregation() [D] DayStorage::addContact:203 - Outputting to file:  "/home/defaultuser/.config/harbour-contrac/harbour-contrac-tests/contacts/00000487.dat"
QDEBUG : Test_Tracing::testMatchAggregation() [D] ContactStorage::onTimeChanged:42 - Storage day set to  1171
QDEBUG : Test_Tracing::testMatchAggregation() [D] DayStorage::addContact:203 - Outputting to file:  "/home/defaultuser/.config/harbour-contrac/harbour-contrac-tests/contacts/00000493.dat"
QDEBUG : Test_Tracing::testMatchAggregation() [D] ContactStorage::onTimeChanged:42 - Storage day set to  1170
QDEBUG : Test_Tracing::testMatchAggregation() [D] DayStorage::addContact:203 - Outputting to file:  "/home/defaultuser/.config/harbour-contrac/harbour-contrac-tests/contacts/00000492.dat"
QDEBUG : Test_Tracing::testMatchAggregation() [D] ContactStorage::onTimeChanged:42 - Storage day set to  1172
QDEBUG : Test_Tracing::testMatchAggregation() [D] DayStorage::addContact:203 - Outputting to file:  "/home/defaultuser/.config/harbour-contrac/harbour-contrac-tests/contacts/00000494.dat"
QDEBUG : Test_Tracing::testMatchAggregation() [D] ContactStorage::onTimeChanged:42 - Storage day set to  1173
QDEBUG : Test_Tracing::testMatchAggregation() [D] DayStorage::addContact:203 - Outputting to file:  "/home/defaultuser/.config/harbour-contrac/harbour-contrac-tests/contacts/00000495.dat"
QDEBUG : Test_Tracing::testMatchAggregation() [D] ContactStorage::onTimeChanged:42 - Storage day set to  1175
QDEBUG : Test_Tracing::testMatchAggregation() [D] ContactStorage::harvestOldData:111 - Harvesting file:  "00000487.bloom"
QDEBUG : Test_Tracing::testMatchAggregation() [D] ContactStorage::harvestOldData:111 - Harvesting file:  "00000487.dat"
QDEBUG : Test_Tracing::testMatchAggregation() [D] DayStorage::addContact:203 - Outputting to file:  "/home/defaultuser/.config/harbour-contrac/harbour-contrac-tests/contacts/00000497.dat"
QDEBUG : Test_Tracing::testMatchAggregation() [D] DayStorage::addContact:203 - Outputting to file:  "/home/defaultuser/.config/harbour-contrac/harbour-contrac-tests/contacts/00000497.dat"
QDEBUG : Test_Tracing::testMatchAggregation() [D] ContactStorage::onTimeChanged:42 - Storage day set to  1174
QDEBUG : Test_Tracing::testMatchAggregation() [D] DayStorage::addContact:203 - Outputting to file:  "/home/defaultuser/.config/harbour-contrac/harbour-contrac-tests/contacts/00000496.dat"
QDEBUG : Test_Tracing::testMatchAggregation() [D] ContactStorage::onTimeChanged:42 - Storage day set to  1170
QDEBUG : Test_Tracing::testMatchAggregation() [D] DayStorage::addContact:203 - Outputting to file:  "/home/defaultuser/.config/harbour-contrac/harbour-contrac-tests/contacts/00000492.dat"
QDEBUG : Test_Tracing::testMatchAggregation() [D] DayStorage::addContact:203 - Outputting to file:  "/home/defaultuser/.config/harbour-contrac/harbour-contrac-tests/contacts/00000492.dat"
QDEBUG : Test_Tracing::testMatchAggregation() [D] DayStorage::addContact:203 - Outputting to file:  "/home/defaultuser/.config/harbour-contrac/harbour-contrac-tests/contacts/00000492.dat"
QDEBUG : Test_Tracing::testMatchAggregation() [D] ContactStorage::onTimeChanged:42 - Storage day set to  1159
QDEBUG : Test_Tracing::testMatchAggregation() [D] ContactStorage::onTimeChanged:42 - Storage day set to  1170
QDEBUG : Test_Tracing::testMatchAggregation() [D] ContactStorage::onTimeChanged:42 - Storage day set to  1175
QDEBUG : Test_Tracing::testMatchAggregation() [D] ContactStorage::harvestOldData:111 - Harvesting file:  "00000487.dat"
QDEBUG : Test_Tracing::testMatchAggregation() [D] DayStorage::findDtkMatches:123 - Probables size:  0
QDEBUG : Test_Tracing::testMatchAggregation() [D] DayStorage::findDtkMatches:190 - Actuals size:  0

========= Received signal, dumping stack ==============
QFATAL : Test_Tracing::testMatchAggregation() [F] unknown:0 - Received signal 11
         Function time: 70ms Total time: 261ms
FAIL!  : Test_Tracing::testMatchAggregation() Received a fatal error.
   Loc: [Unknown file(0)]
Totals: 4 passed, 1 failed, 0 skipped, 0 blacklisted
********* Finished testing of Test_Tracing *********
========= End of stack trace ==============
22:38:12: Remote process crashed.

Seems like this line is the last before abort:

QCOMPARE((matches.length() > 0), expectedMatches.contains(diagnosis.second));

@llewelld Is there a actual bug in the code or the unit tests just not that independent?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants