From b18243c822dffbde9b62aa255499f8823b6cb37a Mon Sep 17 00:00:00 2001 From: chrisdecenzo Date: Sat, 14 May 2022 07:22:27 -0700 Subject: [PATCH] debug CI --- .../user_directed_commissioning/tests/TestUdcMessages.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/protocols/user_directed_commissioning/tests/TestUdcMessages.cpp b/src/protocols/user_directed_commissioning/tests/TestUdcMessages.cpp index 311d54e73318b1..ad9831e8eb772c 100644 --- a/src/protocols/user_directed_commissioning/tests/TestUdcMessages.cpp +++ b/src/protocols/user_directed_commissioning/tests/TestUdcMessages.cpp @@ -24,7 +24,7 @@ ByteSpan GetSpan(char * key) size_t len = strlen(key); // Stop the string from being null terminated to ensure the code makes no assumptions. key[len] = '1'; - return ByteSpan(reinterpret_cast(key), len); + return ByteSpan(Uint8::from_char(key), len); } class DLL_EXPORT TestCallback : public UserConfirmationProvider, public InstanceNameResolver { @@ -304,6 +304,7 @@ void TestUDCClientState(nlTestSuite * inSuite, void * inContext) "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"); GetRotatingDeviceId(GetSpan(rotatingIdLongString), rotatingIdLong, &rotatingIdLongLen); + printf(" max length %zu, long length %zu\n", chip::Dnssd::kMaxRotatingIdLen, rotatingIdLongLen); NL_TEST_ASSERT(inSuite, rotatingIdLongLen > chip::Dnssd::kMaxRotatingIdLen); // test base case @@ -343,6 +344,9 @@ void TestUDCClientState(nlTestSuite * inSuite, void * inContext) } state->SetRotatingId(rotatingIdLong, rotatingIdLongLen); + + printf(" max length %zu, long length %zu, current length %zu\n", chip::Dnssd::kMaxRotatingIdLen, rotatingIdLongLen, + state->GetRotatingIdLength()); NL_TEST_ASSERT(inSuite, chip::Dnssd::kMaxRotatingIdLen == state->GetRotatingIdLength()); const uint8_t * testRotatingIdLong = state->GetRotatingId();