From c6018c1674b6f5fbb94f0b96db06fe02718973fe Mon Sep 17 00:00:00 2001 From: Alami-Amine Date: Tue, 7 Jan 2025 11:09:00 +0100 Subject: [PATCH] Fix CI failure related to using aggregate initializer with C-String --- src/protocols/secure_channel/tests/TestPairingSession.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/protocols/secure_channel/tests/TestPairingSession.cpp b/src/protocols/secure_channel/tests/TestPairingSession.cpp index 66295fefb7e56e..4296c0c808abcc 100644 --- a/src/protocols/secure_channel/tests/TestPairingSession.cpp +++ b/src/protocols/secure_channel/tests/TestPairingSession.cpp @@ -117,7 +117,7 @@ TEST_F(TestPairingSession, PairingSessionTryDecodeMissingMRPParams) struct DecodeSessionParamsTestCase { - char testCaseName[100]; + std::string testCaseName; ReliableMessageProtocolConfig mrpConfig; bool includeVersionInfo; uint16_t dataModelRev; @@ -364,11 +364,11 @@ TEST_F(TestPairingSession, TestDecodeSessionParameters) if (!testCaseFailed) { - printf("\n[PASSED] TestCaseName%s\n\n", testCase.testCaseName); + printf("\n[PASSED] TestCaseName%s\n\n", testCase.testCaseName.c_str()); } else { - printf("\n[FAILED] TestCaseName: %s\n\n", testCase.testCaseName); + printf("\n[FAILED] TestCaseName: %s\n\n", testCase.testCaseName.c_str()); testFailed = true; } }