From 3b44ef356881b10d672442f78293e6b2fc7bf9ff Mon Sep 17 00:00:00 2001 From: ml Date: Mon, 29 Apr 2024 17:47:55 +0800 Subject: [PATCH] Signed-off-by: ml --- .../interface_test/src/hks_list_aliases_test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/unittest/huks_standard_test/module_test/interface_test/src/hks_list_aliases_test.cpp b/test/unittest/huks_standard_test/module_test/interface_test/src/hks_list_aliases_test.cpp index 62378ad5..3dfb5dbb 100644 --- a/test/unittest/huks_standard_test/module_test/interface_test/src/hks_list_aliases_test.cpp +++ b/test/unittest/huks_standard_test/module_test/interface_test/src/hks_list_aliases_test.cpp @@ -48,11 +48,11 @@ public: void TearDown(); }; -static const char *ALIAS = "testAlias"; -static const struct HksBlob TEST_KEY_ALIAS = { sizeof(ALIAS), (uint8_t *)ALIAS }; +static const char ALIAS[] = "testAlias"; +static const struct HksBlob TEST_KEY_ALIAS = { strlen(ALIAS), (uint8_t *)ALIAS }; -static const char *INVISABLE_ALIAS = "#test("; -static const struct HksBlob TEST_INVISABLE_KEY_ALIAS = { sizeof(INVISABLE_ALIAS), (uint8_t *)INVISABLE_ALIAS }; +static const char INVISABLE_ALIAS[] = "#test("; +static const struct HksBlob TEST_INVISABLE_KEY_ALIAS = { strlen(INVISABLE_ALIAS), (uint8_t *)INVISABLE_ALIAS }; static const uint32_t EXPECT_MIN_NUM = 1;