提交 4ffbbce2 编写于 作者: Q qiaozzzh

Huks代码维护

Signed-off-by: Nqiaozzzh <qiaozhang@huawei.com>
上级 829db2c1
...@@ -104,7 +104,6 @@ static uint32_t FileRead(const char *fileName, uint32_t offset, uint8_t *buf, ui ...@@ -104,7 +104,6 @@ static uint32_t FileRead(const char *fileName, uint32_t offset, uint8_t *buf, ui
} }
char filePath[PATH_MAX + 1] = {0}; char filePath[PATH_MAX + 1] = {0};
(void)realpath(fileName, filePath);
if (strstr(filePath, "../") != NULL) { if (strstr(filePath, "../") != NULL) {
HKS_TEST_LOG_E("invalid filePath, path %s", filePath); HKS_TEST_LOG_E("invalid filePath, path %s", filePath);
return 0; return 0;
...@@ -148,7 +147,6 @@ static int32_t FileWrite(const char *fileName, uint32_t offset, const uint8_t *b ...@@ -148,7 +147,6 @@ static int32_t FileWrite(const char *fileName, uint32_t offset, const uint8_t *b
if (memcpy_s(filePath, sizeof(filePath) - 1, fileName, strlen(fileName)) != EOK) { if (memcpy_s(filePath, sizeof(filePath) - 1, fileName, strlen(fileName)) != EOK) {
return HKS_ERROR_BAD_STATE; return HKS_ERROR_BAD_STATE;
} }
(void)realpath(fileName, filePath);
if (strstr(filePath, "../") != NULL) { if (strstr(filePath, "../") != NULL) {
HKS_TEST_LOG_E("invalid filePath, path %s", filePath); HKS_TEST_LOG_E("invalid filePath, path %s", filePath);
return HKS_ERROR_INVALID_KEY_FILE; return HKS_ERROR_INVALID_KEY_FILE;
...@@ -182,22 +180,6 @@ static int32_t FileWrite(const char *fileName, uint32_t offset, const uint8_t *b ...@@ -182,22 +180,6 @@ static int32_t FileWrite(const char *fileName, uint32_t offset, const uint8_t *b
return HKS_SUCCESS; return HKS_SUCCESS;
} }
int32_t HksIsFileExist(const char *path, const char *fileName)
{
if (fileName == NULL) {
return HKS_ERROR_NULL_POINTER;
}
char *fullFileName = NULL;
int32_t ret = GetFullFileName(path, fileName, &fullFileName);
if (ret != HKS_SUCCESS) {
return ret;
}
ret = IsFileExist(fullFileName);
HksTestFree(fullFileName);
return ret;
}
#else #else
static uint32_t FileRead(const char *fileName, uint32_t offset, uint8_t *buf, uint32_t len) static uint32_t FileRead(const char *fileName, uint32_t offset, uint8_t *buf, uint32_t len)
{ {
...@@ -206,6 +188,7 @@ static uint32_t FileRead(const char *fileName, uint32_t offset, uint8_t *buf, ui ...@@ -206,6 +188,7 @@ static uint32_t FileRead(const char *fileName, uint32_t offset, uint8_t *buf, ui
return HKS_ERROR_INVALID_ARGUMENT; return HKS_ERROR_INVALID_ARGUMENT;
} }
unsigned int fileSize; unsigned int fileSize;
int32_t ret = UtilsFileStat(fileName, &fileSize); int32_t ret = UtilsFileStat(fileName, &fileSize);
if (ret < 0) { if (ret < 0) {
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
*/ */
#include "hctest.h" #include "hctest.h"
#include "iot_watchdog.h"
#include "hks_api.h" #include "hks_api.h"
#include "hks_param.h" #include "hks_param.h"
#include "securec.h" #include "securec.h"
...@@ -48,7 +48,6 @@ static void ExecHksInitialize(void const *argument) ...@@ -48,7 +48,6 @@ static void ExecHksInitialize(void const *argument)
static BOOL HksAesTestSetUp() static BOOL HksAesTestSetUp()
{ {
LiteTestPrint("setup\n"); LiteTestPrint("setup\n");
IoTWatchDogDisable();
osThreadId_t id; osThreadId_t id;
osThreadAttr_t attr; osThreadAttr_t attr;
g_setPriority = osPriorityAboveNormal6; g_setPriority = osPriorityAboveNormal6;
...@@ -72,7 +71,6 @@ static BOOL HksAesTestSetUp() ...@@ -72,7 +71,6 @@ static BOOL HksAesTestSetUp()
static BOOL HksAesTestTearDown() static BOOL HksAesTestTearDown()
{ {
LiteTestPrint("tearDown\n"); LiteTestPrint("tearDown\n");
IoTWatchDogEnable();
return TRUE; return TRUE;
} }
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
*/ */
#include "hctest.h" #include "hctest.h"
#include "iot_watchdog.h"
#include "hks_agreement_test.h" #include "hks_agreement_test.h"
#include "hks_api.h" #include "hks_api.h"
#include "hks_param.h" #include "hks_param.h"
...@@ -57,7 +57,6 @@ static void ExecHksInitialize(void const *argument) ...@@ -57,7 +57,6 @@ static void ExecHksInitialize(void const *argument)
static BOOL HksAgreementTestSetUp() static BOOL HksAgreementTestSetUp()
{ {
LiteTestPrint("setup\n"); LiteTestPrint("setup\n");
IoTWatchDogDisable();
osThreadId_t id; osThreadId_t id;
osThreadAttr_t attr; osThreadAttr_t attr;
g_setPriority = osPriorityAboveNormal6; g_setPriority = osPriorityAboveNormal6;
...@@ -81,8 +80,6 @@ static BOOL HksAgreementTestSetUp() ...@@ -81,8 +80,6 @@ static BOOL HksAgreementTestSetUp()
static BOOL HksAgreementTestTearDown() static BOOL HksAgreementTestTearDown()
{ {
LiteTestPrint("tearDown\n"); LiteTestPrint("tearDown\n");
IoTWatchDogEnable();
return TRUE; return TRUE;
} }
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
*/ */
#include "hctest.h" #include "hctest.h"
#include "iot_watchdog.h"
#include "hks_bn_exp_mod_test.h" #include "hks_bn_exp_mod_test.h"
#include "hks_api.h" #include "hks_api.h"
#include "hks_param.h" #include "hks_param.h"
...@@ -52,7 +52,6 @@ static void ExecHksInitialize(void const *argument) ...@@ -52,7 +52,6 @@ static void ExecHksInitialize(void const *argument)
static BOOL HksBnExpModTestSetUp() static BOOL HksBnExpModTestSetUp()
{ {
LiteTestPrint("setup\n"); LiteTestPrint("setup\n");
IoTWatchDogDisable();
osThreadId_t id; osThreadId_t id;
osThreadAttr_t attr; osThreadAttr_t attr;
g_setPriority = osPriorityAboveNormal6; g_setPriority = osPriorityAboveNormal6;
...@@ -76,7 +75,6 @@ static BOOL HksBnExpModTestSetUp() ...@@ -76,7 +75,6 @@ static BOOL HksBnExpModTestSetUp()
static BOOL HksBnExpModTestTearDown() static BOOL HksBnExpModTestTearDown()
{ {
LiteTestPrint("tearDown\n"); LiteTestPrint("tearDown\n");
IoTWatchDogEnable();
return TRUE; return TRUE;
} }
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include "hks_cipher_test.h" #include "hks_cipher_test.h"
#include "hctest.h" #include "hctest.h"
#include "iot_watchdog.h"
#include "hks_api.h" #include "hks_api.h"
#include "hks_param.h" #include "hks_param.h"
#include "hks_test_cipher.h" #include "hks_test_cipher.h"
...@@ -57,7 +57,6 @@ static void ExecHksInitialize(void const *argument) ...@@ -57,7 +57,6 @@ static void ExecHksInitialize(void const *argument)
static BOOL HksCipherTestSetUp() static BOOL HksCipherTestSetUp()
{ {
LiteTestPrint("setup\n"); LiteTestPrint("setup\n");
IoTWatchDogDisable();
osThreadId_t id; osThreadId_t id;
osThreadAttr_t attr; osThreadAttr_t attr;
g_setPriority = osPriorityAboveNormal6; g_setPriority = osPriorityAboveNormal6;
...@@ -81,7 +80,6 @@ static BOOL HksCipherTestSetUp() ...@@ -81,7 +80,6 @@ static BOOL HksCipherTestSetUp()
static BOOL HksCipherTestTearDown() static BOOL HksCipherTestTearDown()
{ {
LiteTestPrint("tearDown\n"); LiteTestPrint("tearDown\n");
IoTWatchDogEnable();
return TRUE; return TRUE;
} }
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include "cmsis_os2.h" #include "cmsis_os2.h"
#include "hctest.h" #include "hctest.h"
#include "iot_watchdog.h"
#include "hks_api.h" #include "hks_api.h"
#include "hks_param.h" #include "hks_param.h"
#include "hks_test_curve25519.h" #include "hks_test_curve25519.h"
...@@ -56,7 +56,6 @@ static void ExecHksInitialize(void const *argument) ...@@ -56,7 +56,6 @@ static void ExecHksInitialize(void const *argument)
static BOOL HksCurve25519TestSetUp() static BOOL HksCurve25519TestSetUp()
{ {
LiteTestPrint("setup\n"); LiteTestPrint("setup\n");
IoTWatchDogDisable();
osThreadId_t id; osThreadId_t id;
osThreadAttr_t attr; osThreadAttr_t attr;
g_setPriority = osPriorityAboveNormal6; g_setPriority = osPriorityAboveNormal6;
...@@ -80,7 +79,6 @@ static BOOL HksCurve25519TestSetUp() ...@@ -80,7 +79,6 @@ static BOOL HksCurve25519TestSetUp()
static BOOL HksCurve25519TestTearDown() static BOOL HksCurve25519TestTearDown()
{ {
LiteTestPrint("tearDown\n"); LiteTestPrint("tearDown\n");
IoTWatchDogEnable();
return TRUE; return TRUE;
} }
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#ifndef _CUT_AUTHENTICATE_ #ifndef _CUT_AUTHENTICATE_
#include "hctest.h" #include "hctest.h"
#include "iot_watchdog.h"
#include "hks_delete_test.h" #include "hks_delete_test.h"
#include "hks_api.h" #include "hks_api.h"
#include "hks_param.h" #include "hks_param.h"
...@@ -82,7 +82,6 @@ static void ExecHksDeleteTest001(void const *argument) ...@@ -82,7 +82,6 @@ static void ExecHksDeleteTest001(void const *argument)
static BOOL HksDeleteTestSetUp() static BOOL HksDeleteTestSetUp()
{ {
LiteTestPrint("setup\n"); LiteTestPrint("setup\n");
IoTWatchDogDisable();
osThreadId_t id; osThreadId_t id;
osThreadAttr_t attr; osThreadAttr_t attr;
g_setPriority = osPriorityAboveNormal6; g_setPriority = osPriorityAboveNormal6;
...@@ -106,7 +105,6 @@ static BOOL HksDeleteTestSetUp() ...@@ -106,7 +105,6 @@ static BOOL HksDeleteTestSetUp()
static BOOL HksDeleteTestTearDown() static BOOL HksDeleteTestTearDown()
{ {
LiteTestPrint("tearDown\n"); LiteTestPrint("tearDown\n");
IoTWatchDogEnable();
return TRUE; return TRUE;
} }
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* limitations under the License. * limitations under the License.
*/ */
#include "iot_watchdog.h"
#include <hctest.h> #include <hctest.h>
#include "hks_derive_test.h" #include "hks_derive_test.h"
...@@ -56,7 +56,6 @@ static void ExecHksInitialize(void const *argument) ...@@ -56,7 +56,6 @@ static void ExecHksInitialize(void const *argument)
static BOOL HksDeriveTestSetUp() static BOOL HksDeriveTestSetUp()
{ {
LiteTestPrint("setup\n"); LiteTestPrint("setup\n");
IoTWatchDogDisable();
osThreadId_t id; osThreadId_t id;
osThreadAttr_t attr; osThreadAttr_t attr;
g_setPriority = osPriorityAboveNormal6; g_setPriority = osPriorityAboveNormal6;
...@@ -80,7 +79,6 @@ static BOOL HksDeriveTestSetUp() ...@@ -80,7 +79,6 @@ static BOOL HksDeriveTestSetUp()
static BOOL HksDeriveTestTearDown() static BOOL HksDeriveTestTearDown()
{ {
LiteTestPrint("tearDown\n"); LiteTestPrint("tearDown\n");
IoTWatchDogEnable();
return TRUE; return TRUE;
} }
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#ifndef _CUT_AUTHENTICATE_ #ifndef _CUT_AUTHENTICATE_
#include "hctest.h" #include "hctest.h"
#include "iot_watchdog.h"
#include "hks_api.h" #include "hks_api.h"
#include "hks_exist_test.h" #include "hks_exist_test.h"
#include "hks_param.h" #include "hks_param.h"
...@@ -91,7 +91,6 @@ static void ExecHksExistTest001(void const *argument) ...@@ -91,7 +91,6 @@ static void ExecHksExistTest001(void const *argument)
static BOOL HksExistTestSetUp(void) static BOOL HksExistTestSetUp(void)
{ {
LiteTestPrint("setup\n"); LiteTestPrint("setup\n");
IoTWatchDogDisable();
osThreadId_t id; osThreadId_t id;
osThreadAttr_t attr; osThreadAttr_t attr;
g_setPriority = osPriorityAboveNormal6; g_setPriority = osPriorityAboveNormal6;
...@@ -118,7 +117,6 @@ static BOOL HksExistTestSetUp(void) ...@@ -118,7 +117,6 @@ static BOOL HksExistTestSetUp(void)
static BOOL HksExistTestTearDown(void) static BOOL HksExistTestTearDown(void)
{ {
LiteTestPrint("tearDown\n"); LiteTestPrint("tearDown\n");
IoTWatchDogEnable();
return TRUE; return TRUE;
} }
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include "hks_generate_key_test.h" #include "hks_generate_key_test.h"
#include <hctest.h> #include <hctest.h>
#include "iot_watchdog.h"
#include "hks_api.h" #include "hks_api.h"
#include "hks_param.h" #include "hks_param.h"
#include "hks_test_api_performance.h" #include "hks_test_api_performance.h"
...@@ -56,7 +56,6 @@ static void ExecHksInitialize(void const *argument) ...@@ -56,7 +56,6 @@ static void ExecHksInitialize(void const *argument)
static BOOL HksGenerateKeyTestSetUp() static BOOL HksGenerateKeyTestSetUp()
{ {
LiteTestPrint("setup\n"); LiteTestPrint("setup\n");
IoTWatchDogDisable();
osThreadId_t id; osThreadId_t id;
osThreadAttr_t attr; osThreadAttr_t attr;
g_setPriority = osPriorityAboveNormal6; g_setPriority = osPriorityAboveNormal6;
...@@ -80,7 +79,6 @@ static BOOL HksGenerateKeyTestSetUp() ...@@ -80,7 +79,6 @@ static BOOL HksGenerateKeyTestSetUp()
static BOOL HksGenerateKeyTestTearDown() static BOOL HksGenerateKeyTestTearDown()
{ {
LiteTestPrint("tearDown\n"); LiteTestPrint("tearDown\n");
IoTWatchDogEnable();
return TRUE; return TRUE;
} }
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include "hks_generate_random_test.h" #include "hks_generate_random_test.h"
#include "hctest.h" #include "hctest.h"
#include "iot_watchdog.h"
#include "hks_api.h" #include "hks_api.h"
#include "hks_param.h" #include "hks_param.h"
#include "hks_test_api_performance.h" #include "hks_test_api_performance.h"
...@@ -54,7 +54,6 @@ static void ExecHksInitialize(void const *argument) ...@@ -54,7 +54,6 @@ static void ExecHksInitialize(void const *argument)
static BOOL HksGenerateRandomTestSetUp() static BOOL HksGenerateRandomTestSetUp()
{ {
LiteTestPrint("setup\n"); LiteTestPrint("setup\n");
IoTWatchDogDisable();
osThreadId_t id; osThreadId_t id;
osThreadAttr_t attr; osThreadAttr_t attr;
g_setPriority = osPriorityAboveNormal6; g_setPriority = osPriorityAboveNormal6;
...@@ -78,7 +77,6 @@ static BOOL HksGenerateRandomTestSetUp() ...@@ -78,7 +77,6 @@ static BOOL HksGenerateRandomTestSetUp()
static BOOL HksGenerateRandomTestTearDown() static BOOL HksGenerateRandomTestTearDown()
{ {
LiteTestPrint("tearDown\n"); LiteTestPrint("tearDown\n");
IoTWatchDogEnable();
return TRUE; return TRUE;
} }
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#ifndef _CUT_AUTHENTICATE_ #ifndef _CUT_AUTHENTICATE_
#include <hctest.h> #include <hctest.h>
#include "iot_watchdog.h"
#include "hks_api.h" #include "hks_api.h"
#include "hks_param.h" #include "hks_param.h"
#include "hks_test_api_performance.h" #include "hks_test_api_performance.h"
...@@ -58,7 +58,6 @@ static void ExecHksInitialize(void const *argument) ...@@ -58,7 +58,6 @@ static void ExecHksInitialize(void const *argument)
static BOOL HksHashTestSetUp() static BOOL HksHashTestSetUp()
{ {
LiteTestPrint("setup\n"); LiteTestPrint("setup\n");
IoTWatchDogDisable();
osThreadId_t id; osThreadId_t id;
osThreadAttr_t attr; osThreadAttr_t attr;
g_setPriority = osPriorityAboveNormal6; g_setPriority = osPriorityAboveNormal6;
...@@ -82,7 +81,6 @@ static BOOL HksHashTestSetUp() ...@@ -82,7 +81,6 @@ static BOOL HksHashTestSetUp()
static BOOL HksHashTestTearDown() static BOOL HksHashTestTearDown()
{ {
LiteTestPrint("tearDown\n"); LiteTestPrint("tearDown\n");
IoTWatchDogEnable();
return TRUE; return TRUE;
} }
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include "hks_mac_test.h" #include "hks_mac_test.h"
#include <hctest.h> #include <hctest.h>
#include "iot_watchdog.h"
#include "hks_api.h" #include "hks_api.h"
#include "hks_param.h" #include "hks_param.h"
#include "hks_test_api_performance.h" #include "hks_test_api_performance.h"
...@@ -79,7 +79,6 @@ static void ExecHksInitialize(void const *argument) ...@@ -79,7 +79,6 @@ static void ExecHksInitialize(void const *argument)
static BOOL HksMacTestSetUp() static BOOL HksMacTestSetUp()
{ {
LiteTestPrint("setup\n"); LiteTestPrint("setup\n");
IoTWatchDogDisable();
osThreadId_t id; osThreadId_t id;
osThreadAttr_t attr; osThreadAttr_t attr;
g_setPriority = osPriorityAboveNormal6; g_setPriority = osPriorityAboveNormal6;
...@@ -103,7 +102,6 @@ static BOOL HksMacTestSetUp() ...@@ -103,7 +102,6 @@ static BOOL HksMacTestSetUp()
static BOOL HksMacTestTearDown() static BOOL HksMacTestTearDown()
{ {
LiteTestPrint("tearDown\n"); LiteTestPrint("tearDown\n");
IoTWatchDogEnable();
return TRUE; return TRUE;
} }
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include "hks_modify_key_test.h" #include "hks_modify_key_test.h"
#include <hctest.h> #include <hctest.h>
#include "iot_watchdog.h"
#include "hks_api.h" #include "hks_api.h"
#include "hks_param.h" #include "hks_param.h"
#include "hks_test_api_performance.h" #include "hks_test_api_performance.h"
...@@ -107,7 +107,6 @@ static void ExecHksInitialize(void const *argument) ...@@ -107,7 +107,6 @@ static void ExecHksInitialize(void const *argument)
static BOOL HksModifyKeyTestSetUp() static BOOL HksModifyKeyTestSetUp()
{ {
LiteTestPrint("setup\n"); LiteTestPrint("setup\n");
IoTWatchDogDisable();
osThreadId_t id; osThreadId_t id;
osThreadAttr_t attr; osThreadAttr_t attr;
g_setPriority = osPriorityAboveNormal6; g_setPriority = osPriorityAboveNormal6;
...@@ -136,7 +135,6 @@ static BOOL HksModifyKeyTestTearDown() ...@@ -136,7 +135,6 @@ static BOOL HksModifyKeyTestTearDown()
{ {
LiteTestPrint("tearDown\n"); LiteTestPrint("tearDown\n");
HksTestRemoveFile(); HksTestRemoveFile();
IoTWatchDogEnable();
return TRUE; return TRUE;
} }
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include "hks_others_test.h" #include "hks_others_test.h"
#include <hctest.h> #include <hctest.h>
#include "iot_watchdog.h"
#include "hks_api.h" #include "hks_api.h"
#include "hks_param.h" #include "hks_param.h"
#include "hks_type.h" #include "hks_type.h"
...@@ -53,7 +53,6 @@ static void ExecHksInitialize(void const *argument) ...@@ -53,7 +53,6 @@ static void ExecHksInitialize(void const *argument)
static BOOL HksOthersTestSetUp() static BOOL HksOthersTestSetUp()
{ {
LiteTestPrint("setup\n"); LiteTestPrint("setup\n");
IoTWatchDogDisable();
osThreadId_t id; osThreadId_t id;
osThreadAttr_t attr; osThreadAttr_t attr;
g_setPriority = osPriorityAboveNormal6; g_setPriority = osPriorityAboveNormal6;
...@@ -77,7 +76,6 @@ static BOOL HksOthersTestSetUp() ...@@ -77,7 +76,6 @@ static BOOL HksOthersTestSetUp()
static BOOL HksOthersTestTearDown() static BOOL HksOthersTestTearDown()
{ {
LiteTestPrint("tearDown\n"); LiteTestPrint("tearDown\n");
IoTWatchDogEnable();
return TRUE; return TRUE;
} }
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include "hks_safe_cipher_key_test.h" #include "hks_safe_cipher_key_test.h"
#include <hctest.h> #include <hctest.h>
#include "iot_watchdog.h"
#include "hks_api.h" #include "hks_api.h"
#include "hks_param.h" #include "hks_param.h"
#include "hks_test_curve25519.h" #include "hks_test_curve25519.h"
...@@ -58,7 +58,6 @@ static void ExecHksInitialize(void const *argument) ...@@ -58,7 +58,6 @@ static void ExecHksInitialize(void const *argument)
static BOOL HksSafeCipherKeyTestSetUp() static BOOL HksSafeCipherKeyTestSetUp()
{ {
LiteTestPrint("setup\n"); LiteTestPrint("setup\n");
IoTWatchDogDisable();
osThreadId_t id; osThreadId_t id;
osThreadAttr_t attr; osThreadAttr_t attr;
g_setPriority = osPriorityAboveNormal6; g_setPriority = osPriorityAboveNormal6;
...@@ -83,7 +82,6 @@ static BOOL HksSafeCipherKeyTestSetUp() ...@@ -83,7 +82,6 @@ static BOOL HksSafeCipherKeyTestSetUp()
static BOOL HksSafeCipherKeyTestTearDown() static BOOL HksSafeCipherKeyTestTearDown()
{ {
LiteTestPrint("tearDown\n"); LiteTestPrint("tearDown\n");
IoTWatchDogEnable();
return TRUE; return TRUE;
} }
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include "hks_safe_compare_key_test.h" #include "hks_safe_compare_key_test.h"
#include <hctest.h> #include <hctest.h>
#include "iot_watchdog.h"
#include "hks_api.h" #include "hks_api.h"
#include "hks_param.h" #include "hks_param.h"
#include "hks_test_api_performance.h" #include "hks_test_api_performance.h"
...@@ -62,7 +62,6 @@ static void ExecHksInitialize(void const *argument) ...@@ -62,7 +62,6 @@ static void ExecHksInitialize(void const *argument)
static BOOL HksSafeCompareKeyTestSetUp() static BOOL HksSafeCompareKeyTestSetUp()
{ {
LiteTestPrint("setup\n"); LiteTestPrint("setup\n");
IoTWatchDogDisable();
osThreadId_t id; osThreadId_t id;
osThreadAttr_t attr; osThreadAttr_t attr;
g_setPriority = osPriorityAboveNormal6; g_setPriority = osPriorityAboveNormal6;
...@@ -86,7 +85,6 @@ static BOOL HksSafeCompareKeyTestSetUp() ...@@ -86,7 +85,6 @@ static BOOL HksSafeCompareKeyTestSetUp()
static BOOL HksSafeCompareKeyTestTearDown() static BOOL HksSafeCompareKeyTestTearDown()
{ {
LiteTestPrint("tearDown\n"); LiteTestPrint("tearDown\n");
IoTWatchDogEnable();
return TRUE; return TRUE;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册