diff options
| author | Christoph Berg <myon@debian.org> | 2026-10-09 14:12:35 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-10-09 14:12:35 +0200 |
| commit | ffc62c792c9a5196cb4ce7a353287dfe20db6524 (patch) | |
| tree | 1269efa852935b183daae4bb33a58d1b4d2ffb53 /tests/unit/decoder_ipc/test_decode_operating_context.cpp | |
| parent | 059831534c7e884f0a607ed86b582fd00d821731 (diff) | |
New upstream version 3.3.0~beta1+dfsgupstream/3.3.0_beta1+dfsg
Diffstat (limited to 'tests/unit/decoder_ipc/test_decode_operating_context.cpp')
| -rw-r--r-- | tests/unit/decoder_ipc/test_decode_operating_context.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/unit/decoder_ipc/test_decode_operating_context.cpp b/tests/unit/decoder_ipc/test_decode_operating_context.cpp index 0380434d..f4233d94 100644 --- a/tests/unit/decoder_ipc/test_decode_operating_context.cpp +++ b/tests/unit/decoder_ipc/test_decode_operating_context.cpp @@ -9,6 +9,7 @@ class TestDecodeOperatingContext final : public QObject private Q_SLOTS: void identityMatchesEquivalentContext (); void sequenceStartIsAttributionOnly (); + void receiveRolloverPreservesPendingSnapshot (); void identityChangeMakesContextObsolete_data (); void identityChangeMakesContextObsolete (); void ft8PendingIdentityChangeMakesSnapshotObsolete_data (); @@ -62,6 +63,19 @@ void TestDecodeOperatingContext::sequenceStartIsAttributionOnly () QVERIFY (captured.hasSameDecodeIdentity (current)); } +void TestDecodeOperatingContext::receiveRolloverPreservesPendingSnapshot () +{ + auto captured = context (); + captured.inputId = 10; + captured.analysisId = 20; + auto current = captured; + ++current.inputId; + ++current.analysisId; + current.sequenceStart = current.sequenceStart.addSecs (15); + + QVERIFY (captured.hasSameFt8PendingIdentity (current)); +} + void TestDecodeOperatingContext::identityChangeMakesContextObsolete_data () { QTest::addColumn<QString> ("field"); |
