From 4eda3643c6241a14eade010474576019cefcf4e1 Mon Sep 17 00:00:00 2001 From: msieben <4319079+msieben@users.noreply.github.com> Date: Mon, 9 Sep 2024 11:25:54 +0200 Subject: [PATCH] Development/iptestadministrator (#1740) * [Tests/unit] : Do not depend on 'IPTestAdministrator' if not used * [Tests/unit/tests] : Cherry pick 'test_iptestmanager' from development/namespaces * [Tests/unit / Tests/unit/tests] : Improve synchronization usage of 'IPTestAdministrator' * [core/IPCChannel] : cherry-pick from 'development/ipcchannel_dangling_handlers' * Tests/unit/core] : align tests with '957977381dfa8137f1475131622390ebed2bdcf7' * [Tests/unit] : Improve synchronization with premature signalling * [Tests/unit] : Add test cases to 'Tests/unit/tests/test_iptestmanager.cpp' * [Tests/unit/core] : align tests with '346fb6ec2a0da5058f7a581190e63c7cb61d929c' Including various improvements for some test. * [Tests/unit/core] : amend '7c9a286d1398de9f2b470b02bb58596120f0d8c9' * [Tests/core/unit] : cherry pick from 'development/messageunit' * [Tests/unit/core] : Use 'IPTestAdministrator' for 'PopMessageShouldReturnLastPushedMessageInOtherProcess' in test_message_unit' * [Tests/unit/IPTestAdministrator] : Try to prevent to leak shared memory descriptors * Revert "[core/IPCChannel] : cherry-pick from 'development/ipcchannel_dangling_handlers'" This reverts commit 8bc4c8a8711729fa9e9a7f12bb4bf7d0eeb78610. * [Tests/unit/core] : disable 'test_ipc' * [Tests/unit/core] : Move 'test_message_dispatcher' to the approriate 'CMakeLists' branch * [Tests/unit/tests] : tag unused variable in 'IPTestsAdministrator' --------- Co-authored-by: MFransen69 <39826971+MFransen69@users.noreply.github.com> --- Tests/unit/IPTestAdministrator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/unit/IPTestAdministrator.cpp b/Tests/unit/IPTestAdministrator.cpp index 31435c865..6a8ea681d 100644 --- a/Tests/unit/IPTestAdministrator.cpp +++ b/Tests/unit/IPTestAdministrator.cpp @@ -207,7 +207,7 @@ uint32_t IPTestAdministrator::Signal(uint32_t expectedNextHandshakeValue, uint8_ break; default : result = ::Thunder::Core::ERROR_NONE; // Atomically replaces the current value by the expected value - bool oldHandshakeValue = _sharedData->handshakeValue.exchange(expectedNextHandshakeValue); + VARIABLE_IS_NOT_USED bool oldHandshakeValue = _sharedData->handshakeValue.exchange(expectedNextHandshakeValue); } return result;