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 d88f8eb441aa9d80982680528f6068a55b9c5bb5..e313b30fa7b92f982d7e45ffd27059ea7d4c9707 100644 --- a/security_lite/huks/liteos_m_adapter/hks_others_test.c +++ b/security_lite/huks/liteos_m_adapter/hks_others_test.c @@ -102,7 +102,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(); } @@ -111,7 +111,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(); } @@ -120,7 +120,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(); } @@ -129,7 +129,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(); }