Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Kernel Liteos A
提交
bbbd9678
K
Kernel Liteos A
项目概览
OpenHarmony
/
Kernel Liteos A
1 年多 前同步成功
通知
460
Star
414
Fork
55
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
4
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel Liteos A
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
4
Issue
4
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
bbbd9678
编写于
6月 23, 2022
作者:
O
openharmony_ci
提交者:
Gitee
6月 23, 2022
浏览文件
操作
浏览文件
下载
差异文件
!904 修复liteos_a仓库中存在的一些拼写错误
Merge pull request !904 from Hongjin Li/dev
上级
a3d757c8
1c0de289
变更
37
隐藏空白更改
内联
并排
Showing
37 changed file
with
53 addition
and
53 deletion
+53
-53
Kconfig
Kconfig
+1
-1
apps/shell/src/shmsg.c
apps/shell/src/shmsg.c
+1
-1
apps/tftp/src/tftpc.c
apps/tftp/src/tftpc.c
+2
-2
arch/arm/arm/src/startup/reset_vector_mp.S
arch/arm/arm/src/startup/reset_vector_mp.S
+2
-2
compat/posix/src/time.c
compat/posix/src/time.c
+1
-1
fs/fat/os_adapt/fatfs.h
fs/fat/os_adapt/fatfs.h
+1
-1
fs/fat/virpart/src/virpart.c
fs/fat/virpart/src/virpart.c
+1
-1
fs/fat/virpart/src/virpartff.c
fs/fat/virpart/src/virpartff.c
+1
-1
fs/jffs2/jffs2.patch
fs/jffs2/jffs2.patch
+1
-1
fs/proc/os_adapt/fd_proc.c
fs/proc/os_adapt/fd_proc.c
+1
-1
fs/proc/os_adapt/mounts_proc.c
fs/proc/os_adapt/mounts_proc.c
+1
-1
fs/proc/os_adapt/uptime_proc.c
fs/proc/os_adapt/uptime_proc.c
+1
-1
fs/vfs/include/bcache/bcache.h
fs/vfs/include/bcache/bcache.h
+4
-4
kernel/base/ipc/los_signal.c
kernel/base/ipc/los_signal.c
+2
-2
kernel/common/console.c
kernel/common/console.c
+1
-1
kernel/extended/liteipc/hm_liteipc.c
kernel/extended/liteipc/hm_liteipc.c
+6
-6
kernel/include/los_task.h
kernel/include/los_task.h
+2
-2
net/lwip-2.1/enhancement/src/api_shell.c
net/lwip-2.1/enhancement/src/api_shell.c
+1
-1
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_035.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_035.c
+1
-1
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_042.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_042.c
+1
-1
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_062.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_062.c
+1
-1
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_063.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_063.c
+1
-1
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_068.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_068.c
+1
-1
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_069.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_069.c
+1
-1
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_129.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_129.c
+2
-2
testsuites/kernel/sample/kernel_base/ipc/sem/It_los_sem.c
testsuites/kernel/sample/kernel_base/ipc/sem/It_los_sem.c
+1
-1
testsuites/kernel/sample/posix/mutex/full/It_posix_mutex_023.c
...uites/kernel/sample/posix/mutex/full/It_posix_mutex_023.c
+1
-1
testsuites/kernel/sample/posix/mutex/full/It_posix_mutex_027.c
...uites/kernel/sample/posix/mutex/full/It_posix_mutex_027.c
+1
-1
testsuites/kernel/sample/posix/mutex/full/It_posix_mutex_037.c
...uites/kernel/sample/posix/mutex/full/It_posix_mutex_037.c
+1
-1
testsuites/kernel/sample/posix/mutex/full/It_posix_mutex_039.c
...uites/kernel/sample/posix/mutex/full/It_posix_mutex_039.c
+1
-1
testsuites/kernel/sample/posix/mutex/full/It_posix_mutex_041.c
...uites/kernel/sample/posix/mutex/full/It_posix_mutex_041.c
+1
-1
testsuites/kernel/sample/posix/mutex/full/It_posix_mutex_047.c
...uites/kernel/sample/posix/mutex/full/It_posix_mutex_047.c
+1
-1
testsuites/kernel/sample/posix/mutex/full/It_posix_mutex_048.c
...uites/kernel/sample/posix/mutex/full/It_posix_mutex_048.c
+1
-1
testsuites/unittest/common/osTest.cpp
testsuites/unittest/common/osTest.cpp
+1
-1
testsuites/unittest/extended/liteipc/smgr_demo.cpp
testsuites/unittest/extended/liteipc/smgr_demo.cpp
+1
-1
testsuites/unittest/extended/signal/full/signal_test_017.cpp
testsuites/unittest/extended/signal/full/signal_test_017.cpp
+1
-1
testsuites/unittest/libc/posix/mqueue/full/It_posix_queue_043.cpp
...es/unittest/libc/posix/mqueue/full/It_posix_queue_043.cpp
+4
-4
未找到文件。
Kconfig
浏览文件 @
bbbd9678
...
...
@@ -265,7 +265,7 @@ config MEM_LEAKCHECK
default n
depends on DEBUG_VERSION && MEM_DEBUG
help
Answer Y to enable record the LR of Function call stack of Mem operation, it can check the mem leak through the information
s
of mem node.
Answer Y to enable record the LR of Function call stack of Mem operation, it can check the mem leak through the information of mem node.
config BASE_MEM_NODE_INTEGRITY_CHECK
bool "Enable integrity check or not"
default n
...
...
apps/shell/src/shmsg.c
浏览文件 @
bbbd9678
...
...
@@ -422,7 +422,7 @@ static void DoCmdExec(const char *cmdName, const char *cmdline, unsigned int len
forkPid
=
fork
();
if
(
forkPid
<
0
)
{
printf
(
"Faild to fork from shell
\n
"
);
printf
(
"Fail
e
d to fork from shell
\n
"
);
return
;
}
else
if
(
forkPid
==
0
)
{
ChildExec
(
cmdParsed
->
paramArray
[
0
],
cmdParsed
->
paramArray
,
foreground
);
...
...
apps/tftp/src/tftpc.c
浏览文件 @
bbbd9678
...
...
@@ -500,7 +500,7 @@ static void lwip_tftp_send_error(s32_t iSockNum, u32_t ulError, const char *szEr
}
}
/* INTEFACE to get a file using filename
/* INTE
R
FACE to get a file using filename
ulHostAddr - IP address of Host
szSrcFileName - Source file
szDestDirPath - Destination file path
...
...
@@ -1419,7 +1419,7 @@ err_handler:
}
#ifdef TFTP_TO_RAWMEM
/* INTEFACE to get a file using filename
/* INTE
R
FACE to get a file using filename
ulHostAddr - IP address of Host
szSrcFileName - Source file
szDestMemAddr - The target memory address in the client
...
...
arch/arm/arm/src/startup/reset_vector_mp.S
浏览文件 @
bbbd9678
...
...
@@ -276,11 +276,11 @@ mmu_setup:
mov
r12
,
#
0x7
/*
0
b0111
*/
mcr
p15
,
0
,
r12
,
c3
,
c0
,
0
/*
Set
DACR
with
0
b0111
,
client
and
manager
domian
*/
isb
mrc
p15
,
0
,
r12
,
c1
,
c0
,
1
/*
ACTLR
,
Aux
l
liary
Control
Register
*/
mrc
p15
,
0
,
r12
,
c1
,
c0
,
1
/*
ACTLR
,
Aux
i
liary
Control
Register
*/
orr
r12
,
r12
,
#(
1
<<
6
)
/*
SMP
,
Enables
coherent
requests
to
the
processor
.
*/
orr
r12
,
r12
,
#(
1
<<
2
)
/*
Enable
D
-
side
prefetch
*/
orr
r12
,
r12
,
#(
1
<<
11
)
/*
Global
BP
Enable
bit
*/
mcr
p15
,
0
,
r12
,
c1
,
c0
,
1
/*
ACTLR
,
Aux
l
liary
Control
Register
*/
mcr
p15
,
0
,
r12
,
c1
,
c0
,
1
/*
ACTLR
,
Aux
i
liary
Control
Register
*/
dsb
mrc
p15
,
0
,
r12
,
c1
,
c0
,
0
bic
r12
,
#(
1
<<
29
|
1
<<
28
)
/*
Disable
TRE
/
AFE
*/
...
...
compat/posix/src/time.c
浏览文件 @
bbbd9678
...
...
@@ -71,7 +71,7 @@
#ifdef LOSCFG_AARCH64
/*
* This two structures originally did't exit,
* This two structures originally did
n
't exit,
* they added by liteos to support 64bit interfaces on 32bit platform,
* in 64bit platform, timeval64 define to timeval which is platform adaptive.
*/
...
...
fs/fat/os_adapt/fatfs.h
浏览文件 @
bbbd9678
...
...
@@ -64,7 +64,7 @@ extern "C" {
#define MBR_PRIMARY_PART_NUM 4
#define JUMP_CODE "\xEB\xFE\x90"
/* Partiton type */
/* Partit
i
on type */
#define FAT12 0x01
/* FAT12 as primary partition in first physical 32MB */
#define FAT16 0x04
/* FAT16 with less than 65536 sectors(32MB) */
#define EXTENDED_PARTITION_CHS 0x05
...
...
fs/fat/virpart/src/virpart.c
浏览文件 @
bbbd9678
...
...
@@ -179,7 +179,7 @@ static INT FatfsDisablePart(void *handle)
* Scan the FAT inside the boundary of CHILD FATFS limit, and update the free cluster and last cluster
* for all CHILD FATFS.
* Acceptable Return Value:
* - FR_OK : Successfully scaned the FAT and update field.
* - FR_OK : Successfully scan
n
ed the FAT and update field.
* Others Return Value:
* - FR_INVAILD_FATFS : The FATFS object has error or the info in it has been occuried
* - FR_DENIED : The virtual partition feature has been shut down by switcher
...
...
fs/fat/virpart/src/virpartff.c
浏览文件 @
bbbd9678
...
...
@@ -373,7 +373,7 @@ static FRESULT FatfsCheckScanFatParam(FATFS *fs)
* Scan the FAT inside the boundary of CHILD FATFS limit, and update the free cluster and last cluster
*
* Acceptable Return Value:
* - FR_OK : Successfully scaned the FAT and update field.
* - FR_OK : Successfully scan
n
ed the FAT and update field.
*
* Others Return Value:
* - FR_INVAILD_FATFS : The FATFS object has error or the info in it has been occuried
...
...
fs/jffs2/jffs2.patch
浏览文件 @
bbbd9678
...
...
@@ -5499,7 +5499,7 @@ diff -Nupr old/fs/jffs2/readinode.c new/fs/jffs2/readinode.c
break;
default:
+ JFFS2_ERROR("Unknow f->inocache->state %d!\n", f->inocache->state);
+ JFFS2_ERROR("Unknow
n
f->inocache->state %d!\n", f->inocache->state);
BUG();
}
}
...
...
fs/proc/os_adapt/fd_proc.c
浏览文件 @
bbbd9678
...
...
@@ -135,7 +135,7 @@ void ProcFdInit(void)
{
struct
ProcDirEntry
*
pde
=
CreateProcEntry
(
"fd"
,
0
,
NULL
);
if
(
pde
==
NULL
)
{
PRINT_ERR
(
"creat /proc/fd error.
\n
"
);
PRINT_ERR
(
"creat
e
/proc/fd error.
\n
"
);
return
;
}
...
...
fs/proc/os_adapt/mounts_proc.c
浏览文件 @
bbbd9678
...
...
@@ -91,7 +91,7 @@ void ProcMountsInit(void)
{
struct
ProcDirEntry
*
pde
=
CreateProcEntry
(
"mounts"
,
0
,
NULL
);
if
(
pde
==
NULL
)
{
PRINT_ERR
(
"creat mounts error!
\n
"
);
PRINT_ERR
(
"creat
e
mounts error!
\n
"
);
return
;
}
...
...
fs/proc/os_adapt/uptime_proc.c
浏览文件 @
bbbd9678
...
...
@@ -78,7 +78,7 @@ void ProcUptimeInit(void)
{
struct
ProcDirEntry
*
pde
=
CreateProcEntry
(
"uptime"
,
0
,
NULL
);
if
(
pde
==
NULL
)
{
PRINT_ERR
(
"creat /proc/uptime error!
\n
"
);
PRINT_ERR
(
"creat
e
/proc/uptime error!
\n
"
);
return
;
}
...
...
fs/vfs/include/bcache/bcache.h
浏览文件 @
bbbd9678
...
...
@@ -138,7 +138,7 @@ typedef struct tagOsBcache {
* <li>The block number is automatically adjusted if position is greater than block size.</li>
* </ul>
*
* @retval #0 read succeded
* @retval #0 read succe
e
ded
* @retval #INT32 read failed
*
* @par Dependency:
...
...
@@ -168,7 +168,7 @@ INT32 BlockCacheRead(OsBcache *bc,
* <li>The block number is automatically adjusted if position is greater than block size.</li>
* </ul>
*
* @retval #0 write succeded
* @retval #0 write succe
e
ded
* @retval #INT32 write failed
*
* @par Dependency:
...
...
@@ -193,7 +193,7 @@ INT32 BlockCacheWrite(OsBcache *bc,
* <li>None.</li>
* </ul>
*
* @retval #0 sync succeded
* @retval #0 sync succe
e
ded
* @retval #INT32 sync failed
*
* @par Dependency:
...
...
@@ -219,7 +219,7 @@ INT32 BlockCacheSync(OsBcache *bc);
* <li>None.</li>
* </ul>
*
* @retval #OsBcache * init succeded
* @retval #OsBcache * init succe
e
ded
* @retval #NULL init failed
*
* @par Dependency:
...
...
kernel/base/ipc/los_signal.c
浏览文件 @
bbbd9678
...
...
@@ -284,7 +284,7 @@ static int SigProcessSignalHandler(LosTaskCB *tcb, void *arg)
return
0
;
}
/* If the default tcb is not set
ted
, then set this one as default. */
/* If the default tcb is not set, then set this one as default. */
if
(
!
info
->
defaultTcb
)
{
info
->
defaultTcb
=
tcb
;
}
...
...
@@ -305,7 +305,7 @@ static int SigProcessSignalHandler(LosTaskCB *tcb, void *arg)
/* Is this signal unblocked on this thread? */
isMember
=
OsSigIsMember
(
&
tcb
->
sig
.
sigprocmask
,
info
->
sigInfo
->
si_signo
);
if
((
!
isMember
)
&&
(
!
info
->
receivedTcb
)
&&
(
tcb
!=
info
->
awakenedTcb
))
{
/* if unblockedTcb of this signal is not set
ted
, then set it. */
/* if unblockedTcb of this signal is not set, then set it. */
if
(
!
info
->
unblockedTcb
)
{
info
->
unblockedTcb
=
tcb
;
}
...
...
kernel/common/console.c
浏览文件 @
bbbd9678
...
...
@@ -1238,7 +1238,7 @@ STATIC CONSOLE_CB *OsConsoleCreate(UINT32 consoleID, const CHAR *deviceName)
ret
=
(
INT32
)
LOS_SemCreate
(
1
,
&
consoleCB
->
consoleSem
);
if
(
ret
!=
LOS_OK
)
{
PRINT_ERR
(
"creat sem for uart failed
\n
"
);
PRINT_ERR
(
"creat
e
sem for uart failed
\n
"
);
goto
ERR_WITH_BUF
;
}
...
...
kernel/extended/liteipc/hm_liteipc.c
浏览文件 @
bbbd9678
...
...
@@ -1026,7 +1026,7 @@ LITE_OS_SEC_TEXT STATIC UINT32 CheckPara(IpcContent *content, UINT32 *dstTid)
#endif
break
;
default:
PRINT_DEBUG
(
"Unknow msg type:%d
\n
"
,
msg
->
type
);
PRINT_DEBUG
(
"Unknow
n
msg type:%d
\n
"
,
msg
->
type
);
return
-
EINVAL
;
}
...
...
@@ -1118,13 +1118,13 @@ LITE_OS_SEC_TEXT STATIC UINT32 CheckRecievedMsg(IpcListNode *node, IpcContent *c
}
#if (USE_TIMESTAMP == 1)
if
(
node
->
msg
.
timestamp
!=
content
->
outMsg
->
timestamp
)
{
PRINT_ERR
(
"Rec
ie
ve a unmatch reply, drop it
\n
"
);
PRINT_ERR
(
"Rec
ei
ve a unmatch reply, drop it
\n
"
);
ret
=
-
EINVAL
;
}
#else
if
((
node
->
msg
.
code
!=
content
->
outMsg
->
code
)
||
(
node
->
msg
.
target
.
token
!=
content
->
outMsg
->
target
.
token
))
{
PRINT_ERR
(
"Rec
ie
ve a unmatch reply, drop it
\n
"
);
PRINT_ERR
(
"Rec
ei
ve a unmatch reply, drop it
\n
"
);
ret
=
-
EINVAL
;
}
#endif
...
...
@@ -1132,7 +1132,7 @@ LITE_OS_SEC_TEXT STATIC UINT32 CheckRecievedMsg(IpcListNode *node, IpcContent *c
case
MT_DEATH_NOTIFY
:
break
;
default:
PRINT_ERR
(
"Unknow msg type:%d
\n
"
,
node
->
msg
.
type
);
PRINT_ERR
(
"Unknow
n
msg type:%d
\n
"
,
node
->
msg
.
type
);
ret
=
-
EINVAL
;
}
if
(
ret
!=
LOS_OK
)
{
...
...
@@ -1310,7 +1310,7 @@ LITE_OS_SEC_TEXT STATIC UINT32 HandleCmsCmd(CmsCmdContent *content)
}
return
AddServiceAccess
(
localContent
.
taskID
,
localContent
.
serviceHandle
);
default:
PRINT_DEBUG
(
"Unknow cmd cmd:%d
\n
"
,
localContent
.
cmd
);
PRINT_DEBUG
(
"Unknow
n
cmd cmd:%d
\n
"
,
localContent
.
cmd
);
return
-
EINVAL
;
}
return
ret
;
...
...
@@ -1375,7 +1375,7 @@ LITE_OS_SEC_TEXT int LiteIpcIoctl(struct file *filep, int cmd, unsigned long arg
}
break
;
default:
PRINT_ERR
(
"Unknow liteipc ioctl cmd:%d
\n
"
,
cmd
);
PRINT_ERR
(
"Unknow
n
liteipc ioctl cmd:%d
\n
"
,
cmd
);
return
-
EINVAL
;
}
return
(
INT32
)
ret
;
...
...
kernel/include/los_task.h
浏览文件 @
bbbd9678
...
...
@@ -977,7 +977,7 @@ extern UINT32 LOS_TaskInfoGet(UINT32 taskID, TSK_INFO_S *taskInfo);
*
* @attention
* <ul>
* <li>If any low LOSCFG_KERNEL_CORE_NUM bit of the mask is not set
ted
, an error is reported.</li>
* <li>If any low LOSCFG_KERNEL_CORE_NUM bit of the mask is not set, an error is reported.</li>
* </ul>
*
* @param uwTaskID [IN] Type #UINT32 Task ID. The task id value is obtained from task creation.
...
...
@@ -987,7 +987,7 @@ extern UINT32 LOS_TaskInfoGet(UINT32 taskID, TSK_INFO_S *taskInfo);
* @retval #LOS_ERRNO_TSK_ID_INVALID Invalid task ID.
* @retval #LOS_ERRNO_TSK_NOT_CREATED The task is not created.
* @retval #LOS_ERRNO_TSK_CPU_AFFINITY_MASK_ERR The task cpu affinity mask is incorrect.
* @retval #LOS_OK The task cpu affinity mask is successfully set
ted
.
* @retval #LOS_OK The task cpu affinity mask is successfully set.
* @par Dependency:
* <ul><li>los_task.h: the header file that contains the API declaration.</li></ul>
* @see LOS_TaskCpuAffiGet
...
...
net/lwip-2.1/enhancement/src/api_shell.c
浏览文件 @
bbbd9678
...
...
@@ -1326,7 +1326,7 @@ out:
}
else
if
(
ret
==
ERR_RTE
)
{
(
void
)
snprintf_s
(
arp_cmd
->
cb_print_buf
,
PRINT_BUF_LEN
,
(
PRINT_BUF_LEN
-
1
),
"Network is unreachable
\n
"
);
}
else
{
(
void
)
snprintf_s
(
arp_cmd
->
cb_print_buf
,
PRINT_BUF_LEN
,
(
PRINT_BUF_LEN
-
1
),
"Succe
ss
ed
\n
"
);
(
void
)
snprintf_s
(
arp_cmd
->
cb_print_buf
,
PRINT_BUF_LEN
,
(
PRINT_BUF_LEN
-
1
),
"Succe
ed
ed
\n
"
);
}
}
#endif
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_035.c
浏览文件 @
bbbd9678
...
...
@@ -51,7 +51,7 @@ static UINT32 Testcase(void)
g_testCount
=
0
;
TEST_TASK_PARAM_INIT
(
task1
,
"it_smp_task_035"
,
(
TSK_ENTRY_FUNC
)
TaskF02Preempt
,
TASK_PRIO_TEST_TASK
-
1
);
/* creat preempt task */
/* creat
e
preempt task */
task1
.
usCpuAffiMask
=
0
;
ret
=
LOS_TaskCreate
(
&
g_testTaskID01
,
&
task1
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_042.c
浏览文件 @
bbbd9678
...
...
@@ -61,7 +61,7 @@ static UINT32 Testcase(void)
TEST_TASK_PARAM_INIT
(
task1
,
"it_smp_task_042"
,
(
TSK_ENTRY_FUNC
)
TaskF01
,
TASK_PRIO_TEST_TASK
);
int
i
;
/* creat high prio task on every cores */
/* creat
e
high prio task on every cores */
for
(
i
=
0
;
i
<
LOSCFG_KERNEL_CORE_NUM
-
1
;
i
++
)
{
/* take control of every cores */
task1
.
usCpuAffiMask
=
CPUID_TO_AFFI_MASK
((
ArchCurrCpuid
()
+
i
+
1
)
%
(
LOSCFG_KERNEL_CORE_NUM
));
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_062.c
浏览文件 @
bbbd9678
...
...
@@ -59,7 +59,7 @@ static UINT32 Testcase(void)
TSK_INIT_PARAM_S
task1
=
{
0
};
g_testCount
=
0
;
// 5, lengh of the queue; 50, max queue msg size.
// 5, leng
t
h of the queue; 50, max queue msg size.
ret
=
LOS_QueueCreate
(
"queue"
,
5
,
&
g_queue
,
0
,
50
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_063.c
浏览文件 @
bbbd9678
...
...
@@ -58,7 +58,7 @@ static UINT32 Testcase(void)
TSK_INIT_PARAM_S
task1
=
{
0
};
g_testCount
=
0
;
// 5, lengh of the queue; 50, max queue msg size.
// 5, leng
t
h of the queue; 50, max queue msg size.
ret
=
LOS_QueueCreate
(
"queue"
,
5
,
&
g_queue
,
0
,
50
);
TEST_TASK_PARAM_INIT
(
task1
,
"it_smp_task_063"
,
(
TSK_ENTRY_FUNC
)
TaskF01
,
TASK_PRIO_TEST_TASK
-
1
);
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_068.c
浏览文件 @
bbbd9678
...
...
@@ -72,7 +72,7 @@ static UINT32 Testcase(void)
TSK_INIT_PARAM_S
task1
=
{
0
};
g_testCount
=
0
;
// 5, lengh of the queue; 50, max queue msg size.
// 5, leng
t
h of the queue; 50, max queue msg size.
ret
=
LOS_QueueCreate
(
"queue"
,
5
,
&
g_queue
,
0
,
50
);
TEST_TASK_PARAM_INIT
(
task1
,
"it_smp_task_068"
,
(
TSK_ENTRY_FUNC
)
TaskF01
,
TASK_PRIO_TEST_TASK
-
1
);
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_069.c
浏览文件 @
bbbd9678
...
...
@@ -71,7 +71,7 @@ static UINT32 Testcase(void)
UINT32
ret
;
TSK_INIT_PARAM_S
task1
=
{
0
};
g_testCount
=
0
;
// 5, lengh of the queue; 50, max queue msg size.
// 5, leng
t
h of the queue; 50, max queue msg size.
ret
=
LOS_QueueCreate
(
"queue"
,
5
,
&
g_queue
,
0
,
50
);
TEST_TASK_PARAM_INIT
(
task1
,
"it_smp_task_065"
,
(
TSK_ENTRY_FUNC
)
TaskF01
,
TASK_PRIO_TEST_TASK
-
1
);
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_129.c
浏览文件 @
bbbd9678
...
...
@@ -57,7 +57,7 @@ static UINT32 Testcase(void)
int
i
;
for
(
i
=
0
;
i
<
LOSCFG_KERNEL_CORE_NUM
;
i
++
)
{
/* creat core_num same priority tasks */
/* creat
e
core_num same priority tasks */
task1
.
usCpuAffiMask
=
0
;
ret
=
LOS_TaskCreate
(
&
testTaskIDSmp
[
i
],
&
task1
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
...
...
@@ -72,7 +72,7 @@ static UINT32 Testcase(void)
timesliceCount2
=
TestTickCountGet
();
/* Check if task yield definitely succe
ss
ed */
/* Check if task yield definitely succe
ed
ed */
ICUNIT_GOTO_NOT_EQUAL
(
timesliceCount2
,
timesliceCount1
,
timesliceCount2
-
timesliceCount1
,
EXIT
);
for
(
i
=
0
;
i
<
LOSCFG_KERNEL_CORE_NUM
;
i
++
)
{
...
...
testsuites/kernel/sample/kernel_base/ipc/sem/It_los_sem.c
浏览文件 @
bbbd9678
...
...
@@ -115,7 +115,7 @@ VOID ItSuiteLosSem(void)
ItLosSem037
();
ItLosSem038
();
#ifndef LOSCFG_KERNEL_SMP_TASK_SYNC
// LOSCFG_KERNEL_SMP_TASK_SYNC is opened ,create task success is depend on created semaphore succe
ss
ed;
// LOSCFG_KERNEL_SMP_TASK_SYNC is opened ,create task success is depend on created semaphore succe
ed
ed;
ItLosSem039
();
ItLosSem040
();
ItLosSem041
();
...
...
testsuites/kernel/sample/posix/mutex/full/It_posix_mutex_023.c
浏览文件 @
bbbd9678
...
...
@@ -39,7 +39,7 @@ extern "C" {
/* pthread_mutex_init 4-1.c
* Test that pthread_mutex_init()
* Upon succesful completion, it shall return a 0
* Upon succes
s
ful completion, it shall return a 0
*
*/
static
UINT32
Testcase
(
VOID
)
...
...
testsuites/kernel/sample/posix/mutex/full/It_posix_mutex_027.c
浏览文件 @
bbbd9678
...
...
@@ -39,7 +39,7 @@ extern "C" {
/* pthread_mutex_destroy 3-1.c
* Test that pthread_mutex_destroy()
* Upon succesful completion, it shall return a 0
* Upon succes
s
ful completion, it shall return a 0
*
*/
static
UINT32
Testcase
(
VOID
)
...
...
testsuites/kernel/sample/posix/mutex/full/It_posix_mutex_037.c
浏览文件 @
bbbd9678
...
...
@@ -43,7 +43,7 @@ extern "C" {
* source tree.
* Test that pthread_mutex_lock()
* Upon succesful completion, it shall return a 0
* Upon succes
s
ful completion, it shall return a 0
*
*/
static
UINT32
Testcase
(
VOID
)
...
...
testsuites/kernel/sample/posix/mutex/full/It_posix_mutex_039.c
浏览文件 @
bbbd9678
...
...
@@ -42,7 +42,7 @@ extern "C" {
* shall release the mutex object 'mutex'.
* Steps:
* --
Initi
lize a mutex object
* --
initia
lize a mutex object
* -- Get the mutex using pthread_mutex_lock()
* -- Release the mutex using pthread_mutex_unlock()
* -- Try to get the mutex using pthread_mutex_trylock()
...
...
testsuites/kernel/sample/posix/mutex/full/It_posix_mutex_041.c
浏览文件 @
bbbd9678
...
...
@@ -39,7 +39,7 @@ extern "C" {
/* pthread_mutex_unlock 3-1.c
* Test that pthread_mutex_unlock()
* Upon succesful completion, it shall return zero
* Upon succes
s
ful completion, it shall return zero
*
*/
static
UINT32
Testcase
(
VOID
)
...
...
testsuites/kernel/sample/posix/mutex/full/It_posix_mutex_047.c
浏览文件 @
bbbd9678
...
...
@@ -38,7 +38,7 @@ extern "C" {
/* pthread_mutex_trylock 3-1.c
* Test that pthread_mutex_trylock()
* Upon succesful completion, it shall return a 0
* Upon succes
s
ful completion, it shall return a 0
*
*/
static
UINT32
Testcase
(
VOID
)
...
...
testsuites/kernel/sample/posix/mutex/full/It_posix_mutex_048.c
浏览文件 @
bbbd9678
...
...
@@ -43,7 +43,7 @@ extern "C" {
* -[EBUSY] The mutex could not be acquired because it was already locked.
* Steps:
* --
Initi
lize a mutex object
* --
initia
lize a mutex object
* -- Lock the mutex using pthread_mutex_lock()
* -- Try to lock the mutex using pthread_mutex_trylock() and expect EBUSY
*
...
...
testsuites/unittest/common/osTest.cpp
浏览文件 @
bbbd9678
...
...
@@ -366,7 +366,7 @@ VOID TestInitUartDev(VOID) {}
/* ****************************************
Function:Test_PartInit
Description: creat a partition for testing,partition num is 0,mount point is jffs0
Description: creat
e
a partition for testing,partition num is 0,mount point is jffs0
Input:
[1]type: "spinor"
[2]start_addr: the partition start address
...
...
testsuites/unittest/extended/liteipc/smgr_demo.cpp
浏览文件 @
bbbd9678
...
...
@@ -196,7 +196,7 @@ static void HandleServiceRegAndGet(int fd, IpcMsg *data)
}
}
}
printf
(
"rec
ie
ve service request, code:%d, service name:%s
\n
"
,
data
->
code
,
info
->
serviceName
);
printf
(
"rec
ei
ve service request, code:%d, service name:%s
\n
"
,
data
->
code
,
info
->
serviceName
);
switch
(
data
->
code
)
{
case
REG_CODE
:
if
(
i
==
MAX_SREVICE_NUM
)
{
...
...
testsuites/unittest/extended/signal/full/signal_test_017.cpp
浏览文件 @
bbbd9678
...
...
@@ -131,7 +131,7 @@ static int TestMultiPthreadFatherProcessExit()
sleep
(
1
);
retValue
=
waitpid
(
fpids
,
&
status
,
0
);
// grandchild process kill father process, so child process is recovered by init process
// child process doesn't receive termination si
ng
al from grandchild process
// child process doesn't receive termination si
gn
al from grandchild process
// so waitpid() returns -1
ICUNIT_ASSERT_EQUAL
(
retValue
,
-
1
,
retValue
);
exit
(
1
);
...
...
testsuites/unittest/libc/posix/mqueue/full/It_posix_queue_043.cpp
浏览文件 @
bbbd9678
...
...
@@ -82,10 +82,10 @@ EXIT:
4. use the mq_close to close the mqueue;
5. use the mq_unlink to delete the mqueue.
*-@texpect
1. Return succe
ss
ed
2. Return succe
ss
ed
3. Return succe
ss
ed
4. Return succe
ss
ed
1. Return succe
ed
ed
2. Return succe
ed
ed
3. Return succe
ed
ed
4. Return succe
ed
ed
5. Successful operation
*-@tprior 1
*-@tauto TRUE
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录