diff options
| author | Dave Hibberd <hibby@debian.org> | 2026-10-20 22:35:06 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2026-10-20 22:35:06 +0100 |
| commit | 82ebb1ed1af30cee4dfbb1c628431d32885a00e0 (patch) | |
| tree | 1a1f782d3e576b758be0bc61171574a7cd8f2376 /tests/unit/decoder_ipc/test_decode_operating_context.cpp | |
| parent | 061658210acb6425517733ea012dda803a7f72a1 (diff) | |
| parent | 61d684922b0f1c8455cc60eb3d123df058c9e1f5 (diff) | |
Merge tag 'debian/3.3.0_beta2+dfsg-1' into hibbian/trixie-backports
tagging wsjtx 3.3.0~beta2+dfsg-1
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"); |
