287 Star 1.9K Fork 875

OpenHarmony / kernel_liteos_a

 / 详情

【OpenHarmony】【3.0.0.3】【轻内核子系统】 集成测试clock_getres 函数传入非法ID值任意负数,会返回0,理论上需要返回-1 。

Canceled
Bug member
Opened this issue  
2021-08-19 10:35

【模块名_概率】简要描述:
【OpenHarmony】【3.0.0.3】【轻内核子系统】 集成测试clock_getres 函数传入非法ID值任意负数,会返回0,理论上需要返回-1 。
【环境信息】:
网络环境 不涉及
硬件开发板型号 3516DV300
软件版本信息或tag节点 3.0.0.3
测试环境 windows
其他

预置条件】:
刷入版本3.0.0.3
通过clang编译包含函数clock_getres,并传入非法ID值负数的可执行程序。
【测试步骤】:
在 /test_root/kernel 下执行编译好的可执行文件
【预期结果】:
函数返回-1
【实际结果】:
函数返回0
【恢复手段】:

【出现概率】:问题出现次数/实际测试次数
必现
【定位信息】:

Log、截图、多媒体文件等,所有和问题有关的信息:

Comments (1)

gao_harmony created缺陷
gao_harmony set related repository to OpenHarmony/kernel_liteos_a
gao_harmony set priority to P3
gao_harmony added
 
Integration_Test
label
gao_harmony set assignee to gao_harmony
gao_harmony changed assignee from gao_harmony to not set
gao_harmony set assignee to Caoruihong
Caoruihong changed issue state from 待办的 to 已确认
Caoruihong assigned collaborator Caoruihong
Caoruihong changed assignee from Caoruihong to give-me-five
gao_harmony changed issue state from 已确认 to 已取消
Expand operation logs

经过跟开发沟通,得出所有进程的clockid都为负值,所以会有负值是合法值,从而返回0 。

Sign in to comment

Status
Assignees
Projects
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
Duration (hours)
参与者(2)
7989137 caoruihong 1601432415
C
1
https://git.oschina.net/openharmony/kernel_liteos_a.git
git@git.oschina.net:openharmony/kernel_liteos_a.git
openharmony
kernel_liteos_a
kernel_liteos_a

Search

103111 552b83b3 1850385 103110 ed87a847 1850385