overte-org / overte

Overte open source virtual worlds platform.
https://overte.org/
Other
127 stars 47 forks source link

Skip packet capacity test when built in debug mode, as it triggers an assertion #993

Closed daleglass closed 3 weeks ago

daleglass commented 3 weeks ago

This happens in debug mode:

********* Start testing of PacketTests *********
Config: Using QtTest library 5.15.13, Qt 5.15.13 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 14.1.1 20240507 (Red Hat 14.1.1-1)), fedora 40
PASS   : PacketTests::initTestCase()
PASS   : PacketTests::emptyPacketTest()
PASS   : PacketTests::writeTest()
PASS   : PacketTests::readTest()
QFATAL : PacketTests::writePastCapacityTest() ASSERT failure in BasePacket::writeData: "not enough space for write", file /home/dale/git/overte/libraries/networking/src/udt/BasePacket.cpp, line 175
FAIL!  : PacketTests::writePastCapacityTest() Received a fatal error.
   Loc: [Unknown file(0)]
Totals: 4 passed, 1 failed, 0 skipped, 0 blacklisted, 0ms
********* Finished testing of PacketTests *********
zsh: IOT instruction (core dumped)  ./networking-PacketTests

That's because BasePacket.cpp contains an assertion.