diff options
| author | Christoph Berg <myon@debian.org> | 2026-10-09 14:12:49 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-10-09 14:12:49 +0200 |
| commit | 76956486fa7ef52a51d4e56df1e13a9f19a6c93c (patch) | |
| tree | fe0c394439fdc167d1970372e8998874090854dd /tests/unit/decoder_ipc/test_decode_operating_context.cpp | |
| parent | 0685fcada9f95fe90f70b387cd7d757da8209624 (diff) | |
| parent | ffc62c792c9a5196cb4ce7a353287dfe20db6524 (diff) | |
Update upstream source from tag 'upstream/3.3.0_beta1+dfsg'
Update to upstream version '3.3.0~beta1+dfsg'
with Debian dir 85037bbb9376721108594b59b54ead82ac6924a3
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"); |
