mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
Skip packet capacity test when built in debug mode, as it triggers an assertion
This commit is contained in:
parent
09e5a60c8b
commit
b1aa801714
1 changed files with 4 additions and 0 deletions
|
@ -92,6 +92,9 @@ void PacketTests::readTest() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void PacketTests::writePastCapacityTest() {
|
void PacketTests::writePastCapacityTest() {
|
||||||
|
#ifndef QT_NO_DEBUG
|
||||||
|
QSKIP("This test triggers an assertion when built in debug mode");
|
||||||
|
#else
|
||||||
auto packet = NLPacket::create(PacketType::Unknown);
|
auto packet = NLPacket::create(PacketType::Unknown);
|
||||||
|
|
||||||
auto size = packet->getPayloadCapacity();
|
auto size = packet->getPayloadCapacity();
|
||||||
|
@ -116,6 +119,7 @@ void PacketTests::writePastCapacityTest() {
|
||||||
|
|
||||||
// NLPacket::write() shouldn't allow the caller to write if no space is left
|
// NLPacket::write() shouldn't allow the caller to write if no space is left
|
||||||
QCOMPARE(packet->getPayloadSize(), size);
|
QCOMPARE(packet->getPayloadSize(), size);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void PacketTests::primitiveTest() {
|
void PacketTests::primitiveTest() {
|
||||||
|
|
Loading…
Reference in a new issue