From 12d98b144b70e726d3fd31ddc9d17ed855d0ec1b Mon Sep 17 00:00:00 2001
From: kenneth <459864689@qq.com>
Date: Tue, 18 May 2021 14:33:59 +0800
Subject: [PATCH] fix: fix length typo
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
fix typos length、there、necessary
close https://gitee.com/openharmony/kernel_liteos_a/issues/I3RSY0
---
fs/fat/os_adapt/fatfs.h | 2 +-
fs/fat/virpart/src/virpart.c | 16 +++++-----
kernel/include/los_queue.h | 2 +-
kernel/include/los_swtmr.h | 2 +-
.../kernel_base/ipc/queue/It_los_queue.h | 4 +--
.../ipc/queue/full/It_los_queue_002.c | 4 +--
.../ipc/queue/full/It_los_queue_003.c | 4 +--
.../ipc/queue/full/It_los_queue_005.c | 4 +--
.../ipc/queue/full/It_los_queue_006.c | 4 +--
.../ipc/queue/full/It_los_queue_007.c | 4 +--
.../ipc/queue/full/It_los_queue_008.c | 4 +--
.../ipc/queue/full/It_los_queue_009.c | 4 +--
.../ipc/queue/full/It_los_queue_010.c | 4 +--
.../ipc/queue/full/It_los_queue_011.c | 6 ++--
.../ipc/queue/full/It_los_queue_015.c | 2 +-
.../ipc/queue/full/It_los_queue_017.c | 2 +-
.../ipc/queue/full/It_los_queue_018.c | 4 +--
.../ipc/queue/full/It_los_queue_019.c | 10 +++----
.../ipc/queue/full/It_los_queue_020.c | 4 +--
.../ipc/queue/full/It_los_queue_021.c | 4 +--
.../ipc/queue/full/It_los_queue_022.c | 4 +--
.../ipc/queue/full/It_los_queue_023.c | 4 +--
.../ipc/queue/full/It_los_queue_024.c | 4 +--
.../ipc/queue/full/It_los_queue_026.c | 4 +--
.../ipc/queue/full/It_los_queue_027.c | 4 +--
.../ipc/queue/full/It_los_queue_028.c | 4 +--
.../ipc/queue/full/It_los_queue_029.c | 4 +--
.../ipc/queue/full/It_los_queue_032.c | 4 +--
.../ipc/queue/full/It_los_queue_033.c | 2 +-
.../ipc/queue/full/It_los_queue_037.c | 4 +--
.../ipc/queue/full/It_los_queue_038.c | 4 +--
.../ipc/queue/full/It_los_queue_040.c | 2 +-
.../ipc/queue/full/It_los_queue_041.c | 4 +--
.../ipc/queue/full/It_los_queue_042.c | 4 +--
.../ipc/queue/full/It_los_queue_043.c | 4 +--
.../ipc/queue/full/It_los_queue_044.c | 4 +--
.../ipc/queue/full/It_los_queue_045.c | 2 +-
.../ipc/queue/full/It_los_queue_046.c | 4 +--
.../ipc/queue/full/It_los_queue_047.c | 4 +--
.../ipc/queue/full/It_los_queue_048.c | 4 +--
.../ipc/queue/full/It_los_queue_050.c | 4 +--
.../ipc/queue/full/It_los_queue_051.c | 2 +-
.../ipc/queue/full/It_los_queue_052.c | 2 +-
.../ipc/queue/full/It_los_queue_053.c | 4 +--
.../ipc/queue/full/It_los_queue_054.c | 4 +--
.../ipc/queue/full/It_los_queue_055.c | 4 +--
.../ipc/queue/full/It_los_queue_056.c | 4 +--
.../ipc/queue/full/It_los_queue_057.c | 4 +--
.../ipc/queue/full/It_los_queue_058.c | 4 +--
.../ipc/queue/full/It_los_queue_059.c | 4 +--
.../ipc/queue/full/It_los_queue_064.c | 4 +--
.../ipc/queue/full/It_los_queue_068.c | 2 +-
.../ipc/queue/full/It_los_queue_069.c | 2 +-
.../ipc/queue/full/It_los_queue_070.c | 2 +-
.../ipc/queue/full/It_los_queue_071.c | 2 +-
.../ipc/queue/full/It_los_queue_072.c | 2 +-
.../ipc/queue/full/It_los_queue_074.c | 2 +-
.../ipc/queue/full/It_los_queue_087.c | 4 +--
.../ipc/queue/full/It_los_queue_088.c | 20 ++++++-------
.../ipc/queue/full/It_los_queue_089.c | 14 ++++-----
.../ipc/queue/full/It_los_queue_096.c | 4 +--
.../ipc/queue/full/It_los_queue_098.c | 12 ++++----
.../ipc/queue/full/It_los_queue_099.c | 6 ++--
.../ipc/queue/full/It_los_queue_101.c | 8 ++---
.../ipc/queue/full/It_los_queue_102.c | 10 +++----
.../ipc/queue/full/It_los_queue_103.c | 4 +--
.../ipc/queue/full/It_los_queue_104.c | 4 +--
.../ipc/queue/full/It_los_queue_106.c | 18 +++++------
.../ipc/queue/full/It_los_queue_107.c | 24 +++++++--------
.../ipc/queue/full/It_los_queue_108.c | 8 ++---
.../ipc/queue/full/It_los_queue_109.c | 8 ++---
.../ipc/queue/full/It_los_queue_110.c | 8 ++---
.../ipc/queue/full/It_los_queue_111.c | 16 +++++-----
.../ipc/queue/full/It_los_queue_112.c | 16 +++++-----
.../ipc/queue/full/It_los_queue_113.c | 16 +++++-----
.../ipc/queue/full/It_los_queue_114.c | 12 ++++----
.../ipc/queue/full/It_los_queue_116.c | 4 +--
.../ipc/queue/smoke/It_los_queue_001.c | 4 +--
.../ipc/queue/smoke/It_los_queue_097.c | 4 +--
.../ipc/queue/smoke/It_los_queue_100.c | 12 ++++----
.../ipc/queue/smoke/It_los_queue_105.c | 30 +++++++++----------
.../ipc/queue/smp/It_smp_los_queue_001.c | 4 +--
.../ipc/queue/smp/It_smp_los_queue_002.c | 4 +--
.../ipc/queue/smp/It_smp_los_queue_003.c | 4 +--
.../ipc/queue/smp/It_smp_los_queue_004.c | 4 +--
.../ipc/queue/smp/It_smp_los_queue_005.c | 4 +--
.../ipc/queue/smp/It_smp_los_queue_006.c | 4 +--
.../ipc/queue/smp/It_smp_los_queue_007.c | 4 +--
.../ipc/queue/smp/It_smp_los_queue_008.c | 4 +--
.../ipc/queue/smp/It_smp_los_queue_009.c | 4 +--
.../ipc/queue/smp/It_smp_los_queue_010.c | 4 +--
.../ipc/queue/smp/It_smp_los_queue_011.c | 4 +--
.../ipc/queue/smp/It_smp_los_queue_012.c | 4 +--
.../ipc/queue/smp/It_smp_los_queue_013.c | 4 +--
.../ipc/queue/smp/It_smp_los_queue_014.c | 4 +--
.../ipc/queue/smp/It_smp_los_queue_015.c | 4 +--
.../ipc/queue/smp/It_smp_los_queue_016.c | 4 +--
.../ipc/queue/smp/It_smp_los_queue_017.c | 4 +--
.../ipc/queue/smp/It_smp_los_queue_018.c | 4 +--
.../ipc/queue/smp/It_smp_los_queue_019.c | 4 +--
.../ipc/queue/smp/It_smp_los_queue_020.c | 4 +--
.../ipc/queue/smp/It_smp_los_queue_021.c | 4 +--
.../ipc/queue/smp/It_smp_los_queue_022.c | 4 +--
.../ipc/queue/smp/It_smp_los_queue_023.c | 4 +--
.../ipc/queue/smp/It_smp_los_queue_024.c | 4 +--
.../ipc/queue/smp/It_smp_los_queue_025.c | 4 +--
.../ipc/queue/smp/It_smp_los_queue_026.c | 4 +--
.../ipc/queue/smp/It_smp_los_queue_027.c | 4 +--
.../ipc/queue/smp/It_smp_los_queue_029.c | 4 +--
.../ipc/queue/smp/It_smp_los_queue_031.c | 4 +--
.../ipc/queue/smp/It_smp_los_queue_032.c | 4 +--
.../unittest/fs/jffs/full/It_vfs_jffs_530.cpp | 2 +-
.../unittest/fs/vfat2/full/It_vfs_fat_674.cpp | 4 +--
.../unittest/fs/vfat2/full/It_vfs_fat_675.cpp | 4 +--
.../unittest/fs/vfat2/full/It_vfs_fat_676.cpp | 4 +--
.../unittest/fs/vfat2/full/It_vfs_fat_677.cpp | 4 +--
.../unittest/fs/vfat2/full/It_vfs_fat_678.cpp | 4 +--
117 files changed, 312 insertions(+), 312 deletions(-)
diff --git a/fs/fat/os_adapt/fatfs.h b/fs/fat/os_adapt/fatfs.h
index a7f63089..5d329700 100644
--- a/fs/fat/os_adapt/fatfs.h
+++ b/fs/fat/os_adapt/fatfs.h
@@ -49,7 +49,7 @@ extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
-#define MAX_LFNAME_LENTH 256
+#define MAX_LFNAME_LENGTH 256
#define LABEL_LEN 12
#define FAT_RESERVED_NUM 2
#define FAT32_MAXSIZE 0x100000000
diff --git a/fs/fat/virpart/src/virpart.c b/fs/fat/virpart/src/virpart.c
index 83d66188..9d0238c2 100644
--- a/fs/fat/virpart/src/virpart.c
+++ b/fs/fat/virpart/src/virpart.c
@@ -215,7 +215,7 @@ static FRESULT FatfsScanClear(INT vol)
FRESULT ret;
DIR dir;
FILINFO fno;
- CHAR path[MAX_LFNAME_LENTH];
+ CHAR path[MAX_LFNAME_LENGTH];
INT num;
INT res;
@@ -224,7 +224,7 @@ static FRESULT FatfsScanClear(INT vol)
(void)memset_s(path, sizeof(path), 0, sizeof(path));
- res = snprintf_s(path, MAX_LFNAME_LENTH, MAX_LFNAME_LENTH - 1, "%d:/", vol);
+ res = snprintf_s(path, MAX_LFNAME_LENGTH, MAX_LFNAME_LENGTH - 1, "%d:/", vol);
if (res < 0) {
return FR_INVALID_NAME;
}
@@ -274,13 +274,13 @@ static FRESULT FatfsScanClear(INT vol)
static FRESULT FatfsBuildEntry(FATFS *fat, INT vol)
{
UINT i;
- CHAR path[MAX_LFNAME_LENTH];
+ CHAR path[MAX_LFNAME_LENGTH];
FRESULT ret;
DIR dir;
INT res;
for (i = 0; i < fat->vir_amount; i++) {
- res = snprintf_s(path, MAX_LFNAME_LENTH, MAX_LFNAME_LENTH - 1, "%d:%s", vol, CHILDFS(fat, i)->namelabel);
+ res = snprintf_s(path, MAX_LFNAME_LENGTH, MAX_LFNAME_LENGTH - 1, "%d:%s", vol, CHILDFS(fat, i)->namelabel);
if (res < 0) {
return FR_INVALID_NAME;
}
@@ -340,7 +340,7 @@ INT FatFsBindVirPart(void *handle, BYTE vol)
{
INT ret;
FATFS *fat = (FATFS *)handle;
- char path[MAX_LFNAME_LENTH] = {0};
+ char path[MAX_LFNAME_LENGTH] = {0};
if (fat == NULL) {
return -EINVAL;
@@ -413,7 +413,7 @@ INT FatFsMakeVirPart(void *handle, BYTE vol)
{
INT ret;
FATFS *fat = (FATFS *)handle;
- char path[MAX_LFNAME_LENTH] = {0};
+ char path[MAX_LFNAME_LENGTH] = {0};
if (fat == NULL) {
return -EINVAL;
@@ -443,7 +443,7 @@ INT FatFsMakeVirPart(void *handle, BYTE vol)
INT fatfs_virstatfs_internel(struct Vnode *mountpt, const char *relpath, struct statfs *buf)
{
- char drive[MAX_LFNAME_LENTH];
+ char drive[MAX_LFNAME_LENGTH];
DWORD freClust, allClust;
FATFS *fat = NULL;
INT result, vol;
@@ -462,7 +462,7 @@ INT fatfs_virstatfs_internel(struct Vnode *mountpt, const char *relpath, struct
return -ENOENT;
}
- if (strlen(relpath) > MAX_LFNAME_LENTH) {
+ if (strlen(relpath) > MAX_LFNAME_LENGTH) {
return -EFAULT;
}
diff --git a/kernel/include/los_queue.h b/kernel/include/los_queue.h
index b9469fce..4beaffdf 100644
--- a/kernel/include/los_queue.h
+++ b/kernel/include/los_queue.h
@@ -356,7 +356,7 @@ typedef struct tagQueueInfo {
* This API is used to create a message queue.
* @attention
*
- * - Threre are LOSCFG_BASE_IPC_QUEUE_LIMIT queues available, change it's value when necessory.
+ * - There are LOSCFG_BASE_IPC_QUEUE_LIMIT queues available, change it's value when necessary.
*
* @param queueName [IN] Message queue name. Reserved parameter, not used for now.
* @param len [IN] Queue length. The value range is [1,0xffff].
diff --git a/kernel/include/los_swtmr.h b/kernel/include/los_swtmr.h
index 68b77c0c..1e595269 100644
--- a/kernel/include/los_swtmr.h
+++ b/kernel/include/los_swtmr.h
@@ -364,7 +364,7 @@ extern UINT32 LOS_SwtmrTimeGet(UINT16 swtmrID, UINT32 *tick);
* @attention
*
* - Do not use the delay interface in the callback function that handles software timer timeout.
- * - Threre are LOSCFG_BASE_CORE_SWTMR_LIMIT timers available, change it's value when necessory.
+ * - There are LOSCFG_BASE_CORE_SWTMR_LIMIT timers available, change it's value when necessary.
*
*
* @param interval [IN] Timing duration of the software timer to be created (unit: tick).
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/It_los_queue.h b/testsuites/kernel/sample/kernel_base/ipc/queue/It_los_queue.h
index 089ac9f0..fb0b30b6 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/It_los_queue.h
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/It_los_queue.h
@@ -41,8 +41,8 @@ extern "C" {
#endif /* __cpluscplus */
#endif /* __cpluscplus */
-#define QUEUE_SHORT_BUFFER_LENTH 12
-#define QUEUE_STANDARD_BUFFER_LENTH 50
+#define QUEUE_SHORT_BUFFER_LENGTH 12
+#define QUEUE_STANDARD_BUFFER_LENGTH 50
#define QUEUE_BASE_NUM 3
#define QUEUE_BASE_MSGSIZE 8
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_002.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_002.c
index 23fa5cf3..6561733c 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_002.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_002.c
@@ -40,8 +40,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
g_testQueueID01 = 1025; // 1025, ID of successfully created queue control structure.
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_003.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_003.c
index 737e2f19..43a405a3 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_003.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_003.c
@@ -40,8 +40,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, 1); // 3, Set the queue length.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_005.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_005.c
index 22d43a50..787db5b4 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_005.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_005.c
@@ -39,8 +39,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
g_testQueueID01 = LOSCFG_BASE_IPC_QUEUE_CONFIG - 1;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_006.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_006.c
index 5c2b56b7..5cb0724a 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_006.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_006.c
@@ -39,8 +39,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
g_testQueueID01 = 1025; // 1025, ID of successfully created queue control structure.
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_007.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_007.c
index df11eaa9..dec6572b 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_007.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_007.c
@@ -39,8 +39,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
g_testQueueID01 = 1025; // 1025, ID of successfully created queue control structure.
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_008.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_008.c
index 496da0e8..20f51745 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_008.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_008.c
@@ -39,8 +39,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
ret = LOS_QueueCreate("Q1", 1, &g_testQueueID01, 0, 8); // 8, Set the node size of the queue.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_009.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_009.c
index 84b84076..7e0edaf1 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_009.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_009.c
@@ -39,8 +39,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
g_testQueueID01 = 1025; // 1025, ID of successfully created queue control structure.
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_010.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_010.c
index f2d1c72d..840d377a 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_010.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_010.c
@@ -39,8 +39,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSPtest";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSPtest";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
g_testQueueID01 = LOSCFG_BASE_IPC_QUEUE_CONFIG - 1;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_011.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_011.c
index c3b701f2..7b514ecd 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_011.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_011.c
@@ -39,13 +39,13 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSPtest";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSPtest";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, sizeof(UINTPTR)); // 3, Set the queue length.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
- ret = LOS_QueueWrite(g_testQueueID01, &buff1, QUEUE_SHORT_BUFFER_LENTH, 0);
+ ret = LOS_QueueWrite(g_testQueueID01, &buff1, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
ret = LOS_QueueRead(g_testQueueID01, &buff2, sizeof(UINTPTR), 0);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_015.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_015.c
index 57cbb757..b818ccb8 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_015.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_015.c
@@ -40,7 +40,7 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
CHAR buff2[9] = "";
ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, sizeof(UINTPTR)); // 3, Set the queue length.
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_017.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_017.c
index cc1df50b..6aeaab1e 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_017.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_017.c
@@ -40,7 +40,7 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, 8); // 3, Set the queue length; 8, Set the node size of the queue.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_018.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_018.c
index b042c8fb..0710925b 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_018.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_018.c
@@ -40,8 +40,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, 8); // 3, Set the queue length; 8, Set the node size of the queue.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_019.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_019.c
index 37592115..2bebbc0d 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_019.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_019.c
@@ -40,22 +40,22 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, sizeof(UINTPTR)); // 3, Set the queue length.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
- ret = LOS_QueueWrite(g_testQueueID01, &buff1, QUEUE_SHORT_BUFFER_LENTH, 0);
+ ret = LOS_QueueWrite(g_testQueueID01, &buff1, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
- ret = LOS_QueueRead(g_testQueueID01, &buff2, QUEUE_SHORT_BUFFER_LENTH, 0);
+ ret = LOS_QueueRead(g_testQueueID01, &buff2, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
ret = LOS_QueueDelete(g_testQueueID01);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
- ret = LOS_QueueRead(g_testQueueID01, &buff2, QUEUE_SHORT_BUFFER_LENTH, 0);
+ ret = LOS_QueueRead(g_testQueueID01, &buff2, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_ERRNO_QUEUE_NOT_CREATE, ret, EXIT);
ret = LOS_QueueDelete(g_testQueueID01);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_020.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_020.c
index f4ee453c..a2b05a69 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_020.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_020.c
@@ -40,8 +40,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, sizeof(UINTPTR)); // 3, Set the queue length.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_021.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_021.c
index b1e79309..54214e8f 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_021.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_021.c
@@ -42,8 +42,8 @@ static UINT32 Testcase(VOID)
UINT32 ret;
UINT32 index;
UINT32 queueID[LOSCFG_BASE_IPC_QUEUE_CONFIG + 1];
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
UINT32 exsitedQueue = QUEUE_EXISTED_NUM;
for (index = 0; index < LOSCFG_BASE_IPC_QUEUE_CONFIG - exsitedQueue; index++) {
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_022.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_022.c
index ff070eef..3f2bd74e 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_022.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_022.c
@@ -42,8 +42,8 @@ static UINT32 Testcase(VOID)
UINT32 ret;
UINT32 index;
UINT32 queueID[LOSCFG_BASE_IPC_QUEUE_CONFIG + 1];
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
UINT32 exsitedQueue = QUEUE_EXISTED_NUM;
for (index = 0; index < LOSCFG_BASE_IPC_QUEUE_CONFIG - exsitedQueue; index++) {
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_023.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_023.c
index 61e50107..46553ee4 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_023.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_023.c
@@ -40,8 +40,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, sizeof(UINTPTR)); // 3, Set the queue length.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_024.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_024.c
index 39e928b2..ebd5deed 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_024.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_024.c
@@ -40,8 +40,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, sizeof(UINTPTR)); // 3, Set the queue length.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_026.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_026.c
index cc4f781e..c8597038 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_026.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_026.c
@@ -40,8 +40,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "gjl";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "gjl";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, sizeof(UINTPTR)); // 3, Set the queue length.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_027.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_027.c
index 264fd606..e69f559e 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_027.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_027.c
@@ -40,8 +40,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, sizeof(UINTPTR)); // 3, Set the queue length.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_028.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_028.c
index 335bc7ff..2f7dcf4e 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_028.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_028.c
@@ -40,8 +40,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
ret = LOS_QueueWrite(QUEUE_EXISTED_NUM + 1, &buff1, 8, 0); // 8, Write the setting size of queue buffer.
ICUNIT_ASSERT_EQUAL(ret, LOS_ERRNO_QUEUE_NOT_CREATE, ret);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_029.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_029.c
index 05a3cf4c..451e59df 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_029.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_029.c
@@ -40,8 +40,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, sizeof(UINTPTR)); // 3, Set the queue length.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_032.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_032.c
index 59d50dfe..40edd360 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_032.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_032.c
@@ -40,8 +40,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "DOPRA";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "DOPRA";
ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, 8); // 3, Set the queue length; 8, Set the node size of the queue.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_033.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_033.c
index 86522f32..47b716b7 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_033.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_033.c
@@ -40,7 +40,7 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH];
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH];
ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, sizeof(UINTPTR)); // 3, Set the queue length.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_037.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_037.c
index 9c847ab5..a0144103 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_037.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_037.c
@@ -41,8 +41,8 @@ static UINT32 Testcase(VOID)
{
UINT32 ret;
UINT32 index;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "DOPRA";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "DOPRA";
CHAR buff3[8] = "TEST";
UINTPTR buff4;
UINTPTR buff5;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_038.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_038.c
index e8f87026..1b5fec25 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_038.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_038.c
@@ -41,8 +41,8 @@ static UINT32 Testcase(VOID)
{
UINT32 ret;
UINT32 index;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, sizeof(UINTPTR)); // 3, Set the queue length.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_040.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_040.c
index f164a939..880feb47 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_040.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_040.c
@@ -40,7 +40,7 @@ extern "C" {
static VOID TaskF01(VOID)
{
UINT32 ret;
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
g_testCount++;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_041.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_041.c
index d851eece..15e4fbce 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_041.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_041.c
@@ -40,7 +40,7 @@ extern "C" {
static VOID TaskF01(VOID)
{
UINT32 ret;
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
g_testCount++;
@@ -56,7 +56,7 @@ EXIT:
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
TSK_INIT_PARAM_S task1 = { 0 };
task1.pfnTaskEntry = (TSK_ENTRY_FUNC)TaskF01;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_042.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_042.c
index 5e9fb877..3b9c4fe9 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_042.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_042.c
@@ -40,7 +40,7 @@ extern "C" {
static VOID TaskF01(VOID)
{
UINT32 ret;
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
LOS_AtomicInc(&g_testCount);
@@ -56,7 +56,7 @@ EXIT:
static VOID TaskF02(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
LOS_AtomicInc(&g_testCount);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_043.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_043.c
index f37001ad..50d14fbc 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_043.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_043.c
@@ -40,7 +40,7 @@ extern "C" {
static VOID TaskF01(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
LOS_AtomicInc(&g_testCount);
@@ -56,7 +56,7 @@ EXIT:
static VOID TaskF02(VOID)
{
UINT32 ret;
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
LOS_AtomicInc(&g_testCount);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_044.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_044.c
index 33421665..3ceae8d8 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_044.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_044.c
@@ -40,7 +40,7 @@ extern "C" {
static VOID HwiF01(VOID)
{
UINT32 ret;
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
TEST_HwiClear(HWI_NUM_TEST);
@@ -58,7 +58,7 @@ EXIT:
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
g_testCount = 0;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_045.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_045.c
index ccfa07d4..e11fcd6f 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_045.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_045.c
@@ -39,7 +39,7 @@ extern "C" {
static VOID HwiF01(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
TEST_HwiClear(HWI_NUM_TEST);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_046.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_046.c
index 004453ac..24336641 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_046.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_046.c
@@ -40,7 +40,7 @@ extern "C" {
static VOID HwiF01(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
TEST_HwiClear(HWI_NUM_TEST);
@@ -58,7 +58,7 @@ static VOID HwiF01(VOID)
static VOID HwiF02(VOID)
{
UINT32 ret;
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
TEST_HwiClear(HWI_NUM_TEST3);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_047.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_047.c
index 8a56f3cb..3fb31a6c 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_047.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_047.c
@@ -40,7 +40,7 @@ extern "C" {
static VOID TaskF01(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
LOS_AtomicInc(&g_testCount);
@@ -59,7 +59,7 @@ EXIT:
static VOID HwiF01(VOID)
{
UINT32 ret;
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
TEST_HwiClear(HWI_NUM_TEST);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_048.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_048.c
index e2caf484..99f6dd66 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_048.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_048.c
@@ -40,7 +40,7 @@ extern "C" {
static VOID TaskF01(VOID)
{
UINT32 ret;
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
LOS_AtomicInc(&g_testCount);
@@ -57,7 +57,7 @@ EXIT:
static VOID HwiF01(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
TEST_HwiClear(HWI_NUM_TEST);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_050.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_050.c
index c7e63374..f1d4a9f6 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_050.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_050.c
@@ -40,7 +40,7 @@ extern "C" {
static VOID HwiF01(VOID)
{
UINT32 ret;
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
TEST_HwiClear(HWI_NUM_TEST);
@@ -59,7 +59,7 @@ EXIT:
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
g_testCount = 0;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_051.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_051.c
index 0851cb7c..7577dc76 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_051.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_051.c
@@ -40,7 +40,7 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
g_testCount = 0;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_052.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_052.c
index 781e9e6a..3383739a 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_052.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_052.c
@@ -40,7 +40,7 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
g_testCount = 0;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_053.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_053.c
index a87ae0d7..d28ab711 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_053.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_053.c
@@ -39,7 +39,7 @@ extern "C" {
static VOID TaskF01(VOID)
{
UINT32 ret;
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
g_testCount++;
@@ -60,7 +60,7 @@ EXIT:
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
TSK_INIT_PARAM_S task1 = { 0 };
task1.pfnTaskEntry = (TSK_ENTRY_FUNC)TaskF01;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_054.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_054.c
index 85f05fdb..7f9e0a16 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_054.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_054.c
@@ -39,8 +39,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
g_testQueueID01 = 0;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_055.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_055.c
index 5a3147eb..91ff5ca5 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_055.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_055.c
@@ -39,8 +39,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
g_testQueueID01 = 0;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_056.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_056.c
index 8960eda5..32debca3 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_056.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_056.c
@@ -39,8 +39,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
g_testQueueID01 = 0;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_057.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_057.c
index 07bf9e49..8ac781b5 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_057.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_057.c
@@ -40,8 +40,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
char bufname[5002] = {0};
g_testQueueID01 = 0;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_058.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_058.c
index d57d2b42..285224e7 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_058.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_058.c
@@ -40,8 +40,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
UINT32 maxMsgSize;
g_testQueueID01 = LOSCFG_BASE_IPC_QUEUE_CONFIG - 1;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_059.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_059.c
index 58c54de0..afc8514f 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_059.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_059.c
@@ -40,8 +40,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
g_testQueueID01 = 0;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_064.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_064.c
index 87e79c14..0b457ebe 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_064.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_064.c
@@ -40,8 +40,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret, len1;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
g_testQueueID01 = LOSCFG_BASE_IPC_QUEUE_CONFIG - 1;
len1 = 0xFFFF + 1;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_068.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_068.c
index ca2d0b0e..62758c02 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_068.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_068.c
@@ -40,7 +40,7 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
CHAR buff2[7];
g_testQueueID01 = LOSCFG_BASE_IPC_QUEUE_CONFIG - 1;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_069.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_069.c
index 9fad9f7d..90b932ba 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_069.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_069.c
@@ -40,7 +40,7 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
CHAR buff2[10];
g_testQueueID01 = LOSCFG_BASE_IPC_QUEUE_CONFIG - 1;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_070.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_070.c
index 0ecda003..9fefcd60 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_070.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_070.c
@@ -40,7 +40,7 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
CHAR buff2[10];
g_testQueueID01 = LOSCFG_BASE_IPC_QUEUE_CONFIG - 1;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_071.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_071.c
index ec1411b1..19f5881e 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_071.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_071.c
@@ -40,7 +40,7 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
CHAR buff2[10];
g_testQueueID01 = LOSCFG_BASE_IPC_QUEUE_CONFIG - 1;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_072.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_072.c
index c1f585bb..82ff1e40 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_072.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_072.c
@@ -40,7 +40,7 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
CHAR buff2[10];
g_testQueueID01 = LOSCFG_BASE_IPC_QUEUE_CONFIG - 1;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_074.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_074.c
index 8c19001d..93f47114 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_074.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_074.c
@@ -40,7 +40,7 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
CHAR buff2[10];
g_testQueueID01 = LOSCFG_BASE_IPC_QUEUE_CONFIG - 1;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_087.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_087.c
index ff7d2ef4..8788d7fd 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_087.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_087.c
@@ -42,8 +42,8 @@ static UINT32 Testcase(VOID)
UINT32 ret, i;
UINT32 index;
const UINT32 count = 256;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
CHAR filebuf[260] = "abcdeabcde0123456789abcedfghij9876550210abcdeabcde0123456789abcedfghij9876550210abcdeabcde0123"
"456789abcedfghij9876550210abcdeabcde0123456789abcedfghij9876550210abcdeabcde0123456789abcedfgh"
"ij9876550210abcdeabcde0123456789abcedfghij9876550210lalalalalalalala";
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_088.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_088.c
index 54a2114c..7e52514f 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_088.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_088.c
@@ -42,12 +42,12 @@ static UINT32 Testcase(VOID)
UINT32 ret, i;
UINT32 index;
const UINT32 len = 1000; // 1000, Queue buffer length.
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
QUEUE_INFO_S queueInfo;
// 1000, Set the queue length.
- ret = LOS_QueueCreate("Q1", 1000, &g_testQueueID01, 0, QUEUE_SHORT_BUFFER_LENTH);
+ ret = LOS_QueueCreate("Q1", 1000, &g_testQueueID01, 0, QUEUE_SHORT_BUFFER_LENGTH);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
ret = LOS_QueueInfoGet(g_testQueueID01, &queueInfo);
@@ -56,23 +56,23 @@ static UINT32 Testcase(VOID)
ICUNIT_GOTO_EQUAL(queueInfo.uwQueueID, g_testQueueID01, queueInfo.uwQueueID, EXIT);
for (i = 0; i < 1000; i++) { // 1000, Set the queue length.
- ret = LOS_QueueWrite(g_testQueueID01, buff1, QUEUE_SHORT_BUFFER_LENTH, 0);
+ ret = LOS_QueueWrite(g_testQueueID01, buff1, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
}
- ret = LOS_QueueWrite(g_testQueueID01, buff1, QUEUE_SHORT_BUFFER_LENTH, 0);
+ ret = LOS_QueueWrite(g_testQueueID01, buff1, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_ERRNO_QUEUE_ISFULL, ret, EXIT);
for (i = 0; i < 1000; i++) { // 1000, Set the queue length.
- ret = LOS_QueueRead(g_testQueueID01, buff2, QUEUE_SHORT_BUFFER_LENTH, 0);
+ ret = LOS_QueueRead(g_testQueueID01, buff2, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
}
- ret = LOS_QueueRead(g_testQueueID01, buff2, QUEUE_SHORT_BUFFER_LENTH, 0);
+ ret = LOS_QueueRead(g_testQueueID01, buff2, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_ERRNO_QUEUE_ISEMPTY, ret, EXIT);
- ret = LOS_QueueWrite(g_testQueueID01, buff1, QUEUE_SHORT_BUFFER_LENTH, 0);
+ ret = LOS_QueueWrite(g_testQueueID01, buff1, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
- ret = LOS_QueueRead(g_testQueueID01, buff2, QUEUE_SHORT_BUFFER_LENTH, 0);
+ ret = LOS_QueueRead(g_testQueueID01, buff2, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
ret = LOS_QueueInfoGet(g_testQueueID01, &queueInfo);
@@ -80,7 +80,7 @@ static UINT32 Testcase(VOID)
ICUNIT_GOTO_EQUAL(queueInfo.usQueueLen, len, queueInfo.usQueueLen, EXIT);
ICUNIT_GOTO_EQUAL(queueInfo.uwQueueID, g_testQueueID01, queueInfo.uwQueueID, EXIT);
- ret = LOS_QueueRead(g_testQueueID01, buff2, QUEUE_SHORT_BUFFER_LENTH, 0);
+ ret = LOS_QueueRead(g_testQueueID01, buff2, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_ERRNO_QUEUE_ISEMPTY, ret, EXIT);
ret = LOS_QueueDelete(g_testQueueID01);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_089.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_089.c
index 897ba982..5041323c 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_089.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_089.c
@@ -59,24 +59,24 @@ static UINT32 Testcase(VOID)
for (j = 0; j < 100; j++) { // 100, The loop frequency.
for (i = 0; i < 1000; i++) { // 1000, The loop frequency.
- ret = LOS_QueueWrite(g_testQueueID01, filebuf, QUEUE_SHORT_BUFFER_LENTH, 0);
+ ret = LOS_QueueWrite(g_testQueueID01, filebuf, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
}
- ret = LOS_QueueWrite(g_testQueueID01, filebuf, QUEUE_SHORT_BUFFER_LENTH, 0);
+ ret = LOS_QueueWrite(g_testQueueID01, filebuf, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_ERRNO_QUEUE_ISFULL, ret, EXIT);
for (i = 0; i < 1000; i++) { // 1000, The loop frequency.
memset(readbuf, 0, 260); // 260, Read buf size.
- ret = LOS_QueueRead(g_testQueueID01, readbuf, QUEUE_SHORT_BUFFER_LENTH, 0);
+ ret = LOS_QueueRead(g_testQueueID01, readbuf, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
}
- ret = LOS_QueueRead(g_testQueueID01, readbuf, QUEUE_SHORT_BUFFER_LENTH, 0);
+ ret = LOS_QueueRead(g_testQueueID01, readbuf, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_ERRNO_QUEUE_ISEMPTY, ret, EXIT);
}
- ret = LOS_QueueWrite(g_testQueueID01, filebuf, QUEUE_SHORT_BUFFER_LENTH, 0);
+ ret = LOS_QueueWrite(g_testQueueID01, filebuf, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
- ret = LOS_QueueRead(g_testQueueID01, readbuf, QUEUE_SHORT_BUFFER_LENTH, 0);
+ ret = LOS_QueueRead(g_testQueueID01, readbuf, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
ret = LOS_QueueInfoGet(g_testQueueID01, &queueInfo);
@@ -84,7 +84,7 @@ static UINT32 Testcase(VOID)
ICUNIT_GOTO_EQUAL(queueInfo.usQueueLen, len, queueInfo.usQueueLen, EXIT);
ICUNIT_GOTO_EQUAL(queueInfo.uwQueueID, g_testQueueID01, queueInfo.uwQueueID, EXIT);
- ret = LOS_QueueRead(g_testQueueID01, readbuf, QUEUE_SHORT_BUFFER_LENTH, 0);
+ ret = LOS_QueueRead(g_testQueueID01, readbuf, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_ERRNO_QUEUE_ISEMPTY, ret, EXIT);
ret = LOS_QueueDelete(g_testQueueID01);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_096.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_096.c
index 35ca6608..a5ec9e1a 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_096.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_096.c
@@ -41,8 +41,8 @@ static UINT32 Testcase(VOID)
{
UINT32 ret;
UINT32 queueID;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
QUEUE_INFO_S queueInfo;
queueID = LOSCFG_BASE_IPC_QUEUE_CONFIG + 1;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_098.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_098.c
index 498862f5..5671e507 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_098.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_098.c
@@ -41,20 +41,20 @@ static UINT32 Testcase(VOID)
{
UINT32 ret;
UINT32 queueID;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
QUEUE_INFO_S queueInfo;
UINT32 readSize;
queueID = LOSCFG_BASE_IPC_QUEUE_CONFIG + 1;
- memset(buff2, 0, QUEUE_SHORT_BUFFER_LENTH);
+ memset(buff2, 0, QUEUE_SHORT_BUFFER_LENGTH);
readSize = 8; // 8, Read the setting size of queue buffer.
ret = LOS_QueueReadCopy(queueID, &buff2, &readSize, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_ERRNO_QUEUE_INVALID, ret, EXIT);
ICUNIT_GOTO_EQUAL(readSize, 8, readSize, EXIT); // 8, Here, assert that g_testCount is equal to 8.
queueID = LOSCFG_BASE_IPC_QUEUE_CONFIG;
- memset(buff2, 0, QUEUE_SHORT_BUFFER_LENTH);
+ memset(buff2, 0, QUEUE_SHORT_BUFFER_LENGTH);
readSize = 8; // 8, Read the setting size of queue buffer.
ret = LOS_QueueReadCopy(queueID, &buff2, &readSize, 0);
@@ -62,14 +62,14 @@ static UINT32 Testcase(VOID)
ICUNIT_GOTO_EQUAL(readSize, 8, readSize, EXIT); // 8, Here, assert that g_testCount is equal to 8.
queueID = LOSCFG_BASE_IPC_QUEUE_CONFIG - 1;
- memset(buff2, 0, QUEUE_SHORT_BUFFER_LENTH);
+ memset(buff2, 0, QUEUE_SHORT_BUFFER_LENGTH);
readSize = 8; // 8, Read the setting size of queue buffer.
ret = LOS_QueueReadCopy(queueID, &buff2, &readSize, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_ERRNO_QUEUE_NOT_CREATE, ret, EXIT);
ICUNIT_GOTO_EQUAL(readSize, 8, readSize, EXIT); // 8, Here, assert that g_testCount is equal to 8.
queueID = 0;
- memset(buff2, 0, QUEUE_SHORT_BUFFER_LENTH);
+ memset(buff2, 0, QUEUE_SHORT_BUFFER_LENGTH);
readSize = 8; // 8, Read the setting size of queue buffer.
ret = LOS_QueueReadCopy(queueID - 1, &buff2, &readSize, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_ERRNO_QUEUE_INVALID, ret, EXIT);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_099.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_099.c
index 86305774..42d14161 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_099.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_099.c
@@ -41,8 +41,8 @@ static UINT32 Testcase(VOID)
{
UINT32 ret;
UINT32 queueID;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
QUEUE_INFO_S queueInfo;
UINT32 readSize;
@@ -55,7 +55,7 @@ static UINT32 Testcase(VOID)
ret = LOS_QueueDelete(queueID);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
- memset(buff2, 0, QUEUE_SHORT_BUFFER_LENTH);
+ memset(buff2, 0, QUEUE_SHORT_BUFFER_LENGTH);
readSize = 8; // 8, Read the setting size of queue buffer.
ret = LOS_QueueReadCopy(queueID, &buff2, &readSize, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_ERRNO_QUEUE_NOT_CREATE, ret, EXIT);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_101.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_101.c
index 3afe2091..5b28c369 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_101.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_101.c
@@ -41,8 +41,8 @@ static UINT32 Testcase(VOID)
{
UINT32 ret;
UINT32 queueID;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
QUEUE_INFO_S queueInfo;
UINT32 readSize;
@@ -52,12 +52,12 @@ static UINT32 Testcase(VOID)
ret = LOS_QueueWrite(queueID, &buff1, 8, 0); // 8, Write the setting size of queue buffer.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
- memset(buff2, 0, QUEUE_SHORT_BUFFER_LENTH);
+ memset(buff2, 0, QUEUE_SHORT_BUFFER_LENGTH);
readSize = sizeof(buff1);
ret = LOS_QueueReadCopy(queueID, NULL, &readSize, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_ERRNO_QUEUE_READ_PTR_NULL, ret, EXIT);
- memset(buff2, 0, QUEUE_SHORT_BUFFER_LENTH);
+ memset(buff2, 0, QUEUE_SHORT_BUFFER_LENGTH);
readSize = sizeof(buff1);
ret = LOS_QueueReadCopy(queueID, &buff2, &readSize, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_102.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_102.c
index fe26e478..65fb6c17 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_102.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_102.c
@@ -41,8 +41,8 @@ static UINT32 Testcase(VOID)
{
UINT32 ret;
UINT32 queueID;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
QUEUE_INFO_S queueInfo;
UINT32 readSize;
@@ -52,7 +52,7 @@ static UINT32 Testcase(VOID)
ret = LOS_QueueWrite(queueID, &buff1, 8, 0); // 8, Write the setting size of queue buffer.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
- memset(buff2, 0, QUEUE_SHORT_BUFFER_LENTH);
+ memset(buff2, 0, QUEUE_SHORT_BUFFER_LENGTH);
readSize = sizeof(buff1);
ret = LOS_QueueReadCopy(queueID, &buff2, &readSize, 0xffffffff);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
@@ -60,7 +60,7 @@ static UINT32 Testcase(VOID)
ret = LOS_QueueWrite(queueID, &buff1, 8, 0); // 8, Write the setting size of queue buffer.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
- memset(buff2, 0, QUEUE_SHORT_BUFFER_LENTH);
+ memset(buff2, 0, QUEUE_SHORT_BUFFER_LENGTH);
readSize = sizeof(buff1);
ret = LOS_QueueReadCopy(queueID, &buff2, &readSize, 0xffffffff + 1);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
@@ -68,7 +68,7 @@ static UINT32 Testcase(VOID)
ret = LOS_QueueWrite(queueID, &buff1, 8, 0); // 8, Write the setting size of queue buffer.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
- memset(buff2, 0, QUEUE_SHORT_BUFFER_LENTH);
+ memset(buff2, 0, QUEUE_SHORT_BUFFER_LENGTH);
readSize = sizeof(buff1);
ret = LOS_QueueReadCopy(queueID, &buff2, &readSize, 0xffffffff - 1);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_103.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_103.c
index 60b08af8..655953d5 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_103.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_103.c
@@ -41,8 +41,8 @@ static UINT32 Testcase(VOID)
{
UINT32 ret;
UINT32 queueID;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
QUEUE_INFO_S queueInfo;
queueID = LOSCFG_BASE_IPC_QUEUE_CONFIG;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_104.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_104.c
index 571a05d5..75882bb6 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_104.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_104.c
@@ -41,8 +41,8 @@ static UINT32 Testcase(VOID)
{
UINT32 ret;
UINT32 queueID;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
QUEUE_INFO_S queueInfo;
ret = LOS_QueueCreate("Q1", 3, &queueID, 0, 8); // 3, Set the queue length; 8, Set the node size of the queue.
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_106.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_106.c
index 624414b3..5e40b98b 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_106.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_106.c
@@ -41,25 +41,25 @@ static UINT32 Testcase(VOID)
{
UINT32 ret;
UINT32 queueID;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "ABC";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "ABC";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
QUEUE_INFO_S queueInfo;
- ret = LOS_QueueCreate("Q1", 3, &queueID, 0, QUEUE_SHORT_BUFFER_LENTH); // 3, Set the queue length.
+ ret = LOS_QueueCreate("Q1", 3, &queueID, 0, QUEUE_SHORT_BUFFER_LENGTH); // 3, Set the queue length.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
- ret = LOS_QueueWriteCopy(queueID, NULL, QUEUE_SHORT_BUFFER_LENTH, 0);
+ ret = LOS_QueueWriteCopy(queueID, NULL, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_ERRNO_QUEUE_WRITE_PTR_NULL, ret, EXIT);
- memset(buff2, 0, QUEUE_SHORT_BUFFER_LENTH);
- ret = LOS_QueueRead(queueID, &buff2, QUEUE_SHORT_BUFFER_LENTH, 0);
+ memset(buff2, 0, QUEUE_SHORT_BUFFER_LENGTH);
+ ret = LOS_QueueRead(queueID, &buff2, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_ERRNO_QUEUE_ISEMPTY, ret, EXIT);
- ret = LOS_QueueWriteCopy(queueID, &buff1, QUEUE_SHORT_BUFFER_LENTH, 0);
+ ret = LOS_QueueWriteCopy(queueID, &buff1, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
- memset(buff2, 0, QUEUE_SHORT_BUFFER_LENTH);
- ret = LOS_QueueRead(queueID, &buff2, QUEUE_SHORT_BUFFER_LENTH, 0);
+ memset(buff2, 0, QUEUE_SHORT_BUFFER_LENGTH);
+ ret = LOS_QueueRead(queueID, &buff2, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
ret = LOS_QueueDelete(queueID);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_107.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_107.c
index de9dadec..b8a24b94 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_107.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_107.c
@@ -41,32 +41,32 @@ static UINT32 Testcase(VOID)
{
UINT32 ret;
UINT32 queueID;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "123";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "123";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
QUEUE_INFO_S queueInfo;
- ret = LOS_QueueCreate("Q1", 3, &queueID, 0, QUEUE_SHORT_BUFFER_LENTH); // 3, Set the queue length.
+ ret = LOS_QueueCreate("Q1", 3, &queueID, 0, QUEUE_SHORT_BUFFER_LENGTH); // 3, Set the queue length.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
- ret = LOS_QueueWriteCopy(queueID, &buff1, QUEUE_SHORT_BUFFER_LENTH, 0xffffffff);
+ ret = LOS_QueueWriteCopy(queueID, &buff1, QUEUE_SHORT_BUFFER_LENGTH, 0xffffffff);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
- memset(buff2, 0, QUEUE_SHORT_BUFFER_LENTH);
- ret = LOS_QueueRead(queueID, &buff2, QUEUE_SHORT_BUFFER_LENTH, 0);
+ memset(buff2, 0, QUEUE_SHORT_BUFFER_LENGTH);
+ ret = LOS_QueueRead(queueID, &buff2, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
- ret = LOS_QueueWriteCopy(queueID, &buff1, QUEUE_SHORT_BUFFER_LENTH, 0xffffffff + 1);
+ ret = LOS_QueueWriteCopy(queueID, &buff1, QUEUE_SHORT_BUFFER_LENGTH, 0xffffffff + 1);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
- memset(buff2, 0, QUEUE_SHORT_BUFFER_LENTH);
- ret = LOS_QueueRead(queueID, &buff2, QUEUE_SHORT_BUFFER_LENTH, 0);
+ memset(buff2, 0, QUEUE_SHORT_BUFFER_LENGTH);
+ ret = LOS_QueueRead(queueID, &buff2, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
- ret = LOS_QueueWriteCopy(queueID, &buff1, QUEUE_SHORT_BUFFER_LENTH, 0xffffffff - 1);
+ ret = LOS_QueueWriteCopy(queueID, &buff1, QUEUE_SHORT_BUFFER_LENGTH, 0xffffffff - 1);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
- memset(buff2, 0, QUEUE_SHORT_BUFFER_LENTH);
- ret = LOS_QueueRead(queueID, &buff2, QUEUE_SHORT_BUFFER_LENTH, 0);
+ memset(buff2, 0, QUEUE_SHORT_BUFFER_LENGTH);
+ ret = LOS_QueueRead(queueID, &buff2, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
ret = LOS_QueueDelete(queueID);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_108.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_108.c
index 311b3137..9a2d44b2 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_108.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_108.c
@@ -61,16 +61,16 @@ EXIT:
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
QUEUE_INFO_S queueInfo;
g_testCount = 0;
- ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, QUEUE_SHORT_BUFFER_LENTH); // 3, Set the queue length.
+ ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, QUEUE_SHORT_BUFFER_LENGTH); // 3, Set the queue length.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
- ret = LOS_QueueWrite(g_testQueueID01, &buff1, QUEUE_SHORT_BUFFER_LENTH, 0);
+ ret = LOS_QueueWrite(g_testQueueID01, &buff1, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
ret = TEST_HwiCreate(HWI_NUM_TEST, 1, 0, HwiF01, 0);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_109.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_109.c
index 4f3f4336..f5dbf5ae 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_109.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_109.c
@@ -61,8 +61,8 @@ EXIT:
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
QUEUE_INFO_S queueInfo;
TSK_INIT_PARAM_S task1 = { 0 };
@@ -73,10 +73,10 @@ static UINT32 Testcase(VOID)
g_testCount = 0;
- ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, QUEUE_SHORT_BUFFER_LENTH); // 3, Set the queue length.
+ ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, QUEUE_SHORT_BUFFER_LENGTH); // 3, Set the queue length.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
- ret = LOS_QueueWrite(g_testQueueID01, &buff1, QUEUE_SHORT_BUFFER_LENTH, 0);
+ ret = LOS_QueueWrite(g_testQueueID01, &buff1, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
ret = LOS_TaskCreate(&g_testTaskID01, &task1);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_110.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_110.c
index 72f0804a..7e48a783 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_110.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_110.c
@@ -60,16 +60,16 @@ static UINT32 Testcase(VOID)
{
UINT32 ret;
UINT16 swTmrID;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
QUEUE_INFO_S queueInfo;
g_testCount = 0;
- ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, QUEUE_SHORT_BUFFER_LENTH); // 3, Set the queue length.
+ ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, QUEUE_SHORT_BUFFER_LENGTH); // 3, Set the queue length.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
- ret = LOS_QueueWrite(g_testQueueID01, &buff1, QUEUE_SHORT_BUFFER_LENTH, 0);
+ ret = LOS_QueueWrite(g_testQueueID01, &buff1, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
ret = LOS_SwtmrCreate(4, LOS_SWTMR_MODE_ONCE, (SWTMR_PROC_FUNC)SwtmrF01, &swTmrID, 0xffff); // 4, Timing duration of the software timer to be created.
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_111.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_111.c
index 21e8da67..72e22d82 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_111.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_111.c
@@ -40,18 +40,18 @@ extern "C" {
static VOID HwiF01(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
UINT32 readSize;
TEST_HwiClear(HWI_NUM_TEST);
g_testCount++;
- ret = LOS_QueueWriteCopy(g_testQueueID01, &buff1, QUEUE_SHORT_BUFFER_LENTH, 0);
+ ret = LOS_QueueWriteCopy(g_testQueueID01, &buff1, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
- readSize = QUEUE_SHORT_BUFFER_LENTH;
+ readSize = QUEUE_SHORT_BUFFER_LENGTH;
ret = LOS_QueueReadCopy(g_testQueueID01, &buff2, &readSize, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
@@ -65,14 +65,14 @@ EXIT:
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
QUEUE_INFO_S queueInfo;
UINT32 readSize;
g_testCount = 0;
- ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, QUEUE_SHORT_BUFFER_LENTH); // 3, Set the queue length.
+ ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, QUEUE_SHORT_BUFFER_LENGTH); // 3, Set the queue length.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
ret = TEST_HwiCreate(HWI_NUM_TEST, 1, 0, HwiF01, 0);
@@ -87,7 +87,7 @@ static UINT32 Testcase(VOID)
g_testCount++;
- readSize = QUEUE_SHORT_BUFFER_LENTH;
+ readSize = QUEUE_SHORT_BUFFER_LENGTH;
ret = LOS_QueueReadCopy(g_testQueueID01, &buff2, &readSize, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_ERRNO_QUEUE_ISEMPTY, ret, EXIT);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_112.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_112.c
index c3e087eb..85334d30 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_112.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_112.c
@@ -40,18 +40,18 @@ extern "C" {
static VOID TaskF01(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
UINT32 readSize;
TEST_HwiClear(HWI_NUM_TEST);
g_testCount++;
- ret = LOS_QueueWriteCopy(g_testQueueID01, &buff1, QUEUE_SHORT_BUFFER_LENTH, 0);
+ ret = LOS_QueueWriteCopy(g_testQueueID01, &buff1, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
- readSize = QUEUE_SHORT_BUFFER_LENTH;
+ readSize = QUEUE_SHORT_BUFFER_LENGTH;
ret = LOS_QueueReadCopy(g_testQueueID01, &buff2, &readSize, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
@@ -68,8 +68,8 @@ EXIT:
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
QUEUE_INFO_S queueInfo;
TSK_INIT_PARAM_S task1 = { 0 };
UINT32 readSize;
@@ -81,7 +81,7 @@ static UINT32 Testcase(VOID)
g_testCount = 0;
- ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, QUEUE_SHORT_BUFFER_LENTH); // 3, Set the queue length.
+ ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, QUEUE_SHORT_BUFFER_LENGTH); // 3, Set the queue length.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
ret = LOS_TaskCreate(&g_testTaskID01, &task1);
@@ -92,7 +92,7 @@ static UINT32 Testcase(VOID)
g_testCount++;
- readSize = QUEUE_SHORT_BUFFER_LENTH;
+ readSize = QUEUE_SHORT_BUFFER_LENGTH;
ret = LOS_QueueReadCopy(g_testQueueID01, &buff2, &readSize, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_ERRNO_QUEUE_ISEMPTY, ret, EXIT);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_113.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_113.c
index 0ae00141..4381092e 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_113.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_113.c
@@ -40,16 +40,16 @@ extern "C" {
static VOID SwtmrF01(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
UINT32 readSize;
g_testCount++;
- ret = LOS_QueueWriteCopy(g_testQueueID01, &buff1, QUEUE_SHORT_BUFFER_LENTH, 0);
+ ret = LOS_QueueWriteCopy(g_testQueueID01, &buff1, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
- readSize = QUEUE_SHORT_BUFFER_LENTH;
+ readSize = QUEUE_SHORT_BUFFER_LENGTH;
ret = LOS_QueueReadCopy(g_testQueueID01, &buff2, &readSize, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
@@ -64,14 +64,14 @@ static UINT32 Testcase(VOID)
{
UINT32 ret;
UINT16 swTmrID;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
QUEUE_INFO_S queueInfo;
UINT32 readSize;
g_testCount = 0;
- ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, QUEUE_SHORT_BUFFER_LENTH); // 3, Set the queue length.
+ ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, QUEUE_SHORT_BUFFER_LENGTH); // 3, Set the queue length.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
// 4, Timing duration of the software timer to be created.
@@ -86,7 +86,7 @@ static UINT32 Testcase(VOID)
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to 2.
- readSize = QUEUE_SHORT_BUFFER_LENTH;
+ readSize = QUEUE_SHORT_BUFFER_LENGTH;
ret = LOS_QueueReadCopy(g_testQueueID01, &buff2, &readSize, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_ERRNO_QUEUE_ISEMPTY, ret, EXIT);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_114.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_114.c
index 4a3b50f3..95c9e33c 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_114.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_114.c
@@ -42,22 +42,22 @@ static UINT32 Testcase(VOID)
UINT32 ret;
UINT32 i;
UINT32 queueID;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
QUEUE_INFO_S queueInfo;
- ret = LOS_QueueCreate("Q1", 3, &queueID, 0, QUEUE_SHORT_BUFFER_LENTH); // 3, Set the queue length.
+ ret = LOS_QueueCreate("Q1", 3, &queueID, 0, QUEUE_SHORT_BUFFER_LENGTH); // 3, Set the queue length.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
for (i = 0; i < 3; i++) { // 3, The loop frequency.
- ret = LOS_QueueWriteCopy(queueID, &buff1, QUEUE_SHORT_BUFFER_LENTH, 0);
+ ret = LOS_QueueWriteCopy(queueID, &buff1, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
}
- ret = LOS_QueueWrite(queueID, &buff1, QUEUE_SHORT_BUFFER_LENTH, 0);
+ ret = LOS_QueueWrite(queueID, &buff1, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_ERRNO_QUEUE_ISFULL, ret, EXIT);
- ret = LOS_QueueWriteCopy(queueID, &buff1, QUEUE_SHORT_BUFFER_LENTH, 0);
+ ret = LOS_QueueWriteCopy(queueID, &buff1, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_ERRNO_QUEUE_ISFULL, ret, EXIT);
ret = LOS_QueueInfoGet(queueID, &queueInfo);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_116.c b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_116.c
index 27446afa..00fc98e4 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_116.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/full/It_los_queue_116.c
@@ -40,8 +40,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
QUEUE_INFO_S queueInfo;
UINT32 readSize;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/smoke/It_los_queue_001.c b/testsuites/kernel/sample/kernel_base/ipc/queue/smoke/It_los_queue_001.c
index b33b771d..fd068ae0 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/smoke/It_los_queue_001.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/smoke/It_los_queue_001.c
@@ -39,8 +39,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, 8); // 3, Set the queue length; 8, Set the node size of the queue.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/smoke/It_los_queue_097.c b/testsuites/kernel/sample/kernel_base/ipc/queue/smoke/It_los_queue_097.c
index 8580c233..609d8ab5 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/smoke/It_los_queue_097.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/smoke/It_los_queue_097.c
@@ -40,8 +40,8 @@ static UINT32 Testcase(VOID)
{
UINT32 ret;
UINT32 queueID;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
QUEUE_INFO_S queueInfo;
ret = LOS_QueueCreate("Q1", 3, &queueID, 0, 8); // 3, Set the queue length; 8, Set the node size of the queue.
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/smoke/It_los_queue_100.c b/testsuites/kernel/sample/kernel_base/ipc/queue/smoke/It_los_queue_100.c
index 5cc6783f..4d0290c3 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/smoke/It_los_queue_100.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/smoke/It_los_queue_100.c
@@ -41,8 +41,8 @@ static UINT32 Testcase(VOID)
{
UINT32 ret;
UINT32 queueID;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "123";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "123";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
UINT32 readSize;
ret = LOS_QueueCreate("Q1", 3, &queueID, 0, sizeof(UINTPTR)); // 3, Set the queue length.
@@ -51,7 +51,7 @@ static UINT32 Testcase(VOID)
ret = LOS_QueueWrite(queueID, &buff1, 8, 0); // 8, Write the setting size of queue buffer.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
- memset(buff2, 0, QUEUE_SHORT_BUFFER_LENTH);
+ memset(buff2, 0, QUEUE_SHORT_BUFFER_LENGTH);
readSize = sizeof(buff1);
ret = LOS_QueueReadCopy(queueID, &buff2, &readSize, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
@@ -59,7 +59,7 @@ static UINT32 Testcase(VOID)
ret = LOS_QueueWrite(queueID, &buff1, 8, 0); // 8, Write the setting size of queue buffer.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
- memset(buff2, 0, QUEUE_SHORT_BUFFER_LENTH);
+ memset(buff2, 0, QUEUE_SHORT_BUFFER_LENGTH);
readSize = sizeof(buff1) + 1;
ret = LOS_QueueReadCopy(queueID, &buff2, &readSize, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
@@ -67,7 +67,7 @@ static UINT32 Testcase(VOID)
ret = LOS_QueueWrite(queueID, &buff1, 8, 0); // 8, Write the setting size of queue buffer.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
- memset(buff2, 0, QUEUE_SHORT_BUFFER_LENTH);
+ memset(buff2, 0, QUEUE_SHORT_BUFFER_LENGTH);
readSize = sizeof(buff1);
ret = LOS_QueueReadCopy(queueID, &buff2, &readSize, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
@@ -75,7 +75,7 @@ static UINT32 Testcase(VOID)
ret = LOS_QueueWrite(queueID, &buff1, 8, 0); // 8, Write the setting size of queue buffer.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
- memset(buff2, 0, QUEUE_SHORT_BUFFER_LENTH);
+ memset(buff2, 0, QUEUE_SHORT_BUFFER_LENGTH);
readSize = 0;
ret = LOS_QueueReadCopy(queueID, &buff2, &readSize, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_ERRNO_QUEUE_READSIZE_IS_INVALID, ret, EXIT);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/smoke/It_los_queue_105.c b/testsuites/kernel/sample/kernel_base/ipc/queue/smoke/It_los_queue_105.c
index 69edc597..a7a975eb 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/smoke/It_los_queue_105.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/smoke/It_los_queue_105.c
@@ -41,43 +41,43 @@ static UINT32 Testcase(VOID)
{
UINT32 ret;
UINT32 queueID;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "abc";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "abc";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
QUEUE_INFO_S queueInfo;
UINT32 readSize;
- ret = LOS_QueueCreate("Q1", 3, &queueID, 0, QUEUE_SHORT_BUFFER_LENTH); // 3, Set the queue length.
+ ret = LOS_QueueCreate("Q1", 3, &queueID, 0, QUEUE_SHORT_BUFFER_LENGTH); // 3, Set the queue length.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
- ret = LOS_QueueWriteCopy(queueID, &buff1, QUEUE_SHORT_BUFFER_LENTH, 0);
+ ret = LOS_QueueWriteCopy(queueID, &buff1, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
- memset(buff2, 0, QUEUE_SHORT_BUFFER_LENTH);
- ret = LOS_QueueRead(queueID, &buff2, QUEUE_SHORT_BUFFER_LENTH, 0);
+ memset(buff2, 0, QUEUE_SHORT_BUFFER_LENGTH);
+ ret = LOS_QueueRead(queueID, &buff2, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
- ret = LOS_QueueWriteCopy(queueID, &buff1, QUEUE_SHORT_BUFFER_LENTH + PER_ADDED_VALUE, 0);
+ ret = LOS_QueueWriteCopy(queueID, &buff1, QUEUE_SHORT_BUFFER_LENGTH + PER_ADDED_VALUE, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_ERRNO_QUEUE_WRITE_SIZE_TOO_BIG, ret, EXIT);
- memset(buff2, 0, QUEUE_SHORT_BUFFER_LENTH);
- ret = LOS_QueueRead(queueID, &buff2, QUEUE_SHORT_BUFFER_LENTH, 0);
+ memset(buff2, 0, QUEUE_SHORT_BUFFER_LENGTH);
+ ret = LOS_QueueRead(queueID, &buff2, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_ERRNO_QUEUE_ISEMPTY, ret, EXIT);
- ret = LOS_QueueWrite(queueID, &buff1, QUEUE_SHORT_BUFFER_LENTH - 1, 0);
+ ret = LOS_QueueWrite(queueID, &buff1, QUEUE_SHORT_BUFFER_LENGTH - 1, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
- memset(buff2, 0, QUEUE_SHORT_BUFFER_LENTH);
- ret = LOS_QueueRead(queueID, &buff2, QUEUE_SHORT_BUFFER_LENTH, 0);
+ memset(buff2, 0, QUEUE_SHORT_BUFFER_LENGTH);
+ ret = LOS_QueueRead(queueID, &buff2, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
- memset(buff2, 0, QUEUE_SHORT_BUFFER_LENTH);
- ret = LOS_QueueRead(queueID, &buff2, QUEUE_SHORT_BUFFER_LENTH, 0);
+ memset(buff2, 0, QUEUE_SHORT_BUFFER_LENGTH);
+ ret = LOS_QueueRead(queueID, &buff2, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_ERRNO_QUEUE_ISEMPTY, ret, EXIT);
ret = LOS_QueueWrite(queueID, &buff1, 0, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
- memset(buff2, 0, QUEUE_SHORT_BUFFER_LENTH);
+ memset(buff2, 0, QUEUE_SHORT_BUFFER_LENGTH);
readSize = 0;
ret = LOS_QueueReadCopy(queueID, &buff2, &readSize, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_ERRNO_QUEUE_READSIZE_IS_INVALID, ret, EXIT);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_001.c b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_001.c
index fd3b19c2..dfa7e9c0 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_001.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_001.c
@@ -57,8 +57,8 @@ static UINT32 Testcase(VOID)
TSK_INIT_PARAM_S testTask;
g_testCount = 0;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
ret = LOS_QueueCreate("Q1", 1, &g_testQueueID01, 0, 8); // 8, Set the maximum data length of the message queue.
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_002.c b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_002.c
index 554fa104..f0ce7b8b 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_002.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_002.c
@@ -57,8 +57,8 @@ static UINT32 Testcase(VOID)
TSK_INIT_PARAM_S testTask;
g_testCount = 0;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
currCpuid = (ArchCurrCpuid() + 1) % (LOSCFG_KERNEL_CORE_NUM);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_003.c b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_003.c
index 081912e0..dd5209cc 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_003.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_003.c
@@ -57,8 +57,8 @@ static UINT32 Testcase(VOID)
TSK_INIT_PARAM_S testTask;
g_testCount = 0;
- CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
- CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+ CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+ CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
currCpuid = (ArchCurrCpuid() + 1) % (LOSCFG_KERNEL_CORE_NUM);
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_004.c b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_004.c
index 81b18ded..80c8f4f1 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_004.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_004.c
@@ -36,8 +36,8 @@ extern "C" {
#endif /* __cpluscplus */
#endif /* __cpluscplus */
-static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
-static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
static VOID TaskF01(VOID)
{
UINT32 ret;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_005.c b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_005.c
index e7172d95..e0b2a777 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_005.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_005.c
@@ -36,8 +36,8 @@ extern "C" {
#endif /* __cpluscplus */
#endif /* __cpluscplus */
-static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
-static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
static VOID TaskF01(VOID)
{
UINT32 ret;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_006.c b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_006.c
index 6b6ea0f6..f6e01b5a 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_006.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_006.c
@@ -36,8 +36,8 @@ extern "C" {
#endif /* __cpluscplus */
#endif /* __cpluscplus */
-static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
-static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
static VOID TaskF01(VOID)
{
UINT32 ret;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_007.c b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_007.c
index e0f6614e..b55da27e 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_007.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_007.c
@@ -36,8 +36,8 @@ extern "C" {
#endif /* __cpluscplus */
#endif /* __cpluscplus */
-static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
-static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
static VOID TaskF01(VOID)
{
UINT32 ret;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_008.c b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_008.c
index edda2db5..f479e474 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_008.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_008.c
@@ -36,8 +36,8 @@ extern "C" {
#endif /* __cpluscplus */
#endif /* __cpluscplus */
-static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
-static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
static VOID HwiF01(VOID)
{
UINT32 ret;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_009.c b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_009.c
index 1c5acfbd..23b84f9f 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_009.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_009.c
@@ -36,8 +36,8 @@ extern "C" {
#endif /* __cpluscplus */
#endif /* __cpluscplus */
-static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
-static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
static VOID TaskF01(VOID)
{
UINT32 ret;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_010.c b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_010.c
index e18af10c..e83d3048 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_010.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_010.c
@@ -36,8 +36,8 @@ extern "C" {
#endif /* __cpluscplus */
#endif /* __cpluscplus */
-static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
-static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
static VOID TaskF01(VOID)
{
UINT32 ret;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_011.c b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_011.c
index c40c3f06..c3aa061e 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_011.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_011.c
@@ -36,8 +36,8 @@ extern "C" {
#endif /* __cpluscplus */
#endif /* __cpluscplus */
-static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
-static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
static VOID TaskF02(VOID)
{
UINT32 ret;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_012.c b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_012.c
index 748b2b01..b55cd1c3 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_012.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_012.c
@@ -36,8 +36,8 @@ extern "C" {
#endif /* __cpluscplus */
#endif /* __cpluscplus */
-static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
-static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
static VOID TaskF01(VOID)
{
UINT32 ret;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_013.c b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_013.c
index ac654e46..490f544e 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_013.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_013.c
@@ -36,8 +36,8 @@ extern "C" {
#endif /* __cpluscplus */
#endif /* __cpluscplus */
-static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
-static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
static VOID TaskF01(VOID)
{
UINT32 ret;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_014.c b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_014.c
index 50899778..34f906a4 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_014.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_014.c
@@ -37,8 +37,8 @@ extern "C" {
#endif /* __cpluscplus */
-static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
-static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
static VOID TaskF02(VOID)
{
UINT32 ret;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_015.c b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_015.c
index 35cf920b..52cbff0e 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_015.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_015.c
@@ -37,8 +37,8 @@ extern "C" {
#endif /* __cpluscplus */
-static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
-static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
static VOID TaskF01(VOID)
{
UINT32 ret;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_016.c b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_016.c
index ea005e5f..c605bd63 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_016.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_016.c
@@ -36,8 +36,8 @@ extern "C" {
#endif /* __cpluscplus */
#endif /* __cpluscplus */
-static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
-static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
static VOID TaskF01(VOID)
{
UINT32 ret;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_017.c b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_017.c
index 42edef56..80afc6f4 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_017.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_017.c
@@ -36,8 +36,8 @@ extern "C" {
#endif /* __cpluscplus */
#endif /* __cpluscplus */
-static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
-static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
static VOID TaskF01(VOID)
{
UINT32 ret;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_018.c b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_018.c
index 795c364b..ab0b9445 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_018.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_018.c
@@ -36,8 +36,8 @@ extern "C" {
#endif /* __cpluscplus */
#endif /* __cpluscplus */
-static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
-static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
static VOID TaskF01(VOID)
{
UINT32 ret;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_019.c b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_019.c
index ecfda646..b3add687 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_019.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_019.c
@@ -36,8 +36,8 @@ extern "C" {
#endif /* __cpluscplus */
#endif /* __cpluscplus */
-static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
-static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
static VOID HwiF01(VOID)
{
UINT32 ret;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_020.c b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_020.c
index c7ea5b95..9977ec45 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_020.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_020.c
@@ -37,8 +37,8 @@ extern "C" {
#endif /* __cpluscplus */
-static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
-static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
static VOID TaskF01(VOID)
{
UINT32 ret;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_021.c b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_021.c
index 5977a3db..24319b56 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_021.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_021.c
@@ -37,8 +37,8 @@ extern "C" {
#endif /* __cpluscplus */
-static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
-static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
static VOID TaskF01(VOID)
{
UINT32 ret;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_022.c b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_022.c
index 754dfd7a..e773f5ef 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_022.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_022.c
@@ -37,8 +37,8 @@ extern "C" {
#endif /* __cpluscplus */
-static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
-static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
static VOID TaskF01(VOID)
{
UINT32 ret;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_023.c b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_023.c
index b3d75d5e..ee814318 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_023.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_023.c
@@ -37,8 +37,8 @@ extern "C" {
#endif /* __cpluscplus */
-static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
-static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
static VOID TaskF01(VOID)
{
UINT32 ret;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_024.c b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_024.c
index 01e1f5a6..43a83fe3 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_024.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_024.c
@@ -37,8 +37,8 @@ extern "C" {
#endif /* __cpluscplus */
-static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
-static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
static VOID TaskF02(VOID)
{
UINT32 ret;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_025.c b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_025.c
index 40621d02..ecc8997c 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_025.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_025.c
@@ -37,8 +37,8 @@ extern "C" {
#endif /* __cpluscplus */
-static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
-static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
static VOID TaskF01(VOID)
{
UINT32 ret;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_026.c b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_026.c
index 15cecefb..89df643e 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_026.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_026.c
@@ -37,8 +37,8 @@ extern "C" {
#endif /* __cpluscplus */
-static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
-static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
static VOID TaskF01(VOID)
{
UINT32 ret;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_027.c b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_027.c
index 75c416e7..0a75659e 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_027.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_027.c
@@ -37,8 +37,8 @@ extern "C" {
#endif /* __cpluscplus */
-static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
-static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
static volatile UINT32 g_runFlag = 1;
static VOID TaskF01(VOID)
{
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_029.c b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_029.c
index d2997d43..3b22c3ce 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_029.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_029.c
@@ -36,8 +36,8 @@ extern "C" {
#endif /* __cpluscplus */
#endif /* __cpluscplus */
-static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
-static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
static VOID TaskF01(VOID)
{
UINT32 ret;
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_031.c b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_031.c
index b64fee41..c0188a5b 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_031.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_031.c
@@ -37,8 +37,8 @@ extern "C" {
#endif /* __cpluscplus */
-static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
-static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
static UINT32 g_ret = 0xff;
static VOID TaskF01(VOID)
{
diff --git a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_032.c b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_032.c
index f5bb30bd..4bc2ae1e 100644
--- a/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_032.c
+++ b/testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_032.c
@@ -37,8 +37,8 @@ extern "C" {
#endif /* __cpluscplus */
-static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
-static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
+static CHAR g_buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
+static CHAR g_buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
static UINT32 g_ret = 0xff;
static VOID TaskF02(VOID)
{
diff --git a/testsuites/unittest/fs/jffs/full/It_vfs_jffs_530.cpp b/testsuites/unittest/fs/jffs/full/It_vfs_jffs_530.cpp
index c06a3db9..ee0cc196 100644
--- a/testsuites/unittest/fs/jffs/full/It_vfs_jffs_530.cpp
+++ b/testsuites/unittest/fs/jffs/full/It_vfs_jffs_530.cpp
@@ -48,7 +48,7 @@ static UINT32 Testcase(VOID)
i++;
strcat(pathname1, "t");
}
- ICUNIT_GOTO_EQUAL(strlen(pathname1), 255, strlen(pathname1), EXIT); // compare pathname lenth with 255
+ ICUNIT_GOTO_EQUAL(strlen(pathname1), 255, strlen(pathname1), EXIT); // compare pathname length with 255
fd = open(pathname1, O_NONBLOCK | O_CREAT | O_RDWR | O_EXCL, S_IRWXU | S_IRWXG | S_IRWXO);
ICUNIT_GOTO_NOT_EQUAL(fd, JFFS_IS_ERROR, fd, EXIT);
diff --git a/testsuites/unittest/fs/vfat2/full/It_vfs_fat_674.cpp b/testsuites/unittest/fs/vfat2/full/It_vfs_fat_674.cpp
index 7d4972df..43559317 100644
--- a/testsuites/unittest/fs/vfat2/full/It_vfs_fat_674.cpp
+++ b/testsuites/unittest/fs/vfat2/full/It_vfs_fat_674.cpp
@@ -122,11 +122,11 @@ EXIT:
/* *
* -@test IT_FS_FAT_674
* -@tspec The function test for fallocate fallocate64
-* -@ttitle The function test for fallocate fallocate64 with the lenth smaller than write
+* -@ttitle The function test for fallocate fallocate64 with the length smaller than write
* -@tprecon The filesystem module is open
* -@tbrief
1. use the open to create one file;
-2. use the function fallocate fallocate64 to apply the space with the lenth smaller than write;
+2. use the function fallocate fallocate64 to apply the space with the length smaller than write;
3. close the file;
4. remove the file.
* -@texpect
diff --git a/testsuites/unittest/fs/vfat2/full/It_vfs_fat_675.cpp b/testsuites/unittest/fs/vfat2/full/It_vfs_fat_675.cpp
index 8ee77b8c..2f3a4c92 100644
--- a/testsuites/unittest/fs/vfat2/full/It_vfs_fat_675.cpp
+++ b/testsuites/unittest/fs/vfat2/full/It_vfs_fat_675.cpp
@@ -122,11 +122,11 @@ EXIT:
/* *
* -@test IT_FS_FAT_675
* -@tspec The function test for fallocate fallocate64
-* -@ttitle The function test for fallocate fallocate64 with the lenth equals to write
+* -@ttitle The function test for fallocate fallocate64 with the length equals to write
* -@tprecon The filesystem module is open
* -@tbrief
1. use the open to create one file;
-2. use the function fallocate fallocate64 to apply the space with the lenth equals to write;
+2. use the function fallocate fallocate64 to apply the space with the length equals to write;
3. close the file;
4. remove the file.
* -@texpect
diff --git a/testsuites/unittest/fs/vfat2/full/It_vfs_fat_676.cpp b/testsuites/unittest/fs/vfat2/full/It_vfs_fat_676.cpp
index 8f25af0a..90b28b11 100644
--- a/testsuites/unittest/fs/vfat2/full/It_vfs_fat_676.cpp
+++ b/testsuites/unittest/fs/vfat2/full/It_vfs_fat_676.cpp
@@ -134,11 +134,11 @@ EXIT:
/* *
* -@test IT_FS_FAT_676
* -@tspec The function test for fallocate fallocate64
-* -@ttitle The function test for fallocate fallocate64 with the lenth is 2GB
+* -@ttitle The function test for fallocate fallocate64 with the length is 2GB
* -@tprecon The filesystem module is open
* -@tbrief
1. use the open to create one file;
-2. use the function fallocate fallocate64 to apply the space with the lenth is 2GB;
+2. use the function fallocate fallocate64 to apply the space with the length is 2GB;
3. close the file;
4. remove the file.
* -@texpect
diff --git a/testsuites/unittest/fs/vfat2/full/It_vfs_fat_677.cpp b/testsuites/unittest/fs/vfat2/full/It_vfs_fat_677.cpp
index f9ac20f5..51b2483c 100644
--- a/testsuites/unittest/fs/vfat2/full/It_vfs_fat_677.cpp
+++ b/testsuites/unittest/fs/vfat2/full/It_vfs_fat_677.cpp
@@ -198,11 +198,11 @@ EXIT:
/* *
* -@test IT_FS_FAT_677
* -@tspec The function test for fallocate fallocate64
-* -@ttitle The function test for fallocate fallocate64 with the lenth is 2GB+1
+* -@ttitle The function test for fallocate fallocate64 with the length is 2GB+1
* -@tprecon The filesystem module is open
* -@tbrief
1. use the open to create one file;
-2. use the function fallocate fallocate64 to apply the space with the lenth is 2GB+1;
+2. use the function fallocate fallocate64 to apply the space with the length is 2GB+1;
3. close the file;
4. remove the file.
* -@texpect
diff --git a/testsuites/unittest/fs/vfat2/full/It_vfs_fat_678.cpp b/testsuites/unittest/fs/vfat2/full/It_vfs_fat_678.cpp
index 2c519646..ca4c4efb 100644
--- a/testsuites/unittest/fs/vfat2/full/It_vfs_fat_678.cpp
+++ b/testsuites/unittest/fs/vfat2/full/It_vfs_fat_678.cpp
@@ -143,11 +143,11 @@ EXIT:
/* *
* -@test IT_FS_FAT_678
* -@tspec The function test for fallocate fallocate64
-* -@ttitle The function test for fallocate fallocate64 with the lenth is 2GB-1
+* -@ttitle The function test for fallocate fallocate64 with the length is 2GB-1
* -@tprecon The filesystem module is open
* -@tbrief
1. use the open to create one file;
-2. use the function fallocate fallocate64 to apply the space with the lenth is 2GB-1;
+2. use the function fallocate fallocate64 to apply the space with the length is 2GB-1;
3. close the file;
4. remove the file.
* -@texpect