diff --git a/security_lite/huks/liteos_a_adapter/hks_others_test.cpp b/security_lite/huks/liteos_a_adapter/hks_others_test.cpp index 650154bf4d8d5b69387453d7c5c11f1479738129..9d67563032f14d19fc2c87768332ee33b6ee55c6 100644 --- a/security_lite/huks/liteos_a_adapter/hks_others_test.cpp +++ b/security_lite/huks/liteos_a_adapter/hks_others_test.cpp @@ -84,7 +84,7 @@ HWTEST_F(HksOthersTest, HksOthersTest002, TestSize.Level1) HWTEST_F(HksOthersTest, HksOthersTest003, TestSize.Level1) { int32_t ret = HksAttestKey(NULL, NULL, NULL); - ASSERT_TRUE(ret == HKS_ERROR_NOT_SUPPORTED); + ASSERT_TRUE(ret == HKS_ERROR_API_NOT_SUPPORTED); } /** @@ -95,7 +95,7 @@ HWTEST_F(HksOthersTest, HksOthersTest003, TestSize.Level1) HWTEST_F(HksOthersTest, HksOthersTest004, TestSize.Level1) { int32_t ret = HksGetCertificateChain(NULL, NULL, NULL); - ASSERT_TRUE(ret == HKS_ERROR_NOT_SUPPORTED); + ASSERT_TRUE(ret == HKS_ERROR_API_NOT_SUPPORTED); } /** @@ -106,7 +106,7 @@ HWTEST_F(HksOthersTest, HksOthersTest004, TestSize.Level1) HWTEST_F(HksOthersTest, HksOthersTest005, TestSize.Level1) { int32_t ret = HksWrapKey(NULL, NULL, NULL, NULL); - ASSERT_TRUE(ret == HKS_ERROR_NOT_SUPPORTED); + ASSERT_TRUE(ret == HKS_ERROR_API_NOT_SUPPORTED); } /** @@ -117,7 +117,7 @@ HWTEST_F(HksOthersTest, HksOthersTest005, TestSize.Level1) HWTEST_F(HksOthersTest, HksOthersTest006, TestSize.Level1) { int32_t ret = HksUnwrapKey(NULL, NULL, NULL, NULL); - ASSERT_TRUE(ret == HKS_ERROR_NOT_SUPPORTED); + ASSERT_TRUE(ret == HKS_ERROR_API_NOT_SUPPORTED); } /** diff --git a/security_lite/huks/liteos_m_adapter/hks_others_test.c b/security_lite/huks/liteos_m_adapter/hks_others_test.c index a807208e024df3fdc23725784fe899ab8d73f177..65921277f3f325b8c31cc860778b5b507b0b9170 100644 --- a/security_lite/huks/liteos_m_adapter/hks_others_test.c +++ b/security_lite/huks/liteos_m_adapter/hks_others_test.c @@ -101,7 +101,7 @@ static void ExcHksOthersTest003(void const *argument) { LiteTestPrint("HksOthersTest003 Begin!\n"); int32_t ret = HksAttestKey(NULL, NULL, NULL); - TEST_ASSERT_TRUE(ret == HKS_ERROR_NOT_SUPPORTED); + TEST_ASSERT_TRUE(ret == HKS_ERROR_API_NOT_SUPPORTED); LiteTestPrint("HksOthersTest003 End!\n"); osThreadExit(); } @@ -110,7 +110,7 @@ static void ExcHksOthersTest004(void const *argument) { LiteTestPrint("HksOthersTest004 Begin!\n"); int32_t ret = HksGetCertificateChain(NULL, NULL, NULL); - TEST_ASSERT_TRUE(ret == HKS_ERROR_NOT_SUPPORTED); + TEST_ASSERT_TRUE(ret == HKS_ERROR_API_NOT_SUPPORTED); LiteTestPrint("HksOthersTest004 End!\n"); osThreadExit(); } @@ -119,7 +119,7 @@ static void ExcHksOthersTest005(void const *argument) { LiteTestPrint("HksOthersTest005 Begin!\n"); int32_t ret = HksGetCertificateChain(NULL, NULL, NULL); - TEST_ASSERT_TRUE(ret == HKS_ERROR_NOT_SUPPORTED); + TEST_ASSERT_TRUE(ret == HKS_ERROR_API_NOT_SUPPORTED); LiteTestPrint("HksOthersTest005 End!\n"); osThreadExit(); } @@ -128,7 +128,7 @@ static void ExcHksOthersTest006(void const *argument) { LiteTestPrint("HksOthersTest006 Begin!\n"); int32_t ret = HksUnwrapKey(NULL, NULL, NULL, NULL); - TEST_ASSERT_TRUE(ret == HKS_ERROR_NOT_SUPPORTED); + TEST_ASSERT_TRUE(ret == HKS_ERROR_API_NOT_SUPPORTED); LiteTestPrint("HksOthersTest006 End!\n"); osThreadExit(); }