Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Kernel Liteos A
提交
0f8ff8f5
K
Kernel Liteos A
项目概览
OpenHarmony
/
Kernel Liteos A
大约 2 年 前同步成功
通知
475
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看板
提交
0f8ff8f5
编写于
11月 04, 2021
作者:
O
openharmony_ci
提交者:
Gitee
11月 04, 2021
浏览文件
操作
浏览文件
下载
差异文件
!662 fix SYSCALL SysFstat,SysFstat64,SysFstatat64(fix struct kstat with stat) & add 19 IO testcases
Merge pull request !662 from 刘治万/1015_unitest
上级
38163de8
79839a43
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
341 addition
and
48 deletion
+341
-48
syscall/fs_syscall.c
syscall/fs_syscall.c
+6
-6
syscall/los_syscall.h
syscall/los_syscall.h
+3
-3
testsuites/unittest/IO/It_test_IO.h
testsuites/unittest/IO/It_test_IO.h
+2
-0
testsuites/unittest/IO/full/IO_test_duplocale_001.cpp
testsuites/unittest/IO/full/IO_test_duplocale_001.cpp
+97
-37
testsuites/unittest/IO/full/It_stdio_hasmntopt_001.cpp
testsuites/unittest/IO/full/It_stdio_hasmntopt_001.cpp
+13
-1
testsuites/unittest/IO/io_test.cpp
testsuites/unittest/IO/io_test.cpp
+220
-1
未找到文件。
syscall/fs_syscall.c
浏览文件 @
0f8ff8f5
...
@@ -1279,7 +1279,7 @@ OUT:
...
@@ -1279,7 +1279,7 @@ OUT:
return
ret
;
return
ret
;
}
}
int
SysFstat
(
int
fd
,
struct
stat
*
buf
)
int
SysFstat
(
int
fd
,
struct
k
stat
*
buf
)
{
{
int
ret
;
int
ret
;
struct
stat
bufRet
=
{
0
};
struct
stat
bufRet
=
{
0
};
...
@@ -1302,7 +1302,7 @@ int SysFstat(int fd, struct stat *buf)
...
@@ -1302,7 +1302,7 @@ int SysFstat(int fd, struct stat *buf)
return
-
get_errno
();
return
-
get_errno
();
}
}
ret
=
LOS_ArchCopyToUser
(
buf
,
&
bufRet
,
sizeof
(
struct
stat
));
ret
=
LOS_ArchCopyToUser
(
buf
,
&
bufRet
,
sizeof
(
struct
k
stat
));
if
(
ret
!=
0
)
{
if
(
ret
!=
0
)
{
return
-
EFAULT
;
return
-
EFAULT
;
}
}
...
@@ -2068,7 +2068,7 @@ OUT:
...
@@ -2068,7 +2068,7 @@ OUT:
}
}
#endif
#endif
int
SysFstat64
(
int
fd
,
struct
stat64
*
buf
)
int
SysFstat64
(
int
fd
,
struct
kstat
*
buf
)
{
{
int
ret
;
int
ret
;
struct
stat64
bufRet
=
{
0
};
struct
stat64
bufRet
=
{
0
};
...
@@ -2081,7 +2081,7 @@ int SysFstat64(int fd, struct stat64 *buf)
...
@@ -2081,7 +2081,7 @@ int SysFstat64(int fd, struct stat64 *buf)
return
-
get_errno
();
return
-
get_errno
();
}
}
ret
=
LOS_ArchCopyToUser
(
buf
,
&
bufRet
,
sizeof
(
struct
stat64
));
ret
=
LOS_ArchCopyToUser
(
buf
,
&
bufRet
,
sizeof
(
struct
kstat
));
if
(
ret
!=
0
)
{
if
(
ret
!=
0
)
{
return
-
EFAULT
;
return
-
EFAULT
;
}
}
...
@@ -2385,7 +2385,7 @@ OUT:
...
@@ -2385,7 +2385,7 @@ OUT:
return
ret
;
return
ret
;
}
}
int
SysFstatat64
(
int
dirfd
,
const
char
*
restrict
path
,
struct
stat
*
restrict
buf
,
int
flag
)
int
SysFstatat64
(
int
dirfd
,
const
char
*
restrict
path
,
struct
k
stat
*
restrict
buf
,
int
flag
)
{
{
int
ret
;
int
ret
;
struct
stat
bufRet
=
{
0
};
struct
stat
bufRet
=
{
0
};
...
@@ -2415,7 +2415,7 @@ int SysFstatat64(int dirfd, const char *restrict path, struct stat *restrict buf
...
@@ -2415,7 +2415,7 @@ int SysFstatat64(int dirfd, const char *restrict path, struct stat *restrict buf
goto
OUT
;
goto
OUT
;
}
}
ret
=
LOS_ArchCopyToUser
(
buf
,
&
bufRet
,
sizeof
(
struct
stat
));
ret
=
LOS_ArchCopyToUser
(
buf
,
&
bufRet
,
sizeof
(
struct
k
stat
));
if
(
ret
!=
0
)
{
if
(
ret
!=
0
)
{
ret
=
-
EFAULT
;
ret
=
-
EFAULT
;
goto
OUT
;
goto
OUT
;
...
...
syscall/los_syscall.h
浏览文件 @
0f8ff8f5
...
@@ -268,15 +268,15 @@ extern int SysFstatfs64(int fd, size_t sz, struct statfs *buf);
...
@@ -268,15 +268,15 @@ extern int SysFstatfs64(int fd, size_t sz, struct statfs *buf);
extern
int
SysStat
(
const
char
*
path
,
struct
kstat
*
buf
);
extern
int
SysStat
(
const
char
*
path
,
struct
kstat
*
buf
);
extern
int
SysLstat
(
const
char
*
path
,
struct
kstat
*
buffer
);
extern
int
SysLstat
(
const
char
*
path
,
struct
kstat
*
buffer
);
extern
int
SysFstat
(
int
fildes
,
struct
stat
*
buf
);
extern
int
SysFstat
(
int
fildes
,
struct
k
stat
*
buf
);
extern
int
SysStatx
(
int
fd
,
const
char
*
restrict
path
,
int
flag
,
unsigned
mask
,
struct
statx
*
restrict
stx
);
extern
int
SysStatx
(
int
fd
,
const
char
*
restrict
path
,
int
flag
,
unsigned
mask
,
struct
statx
*
restrict
stx
);
extern
int
SysFsync
(
int
fd
);
extern
int
SysFsync
(
int
fd
);
extern
ssize_t
SysReadv
(
int
fd
,
const
struct
iovec
*
iov
,
int
iovcnt
);
extern
ssize_t
SysReadv
(
int
fd
,
const
struct
iovec
*
iov
,
int
iovcnt
);
extern
ssize_t
SysWritev
(
int
fd
,
const
struct
iovec
*
iov
,
int
iovcnt
);
extern
ssize_t
SysWritev
(
int
fd
,
const
struct
iovec
*
iov
,
int
iovcnt
);
extern
int
SysPipe
(
int
pipefd
[
2
]);
/* 2 : pipe fds for read and write */
extern
int
SysPipe
(
int
pipefd
[
2
]);
/* 2 : pipe fds for read and write */
extern
int
SysFormat
(
const
char
*
dev
,
int
sectors
,
int
option
);
extern
int
SysFormat
(
const
char
*
dev
,
int
sectors
,
int
option
);
extern
int
SysFstat64
(
int
fd
,
struct
stat64
*
buf
);
extern
int
SysFstat64
(
int
fd
,
struct
kstat
*
buf
);
extern
int
SysFstatat64
(
int
fd
,
const
char
*
restrict
path
,
struct
stat
*
restrict
buf
,
int
flag
);
extern
int
SysFstatat64
(
int
fd
,
const
char
*
restrict
path
,
struct
k
stat
*
restrict
buf
,
int
flag
);
extern
int
SysFcntl64
(
int
fd
,
int
cmd
,
void
*
arg
);
extern
int
SysFcntl64
(
int
fd
,
int
cmd
,
void
*
arg
);
extern
int
SysPoll
(
struct
pollfd
*
fds
,
nfds_t
nfds
,
int
timeout
);
extern
int
SysPoll
(
struct
pollfd
*
fds
,
nfds_t
nfds
,
int
timeout
);
extern
int
SysPpoll
(
struct
pollfd
*
fds
,
nfds_t
nfds
,
const
struct
timespec
*
tmo_p
,
extern
int
SysPpoll
(
struct
pollfd
*
fds
,
nfds_t
nfds
,
const
struct
timespec
*
tmo_p
,
...
...
testsuites/unittest/IO/It_test_IO.h
浏览文件 @
0f8ff8f5
...
@@ -118,6 +118,8 @@ extern VOID IO_TEST_CONFSTR_001(void);
...
@@ -118,6 +118,8 @@ extern VOID IO_TEST_CONFSTR_001(void);
extern
VOID
IO_TEST_NL_LANGINFO_001
(
VOID
);
extern
VOID
IO_TEST_NL_LANGINFO_001
(
VOID
);
extern
VOID
IO_TEST_STRCASECMP_L_001
(
VOID
);
extern
VOID
IO_TEST_STRCASECMP_L_001
(
VOID
);
extern
VOID
IO_TEST_STRCASECMP_L_002
(
VOID
);
extern
VOID
IO_TEST_STRCASECMP_L_002
(
VOID
);
extern
VOID
IO_TEST_STRNCASECMP_L_001
(
VOID
);
extern
VOID
IO_TEST_STRNCASECMP_L_002
(
VOID
);
extern
VOID
IO_TEST_DUPLOCALE_001
(
void
);
extern
VOID
IO_TEST_DUPLOCALE_001
(
void
);
extern
VOID
IO_TEST_NL_LANGINFO_l_001
(
VOID
);
extern
VOID
IO_TEST_NL_LANGINFO_l_001
(
VOID
);
extern
VOID
IO_TEST_DNGETTEXT_001
(
VOID
);
extern
VOID
IO_TEST_DNGETTEXT_001
(
VOID
);
...
...
testsuites/unittest/IO/full/IO_test_duplocale_001.cpp
浏览文件 @
0f8ff8f5
...
@@ -28,63 +28,123 @@
...
@@ -28,63 +28,123 @@
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
*/
#include "It_test_IO.h"
#include <time.h>
#include <time.h>
#include <locale.h>
#include <locale.h>
#include <langinfo.h>
#include "It_test_IO.h"
static
UINT32
testcase
(
VOID
)
/* Zh_cn.utf-8 File content */
{
int
fileWords
[]
=
{
time_t
currtime
;
0x950412de
,
0x0
,
0x3
,
0x1c
,
0x34
,
0x5
,
struct
tm
*
timer
=
{
nullptr
};
0x4c
,
0x0
,
0x60
,
0x3
,
0x61
,
0x3
,
char
buffer
[
80
];
0x65
,
0x14f
,
0x69
,
0x9
,
0x1b9
,
0x6
,
locale_t
oldloc
=
LC_GLOBAL_LOCALE
;
0x1c3
,
0x1
,
0x3
,
0x0
,
0x0
,
0x2
,
locale_t
newloc
=
nullptr
;
0x69724600
,
0x6e614a00
,
0x6f725000
,
0x7463656a
,
0x2d64492d
,
0x73726556
,
0x3a6e6f69
,
0x6d695620
,
0x6d695328
,
0x66696c70
,
0x20646569
,
0x6e696843
,
0x29657365
,
0x7065520a
,
0x2d74726f
,
0x6967734d
,
0x75422d64
,
0x542d7367
,
0xa203a6f
,
0x522d4f50
,
0x73697665
,
0x2d6e6f69
,
0x65746144
,
0x3032203a
,
0x302d3630
,
0x31322d34
,
0x3a343120
,
0x302b3030
,
0xa303038
,
0x7473614c
,
0x6172542d
,
0x616c736e
,
0x3a726f74
,
0x68755920
,
0x20676e65
,
0xa656958
,
0x676e614c
,
0x65676175
,
0x6165542d
,
0x53203a6d
,
0x6c706d69
,
0x65696669
,
0x68432064
,
0x73656e69
,
0x494d0a65
,
0x562d454d
,
0x69737265
,
0x203a6e6f
,
0xa302e31
,
0x746e6f43
,
0x2d746e65
,
0x65707954
,
0x6574203a
,
0x702f7478
,
0x6e69616c
,
0x6863203b
,
0x65737261
,
0x54553d74
,
0xa382d46
,
0x746e6f43
,
0x2d746e65
,
0x6e617254
,
0x72656673
,
0x636e452d
,
0x6e69646f
,
0x38203a67
,
0xa746962
,
0x72756c50
,
0x462d6c61
,
0x736d726f
,
0x706e203a
,
0x6172756c
,
0x313d736c
,
0x6c70203b
,
0x6c617275
,
0xa3b303d
,
0x676e614c
,
0x65676175
,
0x687a203a
,
0xa4e435f
,
0x65472d58
,
0x6172656e
,
0x3a726f74
,
0x656f5020
,
0x20746964
,
0xa302e33
,
0x9f98e600
,
0xe49f9ce6
,
0xe40094ba
,
0x9ce680b8
,
0x88
};
printf
(
"[INFO]newloc=0x%x,oldloc=0x%x
\n
"
,
(
int
)
newloc
,
(
int
)
oldloc
);
UINT32
SonFunc
(
VOID
)
newloc
=
duplocale
(
oldloc
);
{
printf
(
"[INFO]newloc=0x%x,oldloc=0x%x
\n
"
,
(
int
)
newloc
,
(
int
)
oldloc
)
;
int
ret
;
ICUNIT_ASSERT_NOT_EQUAL_NULL
(
newloc
,
nullptr
,
-
1
)
;
struct
tm
timer_
;
struct
tm
*
timer
=
&
timer_
;
time
(
&
currtime
);
char
buffer
[
80
];
/* 80, The number of characters returned by strftime */
timer
=
localtime
(
&
currtime
)
;
char
*
retptr
=
nullptr
;
/* set timer as 'Thu Jan 1 23:48:56 1970'" */
/* set timer as 'Thu Jan 1 23:48:56 1970'" */
timer
->
tm_sec
=
32
;
timer
->
tm_sec
=
32
;
/* 32, example */
timer
->
tm_min
=
3
;
timer
->
tm_min
=
3
;
/* 3, example */
timer
->
tm_hour
=
1
;
timer
->
tm_hour
=
1
;
timer
->
tm_mday
=
2
;
timer
->
tm_mday
=
2
;
timer
->
tm_mon
=
0
;
timer
->
tm_mon
=
0
;
timer
->
tm_year
=
70
;
timer
->
tm_year
=
70
;
/* 70, example */
timer
->
tm_wday
=
5
;
timer
->
tm_wday
=
5
;
/* 5, example */
timer
->
tm_yday
=
1
;
timer
->
tm_yday
=
1
;
timer
->
tm_isdst
=
0
;
timer
->
tm_isdst
=
0
;
timer
->
__tm_gmtoff
=
0
;
timer
->
__tm_gmtoff
=
0
;
timer
->
__tm_zone
=
nullptr
;
timer
->
__tm_zone
=
nullptr
;
setenv
(
"MUSL_LOCPATH"
,
"/storage"
,
1
);
ret
=
setenv
(
"MUSL_LOCPATH"
,
"/storage"
,
1
);
printf
(
"[INFO]getenv MUSL_LOCPATH=%s
\n
"
,
getenv
(
"MUSL_LOCPATH"
));
ICUNIT_ASSERT_EQUAL
(
ret
,
0
,
-
1
);
ICUNIT_GOTO_STRING_EQUAL
(
getenv
(
"MUSL_LOCPATH"
),
"/storage"
,
getenv
(
"MUSL_LOCPATH"
),
OUT
);
retptr
=
getenv
(
"MUSL_LOCPATH"
);
ICUNIT_ASSERT_NOT_EQUAL
(
retptr
,
NULL
,
-
1
);
ICUNIT_ASSERT_STRING_EQUAL
(
retptr
,
"/storage"
,
-
1
);
retptr
=
setlocale
(
LC_TIME
,
"en_US.UTF-8"
);
ICUNIT_ASSERT_NOT_EQUAL
(
retptr
,
NULL
,
-
1
);
ICUNIT_ASSERT_STRING_EQUAL
(
retptr
,
"en_US.UTF-8"
,
-
1
);
ret
=
strftime
(
buffer
,
80
,
"%c"
,
timer
);
/* 80, The maximum number of characters in the string str */
ICUNIT_ASSERT_NOT_EQUAL
(
ret
,
0
,
-
1
);
ICUNIT_ASSERT_STRING_EQUAL
(
buffer
,
"Fri Jan 2 01:03:32 1970"
,
-
1
);
retptr
=
setlocale
(
LC_TIME
,
"zh_CN.UTF-8"
);
ICUNIT_ASSERT_NOT_EQUAL
(
retptr
,
NULL
,
-
1
);
ICUNIT_ASSERT_STRING_EQUAL
(
retptr
,
"zh_CN.UTF-8"
,
-
1
);
ret
=
strftime
(
buffer
,
80
,
"%c"
,
timer
);
/* 80, The maximum number of characters in the string str */
ICUNIT_ASSERT_NOT_EQUAL
(
ret
,
0
,
-
1
);
ICUNIT_ASSERT_STRING_EQUAL
(
buffer
,
"星期五 一月 2 01:03:32 1970"
,
-
1
);
printf
(
"[INFO]Locale is: %s
\n
"
,
setlocale
(
LC_TIME
,
"en_US.UTF-8"
));
retptr
=
setlocale
(
LC_TIME
,
""
);
strftime
(
buffer
,
80
,
"%c"
,
timer
);
ICUNIT_ASSERT_NOT_EQUAL
(
retptr
,
NULL
,
-
1
);
printf
(
"[INFO]Date is: %s
\n
"
,
buffer
);
ICUNIT_ASSERT_STRING_EQUAL
(
retptr
,
"C"
,
-
1
);
ICUNIT_GOTO_STRING_EQUAL
(
buffer
,
"星期五 一月 2 01:03:32 1970"
,
-
1
,
OUT
);
printf
(
"[INFO]Locale is: %s
\n
"
,
setlocale
(
LC_TIME
,
"zh_CN.UTF-8"
));
ret
=
strftime
(
buffer
,
80
,
"%c"
,
timer
);
/* 80, The maximum number of characters in the string str */
strftime
(
buffer
,
80
,
"%c"
,
timer
);
ICUNIT_ASSERT_NOT_EQUAL
(
ret
,
0
,
-
1
);
printf
(
"[INFO]Date is: %s
\n
"
,
buffer
);
ICUNIT_ASSERT_STRING_EQUAL
(
buffer
,
"Fri Jan 2 01:03:32 1970"
,
-
1
);
ICUNIT_GOTO_STRING_EQUAL
(
buffer
,
"星期五 一月 2 01:03:32 1970"
,
-
1
,
OUT
);
printf
(
"[INFO]Locale is: %s
\n
"
,
setlocale
(
LC_TIME
,
""
));
return
0
;
strftime
(
buffer
,
80
,
"%c"
,
timer
);
}
printf
(
"[INFO]Date is: %s
\n
"
,
buffer
);
ICUNIT_GOTO_STRING_EQUAL
(
buffer
,
"Fri Jan 2 01:03:32 1970"
,
-
1
,
OUT
);
static
UINT32
testcase
(
VOID
)
{
int
ret
,
status
;
locale_t
oldloc
=
LC_GLOBAL_LOCALE
;
locale_t
newloc
=
nullptr
;
char
*
pathList
[]
=
{
"/storage/zh_CN.UTF-8"
};
char
*
streamList
[]
=
{(
char
*
)
fileWords
};
int
streamLen
[]
=
{
sizeof
(
fileWords
)
-
2
};
newloc
=
duplocale
(
oldloc
);
ICUNIT_ASSERT_NOT_EQUAL
(
newloc
,
nullptr
,
-
1
);
free
(
newloc
);
free
(
newloc
);
ret
=
PrepareFileEnv
(
pathList
,
streamList
,
streamLen
,
1
);
if
(
ret
!=
0
)
{
printf
(
"error: need some env file, but prepare is not ok"
);
(
VOID
)
RecoveryFileEnv
(
pathList
,
1
);
return
-
1
;
}
pid_t
pid
=
fork
();
if
(
pid
==
0
)
{
ret
=
SonFunc
();
exit
(
ret
);
}
ret
=
waitpid
(
pid
,
&
status
,
0
);
ICUNIT_ASSERT_EQUAL
(
ret
,
pid
,
ret
);
(
VOID
)
RecoveryFileEnv
(
pathList
,
1
);
status
=
WEXITSTATUS
(
status
);
ICUNIT_ASSERT_EQUAL
(
status
,
0
,
status
);
return
LOS_OK
;
return
LOS_OK
;
OUT:
free
(
newloc
);
return
LOS_NOK
;
}
}
VOID
IO_TEST_DUPLOCALE_001
(
void
)
VOID
IO_TEST_DUPLOCALE_001
(
void
)
...
...
testsuites/unittest/IO/full/It_stdio_hasmntopt_001.cpp
浏览文件 @
0f8ff8f5
...
@@ -41,6 +41,18 @@ static UINT32 testcase(VOID)
...
@@ -41,6 +41,18 @@ static UINT32 testcase(VOID)
char
*
opt
=
argv
[
1
];
char
*
opt
=
argv
[
1
];
char
*
ret
=
nullptr
;
char
*
ret
=
nullptr
;
char
fileWords
[]
=
"/dev/disk/by-uuid/c4992556-a86e-45e8-ba5f-190b16a9073x /usr1 ext3 errors=remount-ro,nofail 0 1"
;
char
*
pathList
[]
=
{
"/etc/fstab"
};
char
*
streamList
[]
=
{(
char
*
)
fileWords
};
int
streamLen
[]
=
{
sizeof
(
fileWords
)};
int
flag
=
PrepareFileEnv
(
pathList
,
streamList
,
streamLen
,
1
);
if
(
flag
!=
0
)
{
printf
(
"error: need some env file, but prepare is not ok"
);
(
VOID
)
RecoveryFileEnv
(
pathList
,
1
);
return
-
1
;
}
mnt_new
=
(
struct
mntent
*
)
malloc
(
sizeof
(
struct
mntent
));
mnt_new
=
(
struct
mntent
*
)
malloc
(
sizeof
(
struct
mntent
));
mnt_new
->
mnt_fsname
=
"UUID=c4992556-a86e-45e8-ba5f-190b16a9073x"
;
mnt_new
->
mnt_fsname
=
"UUID=c4992556-a86e-45e8-ba5f-190b16a9073x"
;
mnt_new
->
mnt_dir
=
"/usr1"
;
mnt_new
->
mnt_dir
=
"/usr1"
;
...
@@ -79,7 +91,7 @@ static UINT32 testcase(VOID)
...
@@ -79,7 +91,7 @@ static UINT32 testcase(VOID)
if
(
fp
!=
NULL
)
{
if
(
fp
!=
NULL
)
{
endmntent
(
fp
);
endmntent
(
fp
);
}
}
(
VOID
)
RecoveryFileEnv
(
pathList
,
1
);
return
LOS_OK
;
return
LOS_OK
;
}
}
...
...
testsuites/unittest/IO/io_test.cpp
浏览文件 @
0f8ff8f5
...
@@ -192,7 +192,6 @@ HWTEST_F(IoTest, ItStdioReadv001, TestSize.Level0)
...
@@ -192,7 +192,6 @@ HWTEST_F(IoTest, ItStdioReadv001, TestSize.Level0)
ItStdioReadv001
();
ItStdioReadv001
();
}
}
/* *
/* *
* @tc.name: IT_STDIO_RINDEX_001
* @tc.name: IT_STDIO_RINDEX_001
* @tc.desc: function for IoTest
* @tc.desc: function for IoTest
...
@@ -291,5 +290,225 @@ HWTEST_F(IoTest, ItStdioMbrlen001, TestSize.Level0)
...
@@ -291,5 +290,225 @@ HWTEST_F(IoTest, ItStdioMbrlen001, TestSize.Level0)
{
{
ItStdioMbrlen001
();
ItStdioMbrlen001
();
}
}
/* *
* @tc.name: IT_STDIO_HASMNTOPT_001
* @tc.desc: function for IoTest-normal testcase
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F
(
IoTest
,
IT_STDIO_HASMNTOPT_001
,
TestSize
.
Level0
)
{
IT_STDIO_HASMNTOPT_001
();
}
/* *
* @tc.name: IO_TEST_DUPLOCALE_001
* @tc.desc: function for IoTest-dup the locale global pointer
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F
(
IoTest
,
IO_TEST_DUPLOCALE_001
,
TestSize
.
Level0
)
{
IO_TEST_DUPLOCALE_001
();
}
/* *
* @tc.name: IO_TEST_NL_LANGINFO_001
* @tc.desc: function for IoTest-normal testcase
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F
(
IoTest
,
IO_TEST_NL_LANGINFO_001
,
TestSize
.
Level0
)
{
IO_TEST_NL_LANGINFO_001
();
}
/* *
* @tc.name: IO_TEST_STRCASECMP_L_001
* @tc.desc: function for IoTest-normal testcase
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F
(
IoTest
,
IO_TEST_STRCASECMP_L_001
,
TestSize
.
Level0
)
{
IO_TEST_STRCASECMP_L_001
();
}
/* *
* @tc.name: IO_TEST_STRCASECMP_L_002
* @tc.desc: function for IoTest-normal testcase
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F
(
IoTest
,
IO_TEST_STRCASECMP_L_002
,
TestSize
.
Level0
)
{
IO_TEST_STRCASECMP_L_002
();
}
/* *
* @tc.name: IO_TEST_STRNCASECMP_L_001
* @tc.desc: function for IoTest-normal testcase
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F
(
IoTest
,
IO_TEST_STRNCASECMP_L_001
,
TestSize
.
Level0
)
{
IO_TEST_STRNCASECMP_L_001
();
}
/* *
* @tc.name: IO_TEST_STRNCASECMP_L_002
* @tc.desc: function for IoTest-normal testcase
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F
(
IoTest
,
IO_TEST_STRNCASECMP_L_002
,
TestSize
.
Level0
)
{
IO_TEST_STRNCASECMP_L_002
();
}
/* *
* @tc.name: IO_TEST_NL_LANGINFO_l_001
* @tc.desc: function for IoTest-query language and locale information
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F
(
IoTest
,
IO_TEST_NL_LANGINFO_l_001
,
TestSize
.
Level0
)
{
IO_TEST_NL_LANGINFO_l_001
();
}
/* *
* @tc.name: IO_TEST_DNGETTEXT_001
* @tc.desc: function for IoTest-print the translated string1 or string2
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F
(
IoTest
,
IO_TEST_DNGETTEXT_001
,
TestSize
.
Level0
)
{
IO_TEST_DNGETTEXT_001
();
}
/* *
* @tc.name: IO_TEST_DNGETTEXT_002
* @tc.desc: function for IoTest-innormal testcases
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F
(
IoTest
,
IO_TEST_DNGETTEXT_002
,
TestSize
.
Level0
)
{
IO_TEST_DNGETTEXT_002
();
}
/* *
* @tc.name: IO_TEST_DCNGETTEXT_001
* @tc.desc: function for IoTest-print the translated string1 or string2 with locale parameter
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F
(
IoTest
,
IO_TEST_DCNGETTEXT_001
,
TestSize
.
Level0
)
{
IO_TEST_DCNGETTEXT_001
();
}
/* *
* @tc.name: IO_TEST_DCNGETTEXT_002
* @tc.desc: function for IoTest-innormal testcases
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F
(
IoTest
,
IO_TEST_DCNGETTEXT_002
,
TestSize
.
Level0
)
{
IO_TEST_DCNGETTEXT_002
();
}
/* *
* @tc.name: IO_TEST_DCGETTEXT_001
* @tc.desc: function for IoTest-print the translated string with locale parameter
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F
(
IoTest
,
IO_TEST_DCGETTEXT_001
,
TestSize
.
Level0
)
{
IO_TEST_DCGETTEXT_001
();
}
/* *
* @tc.name: IO_TEST_DCGETTEXT_002
* @tc.desc: function for IoTest-innormal testcases
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F
(
IoTest
,
IO_TEST_DCGETTEXT_002
,
TestSize
.
Level0
)
{
IO_TEST_DCGETTEXT_002
();
}
/* *
* @tc.name: IO_TEST_GETTEXT_001
* @tc.desc: function for IoTest-normal testcases
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F
(
IoTest
,
IO_TEST_GETTEXT_001
,
TestSize
.
Level0
)
{
IO_TEST_GETTEXT_001
();
}
/* *
* @tc.name: IO_TEST_LOCALE_001
* @tc.desc: function for IoTest-normal testcases
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F
(
IoTest
,
IO_TEST_LOCALE_001
,
TestSize
.
Level0
)
{
IO_TEST_LOCALE_001
();
}
/* *
* @tc.name: IO_TEST_LOCALE_002
* @tc.desc: function for IoTest-innormal testcases
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F
(
IoTest
,
IO_TEST_LOCALE_002
,
TestSize
.
Level0
)
{
IO_TEST_LOCALE_002
();
}
/* *
* @tc.name: IO_TEST_STRFMON_L_001
* @tc.desc: function for IoTest-normal testcases
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F
(
IoTest
,
IO_TEST_STRFMON_L_001
,
TestSize
.
Level0
)
{
IO_TEST_STRFMON_L_001
();
}
/* *
* @tc.name: IO_TEST_STRFMON_L_002
* @tc.desc: function for IoTest-innormal testcases
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F
(
IoTest
,
IO_TEST_STRFMON_L_002
,
TestSize
.
Level0
)
{
IO_TEST_STRFMON_L_002
();
}
/* *
* @tc.name: IO_TEST_NGETTEXT_001
* @tc.desc: function for IoTest-normal testcases
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F
(
IoTest
,
IO_TEST_NGETTEXT_001
,
TestSize
.
Level0
)
{
IO_TEST_NGETTEXT_001
();
}
#endif
#endif
}
// namespace OHOS
}
// namespace OHOS
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录