提交 a40f8383 编写于 作者: Z zhushengle

fix: 内源代码检视问题修改

1.删除测试用例中的需求单号和问题单号
2.部分格式问题
3.使用非安全函数问题
Signed-off-by: Nzhushengle <zhushengle@huawei.com>
Change-Id: I348bd9730f584fd3ebeb6d4245fe4a84c0c90c7d
上级 87a7df48
......@@ -12,9 +12,10 @@
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
This is the configuration file template for OpenHarmony OSS Audit Tool, please copy it to your project root dir and modify it refer to OpenHarmony/tools_oat/README.
<!--
This is the configuration file template for OpenHarmony OSS Audit Tool, please copy it to your project root dir and modify it refer to OpenHarmony/tools_oat/README.
-->
<configuration>
......
......@@ -48,6 +48,7 @@
#endif
int main(int argc, char * const *argv)
{
(void)argv;
int ret;
pid_t gid;
const char *shellPath = "/bin/mksh";
......
......@@ -70,11 +70,16 @@ static void LmsReallocTest(void)
printf("[LmsReallocTest] malloc addr:%p size:%d\n", buf, 64);
printf("[LmsReallocTest] read overflow & underflow error should be triggered, read range[-1,64]\n");
BufReadTest(buf, -1, 64);
buf = (char *)realloc(buf, 32);
printf("[LmsReallocTest] realloc addr:%p size:%d\n", buf, 32);
char *buf1 = (char *)realloc(buf, 32);
if (buf1 == NULL) {
free(buf);
return;
}
buf = NULL;
printf("[LmsReallocTest] realloc addr:%p size:%d\n", buf1, 32);
printf("[LmsReallocTest] read overflow & underflow error should be triggered, read range[-1,32]\n");
BufReadTest(buf, -1, 32);
free(buf);
BufReadTest(buf1, -1, 32);
free(buf1);
printf("\n-------- LmsReallocTest End --------\n");
}
......@@ -206,4 +211,4 @@ int main(int argc, char * const * argv)
LmsFreeTest();
free(tmp);
printf("\n############### Lms Test End ###############\n");
}
\ No newline at end of file
}
......@@ -108,11 +108,15 @@ static int DoShellExec(char **argv)
if (!cmdLine) {
return ret;
}
memset_s(cmdLine, len, 0, len);
errno_t ret1 = memset_s(cmdLine, len, 0, len);
if (ret1 != EOK) {
free(cmdLine);
return ret1;
}
for (j = 0; j < i; j++) {
strcat_s(cmdLine, len, argv[j]);
strcat_s(cmdLine, len, " ");
(void)strcat_s(cmdLine, len, argv[j]);
(void)strcat_s(cmdLine, len, " ");
}
cmdLine[len - 2] = '\0'; /* 2, (len - 2) is the end of cmdline buf */
......
......@@ -42,7 +42,7 @@ extern "C" {
#define TFTP_NULL_UINT32 ((u32_t)0xffffffffUL)
#define TFTP_NULL_INT32 -1
#define TFTP_NULL_INT32 (-1)
/** @cond liteos
* @defgroup TFTP_Interfaces
......
......@@ -44,7 +44,7 @@ BOOL IsCapPermit(UINT32 capIndex)
{
UINT32 capability = OsCurrProcessGet()->capability;
if (capIndex > CAPABILITY_MAX || capIndex < 0) {
PRINTK("%s,%d, get invalid capIndex %d\n", __FUNCTION__, __LINE__, capIndex);
PRINTK("%s,%d, get invalid capIndex %u\n", __FUNCTION__, __LINE__, capIndex);
return FALSE;
}
......
......@@ -76,7 +76,7 @@ STATIC VOID ShellCmdHwiInfoShow(OsIrqCpupCB *irqData, CPUP_INFO_S *hwiCpup1s,
}
CHAR *irqName = OsGetHwiFormName(i);
UINT32 index = (i * LOSCFG_KERNEL_CORE_NUM) + cpu;
PRINTK(" %10d:%5u%11u%11llu%10llu%6u.%-2u%8u.%-2u%7u.%-2u%7s %-12s\n", i, cpu, count, cycles, timeMax,
PRINTK(" %10u:%5u%11u%11llu%10llu%6u.%-2u%8u.%-2u%7u.%-2u%7s %-12s\n", i, cpu, count, cycles, timeMax,
hwiCpupAll[index].usage / CPUP_PRECISION_MULT, hwiCpupAll[index].usage % CPUP_PRECISION_MULT,
hwiCpup10s[index].usage / CPUP_PRECISION_MULT, hwiCpup10s[index].usage % CPUP_PRECISION_MULT,
hwiCpup1s[index].usage / CPUP_PRECISION_MULT, hwiCpup1s[index].usage % CPUP_PRECISION_MULT,
......
......@@ -46,7 +46,6 @@ int CheckRegion(const LosVmSpace *space, VADDR_T ptr, size_t len)
void *DupUserMem(const void *ptr, size_t len, int needCopy)
{
void *p = LOS_MemAlloc(OS_SYS_MEM_ADDR, len);
if (p == NULL) {
set_errno(ENOMEM);
return NULL;
......
......@@ -46,7 +46,6 @@ public:
* @tc.name: it_test_dynload_002
* @tc.desc: function for DynloadTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(DynloadTest, ItTestDynload002, TestSize.Level0)
{
......@@ -57,7 +56,6 @@ HWTEST_F(DynloadTest, ItTestDynload002, TestSize.Level0)
* @tc.name: it_test_dynload_004
* @tc.desc: function for DynloadTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(DynloadTest, ItTestDynload004, TestSize.Level0)
{
......
......@@ -46,7 +46,6 @@ public:
* @tc.name: ItTestExc005
* @tc.desc: function for ExcTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ExcTest, ItTestExc005, TestSize.Level0)
{
......@@ -57,7 +56,6 @@ HWTEST_F(ExcTest, ItTestExc005, TestSize.Level0)
* @tc.name: ItTestExc001
* @tc.desc: function for ExcTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ExcTest, ItTestExc001, TestSize.Level0)
{
......@@ -68,7 +66,6 @@ HWTEST_F(ExcTest, ItTestExc001, TestSize.Level0)
* @tc.name: ItTestExc002
* @tc.desc: function for ExcTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ExcTest, ItTestExc002, TestSize.Level0)
{
......@@ -79,7 +76,6 @@ HWTEST_F(ExcTest, ItTestExc002, TestSize.Level0)
* @tc.name: ItTestExc003
* @tc.desc: function for ExcTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ExcTest, ItTestExc003, TestSize.Level0)
{
......@@ -90,7 +86,6 @@ HWTEST_F(ExcTest, ItTestExc003, TestSize.Level0)
* @tc.name: ItTestExc004
* @tc.desc: function for ExcTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ExcTest, ItTestExc004, TestSize.Level0)
{
......
......@@ -46,7 +46,6 @@ public:
* @tc.name: it_test_shm_001
* @tc.desc: function for MemShmTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MemShmTest, ItTestShm001, TestSize.Level0)
{
......@@ -57,7 +56,6 @@ HWTEST_F(MemShmTest, ItTestShm001, TestSize.Level0)
* @tc.name: it_test_shm_002
* @tc.desc: function for MemShmTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MemShmTest, ItTestShm002, TestSize.Level0)
{
......@@ -68,7 +66,6 @@ HWTEST_F(MemShmTest, ItTestShm002, TestSize.Level0)
* @tc.name: it_test_shm_003
* @tc.desc: function for MemShmTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MemShmTest, ItTestShm003, TestSize.Level0)
{
......@@ -79,7 +76,6 @@ HWTEST_F(MemShmTest, ItTestShm003, TestSize.Level0)
* @tc.name: it_test_shm_004
* @tc.desc: function for MemShmTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MemShmTest, ItTestShm004, TestSize.Level0)
{
......@@ -90,7 +86,6 @@ HWTEST_F(MemShmTest, ItTestShm004, TestSize.Level0)
* @tc.name: it_test_shm_005
* @tc.desc: function for MemShmTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MemShmTest, ItTestShm005, TestSize.Level0)
{
......@@ -101,7 +96,6 @@ HWTEST_F(MemShmTest, ItTestShm005, TestSize.Level0)
* @tc.name: it_test_shm_006
* @tc.desc: function for MemShmTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MemShmTest, ItTestShm006, TestSize.Level0)
{
......@@ -112,7 +106,6 @@ HWTEST_F(MemShmTest, ItTestShm006, TestSize.Level0)
* @tc.name: it_test_shm_007
* @tc.desc: function for MemShmTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MemShmTest, ItTestShm007, TestSize.Level0)
{
......@@ -123,7 +116,6 @@ HWTEST_F(MemShmTest, ItTestShm007, TestSize.Level0)
* @tc.name: it_test_shm_008
* @tc.desc: function for MemShmTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MemShmTest, ItTestShm008, TestSize.Level0)
{
......@@ -134,7 +126,6 @@ HWTEST_F(MemShmTest, ItTestShm008, TestSize.Level0)
* @tc.name: it_test_shm_009
* @tc.desc: function for MemShmTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MemShmTest, ItTestShm009, TestSize.Level0)
{
......@@ -145,7 +136,6 @@ HWTEST_F(MemShmTest, ItTestShm009, TestSize.Level0)
* @tc.name: it_test_shm_010
* @tc.desc: function for MemShmTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MemShmTest, ItTestShm010, TestSize.Level0)
{
......@@ -158,7 +148,6 @@ HWTEST_F(MemShmTest, ItTestShm010, TestSize.Level0)
* @tc.name: it_test_shm_011
* @tc.desc: function for MemShmTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MemShmTest, ItTestShm011, TestSize.Level0)
{
......
......@@ -46,7 +46,6 @@ public:
* @tc.name: it_test_mmap_001
* @tc.desc: function for MemVmTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MemVmTest, ItTestMmap001, TestSize.Level0)
{
......@@ -57,7 +56,6 @@ HWTEST_F(MemVmTest, ItTestMmap001, TestSize.Level0)
* @tc.name: it_test_mmap_002
* @tc.desc: function for MemVmTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MemVmTest, ItTestMmap002, TestSize.Level0)
{
......@@ -68,7 +66,6 @@ HWTEST_F(MemVmTest, ItTestMmap002, TestSize.Level0)
* @tc.name: it_test_mmap_003
* @tc.desc: function for MemVmTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MemVmTest, ItTestMmap003, TestSize.Level0)
{
......@@ -79,7 +76,6 @@ HWTEST_F(MemVmTest, ItTestMmap003, TestSize.Level0)
* @tc.name: it_test_mmap_004
* @tc.desc: function for MemVmTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MemVmTest, ItTestMmap004, TestSize.Level0)
{
......@@ -91,7 +87,6 @@ HWTEST_F(MemVmTest, ItTestMmap004, TestSize.Level0)
* @tc.name: it_test_mmap_005
* @tc.desc: function for MemVmTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MemVmTest, ItTestMmap005, TestSize.Level0)
{
......@@ -102,7 +97,6 @@ HWTEST_F(MemVmTest, ItTestMmap005, TestSize.Level0)
* @tc.name: it_test_mmap_006
* @tc.desc: function for MemVmTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MemVmTest, ItTestMmap006, TestSize.Level0)
{
......@@ -113,7 +107,6 @@ HWTEST_F(MemVmTest, ItTestMmap006, TestSize.Level0)
* @tc.name: it_test_mmap_007
* @tc.desc: function for MemVmTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MemVmTest, ItTestMmap007, TestSize.Level0)
{
......@@ -124,7 +117,6 @@ HWTEST_F(MemVmTest, ItTestMmap007, TestSize.Level0)
* @tc.name: it_test_mmap_008
* @tc.desc: function for MemVmTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MemVmTest, ItTestMmap008, TestSize.Level0)
{
......@@ -135,7 +127,6 @@ HWTEST_F(MemVmTest, ItTestMmap008, TestSize.Level0)
* @tc.name: it_test_mmap_009
* @tc.desc: function for MemVmTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MemVmTest, ItTestMmap009, TestSize.Level0)
{
......@@ -146,7 +137,6 @@ HWTEST_F(MemVmTest, ItTestMmap009, TestSize.Level0)
* @tc.name: it_test_mmap_010
* @tc.desc: function for MemVmTest
* @tc.type: FUNC
* @tc.require: DTS202101220LSHEDP1100
*/
HWTEST_F(MemVmTest, ItTestMmap010, TestSize.Level0)
{
......@@ -157,7 +147,6 @@ HWTEST_F(MemVmTest, ItTestMmap010, TestSize.Level0)
* @tc.name: it_test_mprotect_001
* @tc.desc: function for MemVmTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MemVmTest, ItTestMprotect001, TestSize.Level0)
{
......@@ -169,7 +158,6 @@ HWTEST_F(MemVmTest, ItTestMprotect001, TestSize.Level0)
* @tc.name: it_test_oom_001
* @tc.desc: function for MemVmTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MemVmTest, ItTestOom001, TestSize.Level0)
{
......@@ -181,7 +169,6 @@ HWTEST_F(MemVmTest, ItTestOom001, TestSize.Level0)
* @tc.name: it_test_mremap_001
* @tc.desc: function for MemVmTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MemVmTest, ItTestMremap001, TestSize.Level0)
{
......@@ -192,7 +179,6 @@ HWTEST_F(MemVmTest, ItTestMremap001, TestSize.Level0)
* @tc.name: it_test_user_copy_001
* @tc.desc: function for MemVmTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MemVmTest, ItTestUserCopy001, TestSize.Level0)
{
......@@ -203,7 +189,6 @@ HWTEST_F(MemVmTest, ItTestUserCopy001, TestSize.Level0)
* @tc.name: open_wmemstream_test_001
* @tc.desc: function for open_wmemstream
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MemVmTest, open_wmemstream_test_001, TestSize.Level0)
{
......
......@@ -123,7 +123,6 @@ static int Testcase(void)
ret = CheckedMmap(PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1);
ICUNIT_ASSERT_EQUAL(ret, 0, ret);
/* MAP_ANONYMOUS should require an fd of -1. */
ret = CheckedMmap(PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, 0);
ICUNIT_ASSERT_EQUAL(ret, 0, ret);
......
......@@ -45,7 +45,6 @@ public:
* @tc.name: it_test_hid_001
* @tc.desc: function for drivers hid
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(DriversHidTest, ItTestHid001, TestSize.Level0)
{
......
......@@ -45,7 +45,6 @@ public:
* @tc.name: it_test_storage_001
* @tc.desc: function for drivers storage
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(DriversStorageTest, ItTestStorage001, TestSize.Level0)
{
......
......@@ -46,7 +46,6 @@ public:
* @tc.name: IPC_TEST_MKFIFOAT_001
* @tc.desc: function for IoTest:mkfifoat-normal test
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
#if 0
HWTEST_F(IoTest, IPC_TEST_MKFIFOAT_001, TestSize.Level0)
......@@ -59,7 +58,6 @@ HWTEST_F(IoTest, IPC_TEST_MKFIFOAT_001, TestSize.Level0)
* @tc.name: IPC_TEST_MKFIFOAT_002
* @tc.desc: function for IoTest:mkfifoat-innormal test
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
#if 0
HWTEST_F(IoTest, IPC_TEST_MKFIFOAT_002, TestSize.Level0)
......
......@@ -45,7 +45,6 @@ public:
* @tc.name: ItPosixLiteIpc001
* @tc.desc: function test for liteipc
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(LiteIpcTest, ItPosixLiteIpc001, TestSize.Level0)
{
......@@ -56,7 +55,6 @@ HWTEST_F(LiteIpcTest, ItPosixLiteIpc001, TestSize.Level0)
* @tc.name: ItPosixLiteIpc002
* @tc.desc: function test for liteipc
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(LiteIpcTest, ItPosixLiteIpc002, TestSize.Level0)
{
......
......@@ -58,7 +58,7 @@ int TestPipeSingleProcess()
errno = 0;
char sentence1[15] = "Hello World";
char a[4] = {0};
sprintf(a, "%d", i);
(void)sprintf_s(a, sizeof(a), "%d", i);
strcat(sentence1, a);
int ret = write(*writeFd, sentence1, strlen(sentence1) + 1);
usleep(100000); // 100000, Used to calculate the delay time.
......
......@@ -58,7 +58,7 @@ int TestPipeSingleProcessFcntl()
errno = 0;
char sentence1[15] = "Hello World";
char a[4] = {0};
sprintf(a, "%d", i);
(void)sprintf_s(a, sizeof(a), "%d", i);
strcat(sentence1, a);
int ret = write(*writeFd, sentence1, strlen(sentence1) + 1);
usleep(100000); // 100000, Used to calculate the delay time.
......
......@@ -33,7 +33,8 @@
static void SigPrint(int sig)
{
printf("%s\n", __FUNCTION__, __LINE__);
(void)sig;
printf("%s%d\n", __FUNCTION__, __LINE__);
}
static void *ThreadSetFunc2(void *arg)
......
......@@ -33,7 +33,8 @@
static void SigPrint(int sig)
{
printf("%s\n", __FUNCTION__, __LINE__);
(void)sig;
printf("%s%d\n", __FUNCTION__, __LINE__);
}
static void *ThreadSetFunc2(void *arg)
......
......@@ -33,10 +33,11 @@
static void SigPrint(int sig)
{
printf("%s\n", __FUNCTION__, __LINE__);
(void)sig;
printf("%s%d\n", __FUNCTION__, __LINE__);
}
static int TestSigTimeWaitKillProcess()
static int TestSigTimeWaitKillProcess(void)
{
sigset_t set;
int sig, fpid, retValue, status;
......
......@@ -33,10 +33,11 @@
static void SigPrint(int sig)
{
printf("%s\n", __FUNCTION__, __LINE__);
(void)sig;
printf("%s%d\n", __FUNCTION__, __LINE__);
}
static int TestSigTimeWaitDirectKillChild()
static int TestSigTimeWaitDirectKillChild(void)
{
sigset_t set;
int sig, fpid, retValue, status;
......
......@@ -35,6 +35,7 @@ static int g_sigCount = 0;
static int g_sigCount1 = 0;
static void SigPrint(int sig)
{
(void)sig;
g_sigCount++;
printf("signal receive sucess\n");
}
......@@ -91,4 +92,4 @@ static UINT32 TestCase(VOID)
void ItPosixSignal040(void)
{
TEST_ADD_CASE(__FUNCTION__, TestCase, TEST_POSIX, TEST_SIGNAL, TEST_LEVEL0, TEST_FUNCTION);
}
\ No newline at end of file
}
......@@ -35,15 +35,18 @@
static void Sigprint(int sig)
{
(void)sig;
printf("enter sighandle : -------------------------\n");
}
static void Sigprint111(int sig)
{
(void)sig;
printf("enter sighandle : ---111----------------------\n");
}
static void *ThreadFunc7(void *arg)
{
(void)arg;
int retval;
sigset_t set, oldset;
sighandler_t sigret;
......
......@@ -45,7 +45,6 @@ public:
* @tc.name: IT_POSIX_SIGNAL_002
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal002, TestSize.Level0)
{
......@@ -56,7 +55,6 @@ HWTEST_F(SignalTest, ItPosixSignal002, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_009
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal009, TestSize.Level0)
{
......@@ -67,7 +65,6 @@ HWTEST_F(SignalTest, ItPosixSignal009, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_013
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal013, TestSize.Level0)
{
......@@ -78,7 +75,6 @@ HWTEST_F(SignalTest, ItPosixSignal013, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_014
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal014, TestSize.Level0)
{
......@@ -90,7 +86,6 @@ HWTEST_F(SignalTest, ItPosixSignal014, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_021
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal021, TestSize.Level0)
{
......@@ -101,7 +96,6 @@ HWTEST_F(SignalTest, ItPosixSignal021, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_022
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal022, TestSize.Level0)
{
......@@ -112,7 +106,6 @@ HWTEST_F(SignalTest, ItPosixSignal022, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_023
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal023, TestSize.Level0)
{
......@@ -123,7 +116,6 @@ HWTEST_F(SignalTest, ItPosixSignal023, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_024
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal024, TestSize.Level0)
{
......@@ -134,7 +126,6 @@ HWTEST_F(SignalTest, ItPosixSignal024, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_031
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal031, TestSize.Level0)
{
......@@ -145,7 +136,6 @@ HWTEST_F(SignalTest, ItPosixSignal031, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_032
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal032, TestSize.Level0)
{
......@@ -156,7 +146,6 @@ HWTEST_F(SignalTest, ItPosixSignal032, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_035
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal035, TestSize.Level0)
{
......@@ -167,7 +156,6 @@ HWTEST_F(SignalTest, ItPosixSignal035, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_036
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal036, TestSize.Level0)
{
......@@ -178,7 +166,6 @@ HWTEST_F(SignalTest, ItPosixSignal036, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_037
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal037, TestSize.Level0)
{
......@@ -189,7 +176,6 @@ HWTEST_F(SignalTest, ItPosixSignal037, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_039
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal039, TestSize.Level0)
{
......@@ -200,7 +186,6 @@ HWTEST_F(SignalTest, ItPosixSignal039, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_042
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal042, TestSize.Level0)
{
......@@ -211,7 +196,6 @@ HWTEST_F(SignalTest, ItPosixSignal042, TestSize.Level0)
* @tc.name: ItPosixPipe002
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixPipe002, TestSize.Level0)
{
......@@ -222,7 +206,6 @@ HWTEST_F(SignalTest, ItPosixPipe002, TestSize.Level0)
* @tc.name: ItPosixMkfifo002
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixMkfifo002, TestSize.Level0)
{
......@@ -233,7 +216,6 @@ HWTEST_F(SignalTest, ItPosixMkfifo002, TestSize.Level0)
* @tc.name: IT_IPC_FD_ISSET_001
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItIpcFdIsset001, TestSize.Level0)
{
......@@ -246,7 +228,6 @@ HWTEST_F(SignalTest, ItIpcFdIsset001, TestSize.Level0)
* @tc.name: IT_IPC_FD_CLR_001
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItIpcFdClr001, TestSize.Level0)
{
......@@ -257,7 +238,6 @@ HWTEST_F(SignalTest, ItIpcFdClr001, TestSize.Level0)
* @tc.name: IT_IPC_FD_SET_001
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItIpcFdSet001, TestSize.Level0)
{
......@@ -268,7 +248,6 @@ HWTEST_F(SignalTest, ItIpcFdSet001, TestSize.Level0)
* @tc.name: IT_IPC_FD_ZERO_001
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItIpcFdZero001, TestSize.Level0)
{
......@@ -279,7 +258,6 @@ HWTEST_F(SignalTest, ItIpcFdZero001, TestSize.Level0)
* @tc.name: IT_IPC_SIGACTION_001^M
* @tc.desc: function for SignalTest^M
* @tc.type: FUNC^M
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItIpcSigaction001, TestSize.Level0)
{
......@@ -290,7 +268,6 @@ HWTEST_F(SignalTest, ItIpcSigaction001, TestSize.Level0)
* @tc.name: IT_IPC_SIGPAUSE_001
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItIpcSigpause001, TestSize.Level0)
{
......@@ -301,7 +278,6 @@ HWTEST_F(SignalTest, ItIpcSigpause001, TestSize.Level0)
* @tc.name: IT_IPC_SIGPROMASK_001
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItIpcSigpromask001, TestSize.Level0)
{
......@@ -312,7 +288,6 @@ HWTEST_F(SignalTest, ItIpcSigpromask001, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_001
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal001, TestSize.Level0)
{
......@@ -323,7 +298,6 @@ HWTEST_F(SignalTest, ItPosixSignal001, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_003
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal003, TestSize.Level0)
{
......@@ -334,7 +308,6 @@ HWTEST_F(SignalTest, ItPosixSignal003, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_004
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal004, TestSize.Level0)
{
......@@ -345,7 +318,6 @@ HWTEST_F(SignalTest, ItPosixSignal004, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_005
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal005, TestSize.Level0)
{
......@@ -356,7 +328,6 @@ HWTEST_F(SignalTest, ItPosixSignal005, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_006
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal006, TestSize.Level0)
{
......@@ -367,7 +338,6 @@ HWTEST_F(SignalTest, ItPosixSignal006, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_007
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal007, TestSize.Level0)
{
......@@ -378,7 +348,6 @@ HWTEST_F(SignalTest, ItPosixSignal007, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_008
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal008, TestSize.Level0)
{
......@@ -389,7 +358,6 @@ HWTEST_F(SignalTest, ItPosixSignal008, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_010
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal010, TestSize.Level0)
{
......@@ -400,7 +368,6 @@ HWTEST_F(SignalTest, ItPosixSignal010, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_011
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal011, TestSize.Level0)
{
......@@ -411,7 +378,6 @@ HWTEST_F(SignalTest, ItPosixSignal011, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_012
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal012, TestSize.Level0)
{
......@@ -422,7 +388,6 @@ HWTEST_F(SignalTest, ItPosixSignal012, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_015
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal015, TestSize.Level0)
{
......@@ -433,7 +398,6 @@ HWTEST_F(SignalTest, ItPosixSignal015, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_016
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal016, TestSize.Level0)
{
......@@ -444,7 +408,6 @@ HWTEST_F(SignalTest, ItPosixSignal016, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_017
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal017, TestSize.Level0)
{
......@@ -455,7 +418,6 @@ HWTEST_F(SignalTest, ItPosixSignal017, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_018
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal018, TestSize.Level0)
{
......@@ -466,7 +428,6 @@ HWTEST_F(SignalTest, ItPosixSignal018, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_019
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal019, TestSize.Level0)
{
......@@ -477,7 +438,6 @@ HWTEST_F(SignalTest, ItPosixSignal019, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_020
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal020, TestSize.Level0)
{
......@@ -488,7 +448,6 @@ HWTEST_F(SignalTest, ItPosixSignal020, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_025
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal025, TestSize.Level0)
{
......@@ -499,7 +458,6 @@ HWTEST_F(SignalTest, ItPosixSignal025, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_026
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal026, TestSize.Level0)
{
......@@ -510,7 +468,6 @@ HWTEST_F(SignalTest, ItPosixSignal026, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_028
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal028, TestSize.Level0)
{
......@@ -521,7 +478,6 @@ HWTEST_F(SignalTest, ItPosixSignal028, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_029
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal029, TestSize.Level0)
{
......@@ -532,7 +488,6 @@ HWTEST_F(SignalTest, ItPosixSignal029, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_030
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal030, TestSize.Level0)
{
......@@ -543,7 +498,6 @@ HWTEST_F(SignalTest, ItPosixSignal030, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_033
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal033, TestSize.Level0)
{
......@@ -554,7 +508,6 @@ HWTEST_F(SignalTest, ItPosixSignal033, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_038
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal038, TestSize.Level0)
{
......@@ -565,7 +518,6 @@ HWTEST_F(SignalTest, ItPosixSignal038, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_040
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal040, TestSize.Level0)
{
......@@ -576,7 +528,6 @@ HWTEST_F(SignalTest, ItPosixSignal040, TestSize.Level0)
* @tc.name: IT_POSIX_SIGNAL_041
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixSignal041, TestSize.Level0)
{
......@@ -587,7 +538,6 @@ HWTEST_F(SignalTest, ItPosixSignal041, TestSize.Level0)
* @tc.name: IT_IPC_PIPE_002
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItIpcPipe002, TestSize.Level0)
{
......@@ -598,7 +548,6 @@ HWTEST_F(SignalTest, ItIpcPipe002, TestSize.Level0)
* @tc.name: IT_IPC_PIPE_003
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItIpcPipe003, TestSize.Level0)
{
......@@ -609,7 +558,6 @@ HWTEST_F(SignalTest, ItIpcPipe003, TestSize.Level0)
* @tc.name: ItPosixPipe001
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixPipe001, TestSize.Level0)
{
......@@ -620,7 +568,6 @@ HWTEST_F(SignalTest, ItPosixPipe001, TestSize.Level0)
* @tc.name: ItPosixPipe003
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixPipe003, TestSize.Level0)
{
......@@ -631,7 +578,6 @@ HWTEST_F(SignalTest, ItPosixPipe003, TestSize.Level0)
* @tc.name: ItPosixPipe004
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixPipe004, TestSize.Level0)
{
......@@ -642,7 +588,6 @@ HWTEST_F(SignalTest, ItPosixPipe004, TestSize.Level0)
* @tc.name: ItPosixPipe005
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixPipe005, TestSize.Level0)
{
......@@ -653,7 +598,6 @@ HWTEST_F(SignalTest, ItPosixPipe005, TestSize.Level0)
* @tc.name: ItPosixPipe006
* @tc.desc: function for SignalTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SignalTest, ItPosixPipe006, TestSize.Level0)
{
......
......@@ -40,8 +40,13 @@ static UINT32 Testcase(VOID)
char buffer[20]; // 20, target buffer size
char pathname[NAME_BUF_SIZE];
char *filename = "/mkfifotest2";
strncpy(pathname, "/dev", NAME_BUF_SIZE);
strcat(pathname, filename);
char *dir = "/dev";
errno_t ret1 = strncpy_s(pathname, NAME_BUF_SIZE, dir, strlen(dir));
ICUNIT_ASSERT_EQUAL(ret1, EOK, ret1);
ret1 = strcat_s(pathname, NAME_BUF_SIZE, filename);
ICUNIT_ASSERT_EQUAL(ret1, EOK, ret1);
ret = mkfifo(pathname, 0777); // 0777, file athurioty
ICUNIT_GOTO_EQUAL(ret, 0, ret, EXIT1);
spid = fork();
......
......@@ -40,8 +40,13 @@ static UINT32 Testcase(VOID)
char buffer[20]; // 20, target buffer size
char pathname[NAME_BUF_SIZE];
char *filename = "/mkfifotest3";
strncpy(pathname, "/dev", NAME_BUF_SIZE);
strcat(pathname, filename);
char *dir = "/dev";
errno_t ret1 = strncpy_s(pathname, NAME_BUF_SIZE, dir, strlen(dir));
ICUNIT_ASSERT_EQUAL(ret1, EOK, ret1);
ret1 = strcat_s(pathname, NAME_BUF_SIZE, filename);
ICUNIT_ASSERT_EQUAL(ret1, EOK, ret1);
ret = mkfifo(pathname, 0777); // 0777, file athurioty
ICUNIT_GOTO_EQUAL(ret, 0, ret, EXIT1);
spid = fork();
......
......@@ -53,56 +53,6 @@ static int TestMkfifoReturn()
ICUNIT_GOTO_EQUAL(retValue, -1, retValue, EXIT);
ICUNIT_GOTO_EQUAL(errno, EEXIST, errno, EXIT);
/* // no support errno EDQUOT ENOENT EROFS ENAMETOOLONG
retValue = mkfifo("/dev/fifo0/fifo1", 0777);
ICUNIT_GOTO_EQUAL(retValue, -1, retValue, EXIT);
ICUNIT_GOTO_EQUAL(errno, ENOENT, errno, EXIT);
mkdir("/dev/usr", 0444);
ICUNIT_GOTO_EQUAL(retValue, 0, retValue,EXIT);
retValue = mkfifo("/dev/usr/fifo0", 0777);
ICUNIT_GOTO_EQUAL(retValue, -1, retValue, EXIT);
ICUNIT_GOTO_EQUAL(errno, EROFS, errno, EXIT);
sprintf(pathname, "/dev/");
for (i = 5; i < NAME_BUF_SIZE - 4; i = i + 4) {
sprintf(&pathname[i], "fifo");
}
printf("pathname : %s\n", pathname);
retValue = mkfifo(pathname, 0777);
ICUNIT_GOTO_EQUAL(retValue, -1, retValue, EXIT);
ICUNIT_GOTO_EQUAL(errno, ENAMETOOLONG, errno, EXIT);
retValue = mkfifo("/usr/fifo0", 0777);
ICUNIT_GOTO_EQUAL(retValue, -1, retValue, EXIT);
pid = fork();
if (pid < 0) {
printf("Fork error\n");
return LOS_NOK;
} else if (pid == 0) {
for (i = 1; i <= 100024; i++) {
sprintf(pathname, "/dev/fifo%d", i);
mkfifo(pathname, 0777);
}
retValue = mkfifo("/dev/fifo100025", 0777);
if (retValue != -1) {
printf("error: unexpect return mkfifo\n");
exit(FAULT1);
}
if (errno != EDQUOT) {
printf("error: unexpect errno mkfifo\n");
exit(FAULT2);
}
exit(LOS_OK);
}
wait(&status);
ICUNIT_GOTO_EQUAL(WEXITSTATUS(status),LOS_OK,WEXITSTATUS(status), EXIT);
for (i = 0; i <= 100025; i++) {
sprintf(pathname, "/dev/fifo%d", i);
unlink(pathname);
} */
unlink("/usr/fifo0");
unlink("/dev/fifo0/fifo1");
unlink("/dev/usr/fifo0");
......
......@@ -67,7 +67,7 @@ static int TestPipeMultiProcess()
errno = 0;
char sentence1[15] = "Hello World";
char a[2] = {0};
sprintf(a, "%d", i);
(void)sprintf_s(a, sizeof(a), "%d", i);
strcat(sentence1, a);
int ret = write(*writeFd, sentence1, strlen(sentence1) + 1);
ICUNIT_ASSERT_EQUAL(ret, strlen(sentence1) + 1, ret);
......@@ -87,7 +87,7 @@ static int TestPipeMultiProcess()
printf("read\n");
char sentence1[15] = "Hello World";
char a[2] = {0};
sprintf(a, "%d", i);
(void)sprintf_s(a, sizeof(a), "%d", i);
strcat(sentence1, a);
memset(readbuffer, 0, sizeof(readbuffer));
retValue = read(*readFd, readbuffer, strlen(sentence1) + 1);
......
......@@ -35,10 +35,11 @@
static int g_sigCount = 0;
static void SigPrint(int sig)
{
(void)sig;
g_sigCount++;
}
static int TestRaiseIgnore()
static int TestRaiseIgnore(void)
{
int sig = SIGPWR;
void *ret;
......
......@@ -34,15 +34,17 @@
static int g_sigCount = 0;
static void SigPrint(int sig)
{
(void)sig;
g_sigCount++;
}
static void SigPrint1(int sig)
{
(void)sig;
g_sigCount += 100; // 100, Used to calculate the progress of the program.
}
static int TestSigSet()
static int TestSigSet(void)
{
sigset_t set = { 0 };
sigset_t set1 = { 0 };
......
......@@ -33,19 +33,22 @@
static void SigPrint(int sig)
{
printf("%s\n", __FUNCTION__, __LINE__);
(void)sig;
printf("%s%d\n", __FUNCTION__, __LINE__);
return;
}
static void SigPrint1(int sig)
{
printf("%s\n", __FUNCTION__, __LINE__);
(void)sig;
printf("%s%d\n", __FUNCTION__, __LINE__);
return;
}
static int g_sigCount = 0;
static void SigPrint2(int sig)
{
(void)sig;
g_sigCount = 1;
printf("%s, count = %d\n", __FUNCTION__, g_sigCount);
return;
......@@ -53,6 +56,7 @@ static void SigPrint2(int sig)
static void *ThreadSetFunc2(void *arg)
{
(void)arg;
void (*retSig)(int);
retSig = signal(SIGALRM, SigPrint2);
ICUNIT_GOTO_NOT_EQUAL(retSig, SIG_ERR, retSig, EXIT);
......@@ -65,6 +69,7 @@ EXIT:
static void *ThreadSetDfl(void *arg)
{
(void)arg;
void (*retSig)(int);
retSig = signal(SIGALRM, SIG_DFL);
ICUNIT_GOTO_NOT_EQUAL(retSig, SIG_ERR, retSig, EXIT);
......@@ -77,6 +82,7 @@ EXIT:
static void *ThreadKill(void *arg)
{
(void)arg;
int retValue;
retValue = raise(SIGALRM);
......@@ -88,7 +94,7 @@ EXIT:
return (void *)-1;
}
static int TestSigMultiPthread()
static int TestSigMultiPthread(void)
{
int fpid;
int status;
......
......@@ -35,15 +35,17 @@
static void SigPrint(int signum)
{
(void)signum;
printf("Catch signal %d\n", signum);
}
static void SigQuit(int signum)
{
(void)signum;
printf("QUIT\n");
}
static int TestSignal()
static int TestSignal(void)
{
int sigI = SIGINT;
int sigQ = SIGQUIT;
......@@ -86,4 +88,4 @@ static int TestSignal()
void ItPosixSignal021(void)
{
TEST_ADD_CASE(__FUNCTION__, TestSignal, TEST_POSIX, TEST_SIGNAL, TEST_LEVEL0, TEST_FUNCTION);
}
\ No newline at end of file
}
......@@ -33,15 +33,17 @@
static void OldAction(int signum)
{
(void)signum;
printf("Here is the old action\n");
}
static void NewAction(int signum)
{
(void)signum;
printf("Here is the new action\n");
}
static int TestSigaction()
static int TestSigaction(void)
{
int retValue, status;
int fpid = fork();
......@@ -102,4 +104,4 @@ static int TestSigaction()
void ItPosixSignal024(void)
{
TEST_ADD_CASE(__FUNCTION__, TestSigaction, TEST_POSIX, TEST_SIGNAL, TEST_LEVEL0, TEST_FUNCTION);
}
\ No newline at end of file
}
......@@ -38,16 +38,6 @@ static UINT32 TestCase(VOID)
int ret = 0;
sigset_t set;
/* // EINVAL no support
ret = sigemptyset(NULL);
ICUNIT_ASSERT_EQUAL(ret, -1, ret);
ICUNIT_ASSERT_EQUAL(errno, EINVAL, errno);
ret = sigfillset(NULL);
ICUNIT_ASSERT_EQUAL(ret, -1, ret);
ICUNIT_ASSERT_EQUAL(errno, EINVAL, errno);
*/
int status;
int fpid = fork();
if (fpid == 0) {
......@@ -119,4 +109,4 @@ static UINT32 TestCase(VOID)
void ItPosixSignal031(void)
{
TEST_ADD_CASE(__FUNCTION__, TestCase, TEST_POSIX, TEST_SIGNAL, TEST_LEVEL0, TEST_FUNCTION);
}
\ No newline at end of file
}
......@@ -34,6 +34,7 @@
static int g_sigCount = 0;
static void SigPrint(int sig)
{
(void)sig;
g_sigCount++;
printf("signal receive sucess\n");
}
......@@ -75,4 +76,4 @@ static UINT32 TestCase(VOID)
void ItPosixSignal032(void)
{
TEST_ADD_CASE(__FUNCTION__, TestCase, TEST_POSIX, TEST_SIGNAL, TEST_LEVEL0, TEST_FUNCTION);
}
\ No newline at end of file
}
......@@ -34,6 +34,7 @@
static int g_sigCount = 0;
static void SigPrint(int sig)
{
(void)sig;
g_sigCount++;
}
......
......@@ -57,12 +57,6 @@ static UINT32 TestCase(VOID)
exit(0);
}
/* // EFAULT no support
ret = setitimer(ITIMER_VIRTUAL, NULL, &oldValue);
printf("ret = %d errno = %d EFAULT = %d\n", ret, errno, EFAULT);
ICUNIT_ASSERT_EQUAL(ret, -1, ret);
ICUNIT_ASSERT_EQUAL(errno, EFAULT, errno); */
ret = waitpid(fpid, &status, 0);
ICUNIT_ASSERT_EQUAL(ret, fpid, ret);
ICUNIT_ASSERT_EQUAL(WEXITSTATUS(status), 0, WEXITSTATUS(status));
......
......@@ -47,7 +47,6 @@ public:
* @tc.name: IT_TEST_TRACE_001
* @tc.desc: function for TraceTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(TraceTest, ItTestTrace001, TestSize.Level0)
{
......@@ -58,7 +57,6 @@ HWTEST_F(TraceTest, ItTestTrace001, TestSize.Level0)
* @tc.name: IT_TEST_TRACE_002
* @tc.desc: function for TraceTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(TraceTest, ItTestTrace002, TestSize.Level0)
{
......@@ -69,7 +67,6 @@ HWTEST_F(TraceTest, ItTestTrace002, TestSize.Level0)
* @tc.name: IT_TEST_TRACE_003
* @tc.desc: function for TraceTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(TraceTest, ItTestTrace003, TestSize.Level0)
{
......@@ -80,7 +77,6 @@ HWTEST_F(TraceTest, ItTestTrace003, TestSize.Level0)
* @tc.name: IT_TEST_TRACE_004
* @tc.desc: function for TraceTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(TraceTest, ItTestTrace004, TestSize.Level0)
{
......
......@@ -39,7 +39,9 @@ static UINT32 Testcase(VOID)
struct mntent *mnt = NULL;
FILE *fp = NULL;
strcat_s(pathname1, JFFS_STANDARD_NAME_LENGTH, "test12");
ret1 = strcat_s(pathname1, JFFS_STANDARD_NAME_LENGTH, "test12");
ICUNIT_ASSERT_EQUAL(ret1, EOK, ret1);
fp = setmntent(pathname1, "w+b");
ICUNIT_GOTO_NOT_EQUAL(fp, NULL, fp, EXIT);
......
......@@ -43,7 +43,7 @@ static INT32 DisplayInfo(const char *fpath, const struct stat *sb, int tflag, st
if (tflag == FTW_NS) {
printf("-------");
} else {
printf("%7jd", (intmax_t)sb->st_size);
printf("%7d", (intmax_t)sb->st_size);
}
printf(" %-40s %d %s\n", fpath, ftwbuf->base, fpath + ftwbuf->base);
......
......@@ -42,11 +42,6 @@ static UINT32 testcase8(VOID)
int fd = 0;
/* omit to create test file dynamicly,use prepared test files in /storage instand. */
#if 0
errno = 0;
sprintf(pathname, "%s%s", __func__, ".tmp");
#endif
errno = 0;
fd = open(pathname, O_CREAT, 0777);
TEST_PRINT("[INFO]%s:%d,%s,fd=%d,errno=%d,errstr=%s\n", __FILE__, __LINE__, __func__, fd, errno, strerror(errno));
......
......@@ -49,7 +49,7 @@ static int TestUmask(const char *path)
ICUNIT_ASSERT_EQUAL(mode, 0022, mode); // mode: 0022
mode = umask(0022); // umask: 0022
ICUNIT_ASSERT_EQUAL(mode, 0044, mode); // mode: 0044
sprintf(filename, "%s/%s", path, g_testDIR);
(void)sprintf_s(filename, sizeof(filename), "%s/%s", path, g_testDIR);
ret = mkdir(filename, HIGHEST_AUTHORITY);
ICUNIT_ASSERT_EQUAL(ret, 0, ret);
ret = stat(filename, &buf);
......@@ -74,10 +74,10 @@ static int TestOpen(const char *path)
ICUNIT_ASSERT_EQUAL(ret, 0, ret);
// uid 111, gid 111,home dir 0 0 757
sprintf(filename, "%s/%s", path, g_testDIR);
(void)sprintf_s(filename, sizeof(filename), "%s/%s", path, g_testDIR);
ret = mkdir(filename, 0753); // mode: 0753
ICUNIT_ASSERT_EQUAL(ret, 0, ret);
sprintf(filename1, "%s/%s", filename, "f1");
(void)sprintf_s(filename1, sizeof(filename1), "%s/%s", filename, "f1");
ret = open(filename1, O_CREAT | O_WRONLY, 0755); // mode: 0755
ICUNIT_ASSERT_NOT_EQUAL(ret, -1, ret);
close(ret);
......@@ -88,7 +88,7 @@ static int TestOpen(const char *path)
ICUNIT_ASSERT_EQUAL(ret, 0, ret);
// uid 222, gid 111,home dir 111 111 753
ICUNIT_ASSERT_EQUAL(ret, 0, ret);
sprintf(filename2, "%s/%s", filename, "f2");
(void)sprintf_s(filename2, sizeof(filename2), "%s/%s", filename, "f2");
ret = open(filename2, O_CREAT | O_WRONLY, 0755); // mode: 0755
ICUNIT_ASSERT_EQUAL(ret, -1, ret);
ret = open(filename1, O_WRONLY);
......@@ -98,7 +98,7 @@ static int TestOpen(const char *path)
ret = setgid(g_testUID2);
// uid 222, gid 222,home dir 111 111 753
ICUNIT_ASSERT_EQUAL(ret, 0, ret);
sprintf(filename3, "%s/%s", filename, "f3");
(void)sprintf_s(filename3, sizeof(filename3), "%s/%s", filename, "f3");
ret = open(filename3, O_CREAT | O_WRONLY, 0755); // mode: 0755
printf("%s, %d ret %d\n", __FUNCTION__, __LINE__, ret);
ICUNIT_ASSERT_NOT_EQUAL(ret, -1, ret);
......@@ -135,10 +135,10 @@ static int TestUnlink(const char *path)
printf("%s, %d\n", __FUNCTION__, __LINE__);
// uid 0, gid 0, home dir 0 0 757
sprintf(filename, "%s/%s", path, g_testDIR);
(void)sprintf_s(filename, sizeof(filename), "%s/%s", path, g_testDIR);
ret = mkdir(filename, 0757); // mode 757
ICUNIT_ASSERT_EQUAL(ret, 0, ret);
sprintf(filename1, "%s/%s", filename, "f1");
(void)sprintf_s(filename1, sizeof(filename1), "%s/%s", filename, "f1");
ret = open(filename1, O_CREAT | O_WRONLY, 0755); // mode: 0755
ICUNIT_ASSERT_NOT_EQUAL(ret, -1, ret);
......@@ -174,7 +174,7 @@ static int TestMkdir(const char *path)
printf("%s, %d\n", __FUNCTION__, __LINE__);
// uid 0, gid 0, home dir 0 0 757
sprintf(filename, "%s/%s", path, g_testDIR);
(void)sprintf_s(filename, sizeof(filename), "%s/%s", path, g_testDIR);
ret = mkdir(filename, 0735); // mode 735
ICUNIT_ASSERT_EQUAL(ret, 0, ret);
......@@ -204,10 +204,10 @@ static int TestChmod(const char *path)
printf("%s, %d\n", __FUNCTION__, __LINE__);
// uid 0, gid 0, home dir 0 0 757
sprintf(filename, "%s/%s", path, g_testDIR);
(void)sprintf_s(filename, sizeof(filename), "%s/%s", path, g_testDIR);
ret = mkdir(filename, 0757); // mode 757
ICUNIT_ASSERT_EQUAL(ret, 0, ret);
sprintf(filename1, "%s/%s", filename, "f1");
(void)sprintf_s(filename1, sizeof(filename1), "%s/%s", filename, "f1");
setuid(g_testUID2);
ret = chmod(filename, 0111); // mode: 0111
......@@ -238,10 +238,10 @@ static int TestStatChdir(const char *path)
printf("%s, %d\n", __FUNCTION__, __LINE__);
// uid 0, gid 0, home dir 0 0 757
sprintf(filename, "%s/%s", path, g_testDIR);
(void)sprintf_s(filename, sizeof(filename), "%s/%s", path, g_testDIR);
ret = mkdir(filename, 0700); // mode: 0700
ICUNIT_ASSERT_EQUAL(ret, 0, ret);
sprintf(filename1, "%s/%s", filename, "f1");
(void)sprintf_s(filename1, sizeof(filename1)"%s/%s", filename, "f1");
ret = mkdir(filename1, 0755); // mode: 0755
ICUNIT_ASSERT_NOT_EQUAL(ret, -1, ret);
......@@ -294,15 +294,15 @@ static int TestRename(const char *path)
ICUNIT_ASSERT_EQUAL(ret, 0, ret);
// uid 111, gid 111,home dir 0 0 757
sprintf(filename, "%s/%s", path, g_testDIR);
(void)sprintf_s(filename, sizeof(filename), "%s/%s", path, g_testDIR);
ret = mkdir(filename, 0711); // mode: 0711
ICUNIT_ASSERT_EQUAL(ret, 0, ret);
sprintf(filename1, "%s/%s", filename, "f1");
(void)sprintf_s(filename1, sizeof(filename1), "%s/%s", filename, "f1");
ret = mkdir(filename1, 0755); // mode: 0755
ICUNIT_ASSERT_NOT_EQUAL(ret, -1, ret);
close(ret);
sprintf(filename2, "%s/%s", filename, "f2");
(void)sprintf_s(filename2, sizeof(filename2), "%s/%s", filename, "f2");
ret = rename(filename1, filename2);
ICUNIT_ASSERT_EQUAL(ret, 0, ret);
......@@ -310,7 +310,7 @@ static int TestRename(const char *path)
// uid 222, gid 222,home dir 111 111 753
ICUNIT_ASSERT_EQUAL(ret, 0, ret);
sprintf(filename2, "%s/%s", filename, "f2");
(void)sprintf_s(filename2, sizeof(filename2), "%s/%s", filename, "f2");
ret = rename(filename2, filename1);
ICUNIT_ASSERT_EQUAL(ret, -1, ret);
......@@ -338,7 +338,7 @@ static int TestAccess(const char *path)
printf("%s, %d\n", __FUNCTION__, __LINE__);
// uid 0, gid 0, home dir 0 0 757
sprintf(filename, "%s/%s", path, g_testDIR);
(void)sprintf_s(filename, sizeof(filename), "%s/%s", path, g_testDIR);
ret = mkdir(filename, 0757); // mode 757
ICUNIT_ASSERT_EQUAL(ret, 0, ret);
......@@ -406,8 +406,8 @@ static int TestCapReadSearch()
ret = mkdir("/storage/test_jffs2", 0757); // mode 0757
ICUNIT_ASSERT_EQUAL(ret, 0, ret);
sprintf(filenameParent, "%s/%s", "/storage/test_jffs2", "testParent");
sprintf(filenameChild, "%s/%s", filenameParent, "testChild");
(void)sprintf_s(filenameParent, sizeof(filenameParent), "%s/%s", "/storage/test_jffs2", "testParent");
(void)sprintf_s(filenameChild, sizeof(filenameChild), "%s/%s", filenameParent, "testChild");
ret = mkdir(filenameParent, 0222); // mode 0222
ICUNIT_ASSERT_EQUAL(ret, 0, ret);
SetReadAndSearch();
......@@ -522,7 +522,6 @@ EXIT:
return 1;
}
void ItTestDac001(void)
{
TEST_ADD_CASE("IT_SEC_DAC_001", testcase, TEST_VFS, TEST_JFFS, TEST_LEVEL0, TEST_FUNCTION);
......
......@@ -38,6 +38,7 @@
static void SigPrint(int sig)
{
(void)sig;
return;
}
......
......@@ -48,7 +48,6 @@ public:
* @tc.name: IT_TEST_IO_005
* @tc.desc: function for IoTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(IoTest, ItTestIo005, TestSize.Level0)
{
......@@ -60,7 +59,6 @@ HWTEST_F(IoTest, ItTestIo005, TestSize.Level0)
* @tc.name: IT_TEST_IO_008
* @tc.desc: function for IoTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(IoTest, ItTestIo008, TestSize.Level0)
{
......@@ -73,7 +71,6 @@ HWTEST_F(IoTest, ItTestIo008, TestSize.Level0)
* @tc.name: IT_TEST_IO_010
* @tc.desc: function for IoTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(IoTest, ItTestIo010, TestSize.Level0)
{
......@@ -84,7 +81,6 @@ HWTEST_F(IoTest, ItTestIo010, TestSize.Level0)
* @tc.name: IT_TEST_IO_013
* @tc.desc: function for IoTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(IoTest, ItTestIo013, TestSize.Level0)
{
......@@ -97,7 +93,6 @@ HWTEST_F(IoTest, ItTestIo013, TestSize.Level0)
* @tc.name: IO_TEST_PSELECT_001
* @tc.desc: function for IoTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(IoTest, IO_TEST_PSELECT_001, TestSize.Level0)
{
......@@ -108,7 +103,6 @@ HWTEST_F(IoTest, IO_TEST_PSELECT_001, TestSize.Level0)
* @tc.name: IO_TEST_PSELECT_002
* @tc.desc: function for IoTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(IoTest, IO_TEST_PSELECT_002, TestSize.Level0)
{
......@@ -119,7 +113,6 @@ HWTEST_F(IoTest, IO_TEST_PSELECT_002, TestSize.Level0)
* @tc.name: IO_TEST_PPOLL_001
* @tc.desc: function for IoTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(IoTest, IO_TEST_PPOLL_001, TestSize.Level0)
{
......@@ -130,7 +123,6 @@ HWTEST_F(IoTest, IO_TEST_PPOLL_001, TestSize.Level0)
* @tc.name: IO_TEST_PPOLL_002
* @tc.desc: function for IoTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(IoTest, IO_TEST_PPOLL_002, TestSize.Level0)
{
......@@ -141,7 +133,6 @@ HWTEST_F(IoTest, IO_TEST_PPOLL_002, TestSize.Level0)
* @tc.name: IO_TEST_PPOLL_003
* @tc.desc: function for IoTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(IoTest, IO_TEST_PPOLL_003, TestSize.Level0)
{
......@@ -152,7 +143,6 @@ HWTEST_F(IoTest, IO_TEST_PPOLL_003, TestSize.Level0)
* @tc.name: IO_TEST_EPOLL_001
* @tc.desc: function for IoTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(IoTest, IO_TEST_EPOLL_001, TestSize.Level0)
......@@ -164,7 +154,6 @@ HWTEST_F(IoTest, IO_TEST_EPOLL_001, TestSize.Level0)
* @tc.name: IO_TEST_EPOLL_002
* @tc.desc: function for IoTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(IoTest, IO_TEST_EPOLL_002, TestSize.Level0)
{
......@@ -175,7 +164,6 @@ HWTEST_F(IoTest, IO_TEST_EPOLL_002, TestSize.Level0)
* @tc.name: IT_STDLIB_POLL_002
* @tc.desc: function for IoTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(IoTest, ItStdlibPoll002, TestSize.Level0)
{
......@@ -186,7 +174,6 @@ HWTEST_F(IoTest, ItStdlibPoll002, TestSize.Level0)
* @tc.name: IT_STDLIB_POLL_003
* @tc.desc: function for IoTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(IoTest, ItStdlibPoll003, TestSize.Level0)
{
......@@ -197,7 +184,6 @@ HWTEST_F(IoTest, ItStdlibPoll003, TestSize.Level0)
* @tc.name: IT_STDIO_PUTWC_001
* @tc.desc: function for IoTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(IoTest, ItStdioPutwc001, TestSize.Level0)
{
......@@ -208,7 +194,6 @@ HWTEST_F(IoTest, ItStdioPutwc001, TestSize.Level0)
* @tc.name: IT_STDIO_READV_001
* @tc.desc: function for IoTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(IoTest, ItStdioReadv001, TestSize.Level0)
{
......@@ -219,7 +204,6 @@ HWTEST_F(IoTest, ItStdioReadv001, TestSize.Level0)
* @tc.name: IT_STDIO_RINDEX_001
* @tc.desc: function for IoTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(IoTest, ItStdioRindex001, TestSize.Level0)
{
......@@ -230,7 +214,6 @@ HWTEST_F(IoTest, ItStdioRindex001, TestSize.Level0)
* @tc.name: IT_STDIO_SETLOGMASK_001
* @tc.desc: function for IoTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(IoTest, ItStdioSetlogmask001, TestSize.Level0)
{
......@@ -241,7 +224,6 @@ HWTEST_F(IoTest, ItStdioSetlogmask001, TestSize.Level0)
* @tc.name: IT_STDLIB_GCVT_001
* @tc.desc: function for IoTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(IoTest, ItStdlibGcvt001, TestSize.Level0)
{
......@@ -252,7 +234,6 @@ HWTEST_F(IoTest, ItStdlibGcvt001, TestSize.Level0)
* @tc.name: IT_LOCALE_LOCALECONV_001
* @tc.desc: function for IoTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(IoTest, ItLocaleLocaleconv001, TestSize.Level0)
{
......@@ -263,7 +244,6 @@ HWTEST_F(IoTest, ItLocaleLocaleconv001, TestSize.Level0)
* @tc.name: IT_STDIO_FPUTWS_001
* @tc.desc: function for IoTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(IoTest, ItStdioFputws001, TestSize.Level0)
{
......@@ -274,7 +254,6 @@ HWTEST_F(IoTest, ItStdioFputws001, TestSize.Level0)
* @tc.name: IT_STDIO_FWPRINTF_001
* @tc.desc: function for IoTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(IoTest, ItStdioFwprintf001, TestSize.Level0)
{
......@@ -285,7 +264,6 @@ HWTEST_F(IoTest, ItStdioFwprintf001, TestSize.Level0)
* @tc.name: IT_STDIO_GETC_UNLOCKED_001
* @tc.desc: function for IoTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(IoTest, ItStdioGetcUnlocked001, TestSize.Level0)
{
......@@ -296,7 +274,6 @@ HWTEST_F(IoTest, ItStdioGetcUnlocked001, TestSize.Level0)
* @tc.name: IT_STDIO_MBLEN_001
* @tc.desc: function for IoTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(IoTest, ItStdioMblen001, TestSize.Level0)
{
......@@ -307,7 +284,6 @@ HWTEST_F(IoTest, ItStdioMblen001, TestSize.Level0)
* @tc.name: IT_STDIO_MBRLEN_001
* @tc.desc: function for IoTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(IoTest, ItStdioMbrlen001, TestSize.Level0)
{
......@@ -318,7 +294,6 @@ HWTEST_F(IoTest, ItStdioMbrlen001, TestSize.Level0)
* @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)
{
......@@ -329,7 +304,6 @@ HWTEST_F(IoTest, IT_STDIO_HASMNTOPT_001, TestSize.Level0)
* @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)
{
......@@ -340,7 +314,6 @@ HWTEST_F(IoTest, IO_TEST_DUPLOCALE_001, TestSize.Level0)
* @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)
{
......@@ -351,7 +324,6 @@ HWTEST_F(IoTest, IO_TEST_NL_LANGINFO_001, TestSize.Level0)
* @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)
{
......@@ -362,7 +334,6 @@ HWTEST_F(IoTest, IO_TEST_STRCASECMP_L_001, TestSize.Level0)
* @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)
{
......@@ -373,7 +344,6 @@ HWTEST_F(IoTest, IO_TEST_STRCASECMP_L_002, TestSize.Level0)
* @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)
{
......@@ -384,7 +354,6 @@ HWTEST_F(IoTest, IO_TEST_STRNCASECMP_L_001, TestSize.Level0)
* @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)
{
......@@ -395,7 +364,6 @@ HWTEST_F(IoTest, IO_TEST_STRNCASECMP_L_002, TestSize.Level0)
* @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)
{
......@@ -406,7 +374,6 @@ HWTEST_F(IoTest, IO_TEST_NL_LANGINFO_l_001, TestSize.Level0)
* @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)
{
......@@ -417,7 +384,6 @@ HWTEST_F(IoTest, IO_TEST_DNGETTEXT_001, TestSize.Level0)
* @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)
{
......@@ -428,7 +394,6 @@ HWTEST_F(IoTest, IO_TEST_DNGETTEXT_002, TestSize.Level0)
* @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)
{
......@@ -439,7 +404,6 @@ HWTEST_F(IoTest, IO_TEST_DCNGETTEXT_001, TestSize.Level0)
* @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)
{
......@@ -449,7 +413,6 @@ HWTEST_F(IoTest, IO_TEST_DCNGETTEXT_002, TestSize.Level0)
* @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)
{
......@@ -460,7 +423,6 @@ HWTEST_F(IoTest, IO_TEST_DCGETTEXT_001, TestSize.Level0)
* @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)
{
......@@ -471,7 +433,6 @@ HWTEST_F(IoTest, IO_TEST_DCGETTEXT_002, TestSize.Level0)
* @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)
{
......@@ -482,7 +443,6 @@ HWTEST_F(IoTest, IO_TEST_GETTEXT_001, TestSize.Level0)
* @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)
{
......@@ -493,7 +453,6 @@ HWTEST_F(IoTest, IO_TEST_LOCALE_001, TestSize.Level0)
* @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)
{
......@@ -504,7 +463,6 @@ HWTEST_F(IoTest, IO_TEST_LOCALE_002, TestSize.Level0)
* @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)
{
......@@ -515,7 +473,6 @@ HWTEST_F(IoTest, IO_TEST_STRFMON_L_001, TestSize.Level0)
* @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)
{
......@@ -526,7 +483,6 @@ HWTEST_F(IoTest, IO_TEST_STRFMON_L_002, TestSize.Level0)
* @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)
{
......
......@@ -47,7 +47,6 @@ public:
* @tc.name: IT_TEST_MISC_001
* @tc.desc: function for MiscTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MiscTest, ItTestMisc001, TestSize.Level0)
{
......@@ -58,7 +57,6 @@ HWTEST_F(MiscTest, ItTestMisc001, TestSize.Level0)
* @tc.name: IT_TEST_MISC_002
* @tc.desc: function for MiscTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MiscTest, ItTestMisc002, TestSize.Level0)
{
......@@ -69,7 +67,6 @@ HWTEST_F(MiscTest, ItTestMisc002, TestSize.Level0)
* @tc.name: IT_TEST_MISC_003
* @tc.desc: function for MiscTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MiscTest, ItTestMisc003, TestSize.Level0)
{
......@@ -80,7 +77,6 @@ HWTEST_F(MiscTest, ItTestMisc003, TestSize.Level0)
* @tc.name: IT_TEST_MISC_004
* @tc.desc: function for MiscTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MiscTest, ItTestMisc004, TestSize.Level0)
{
......@@ -91,7 +87,6 @@ HWTEST_F(MiscTest, ItTestMisc004, TestSize.Level0)
* @tc.name: IT_TEST_MISC_005
* @tc.desc: function for MiscTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MiscTest, ItTestMisc005, TestSize.Level0)
{
......@@ -102,7 +97,6 @@ HWTEST_F(MiscTest, ItTestMisc005, TestSize.Level0)
* @tc.name: IT_TEST_MISC_014
* @tc.desc: function for tmpnam test
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MiscTest, IT_TEST_MISC_014, TestSize.Level0)
{
......@@ -115,7 +109,6 @@ HWTEST_F(MiscTest, IT_TEST_MISC_014, TestSize.Level0)
* @tc.name: IT_TEST_MISC_006
* @tc.desc: function for MiscTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MiscTest, ItTestMisc006, TestSize.Level0)
{
......@@ -126,7 +119,6 @@ HWTEST_F(MiscTest, ItTestMisc006, TestSize.Level0)
* @tc.name: IT_TEST_MISC_007
* @tc.desc: function for MiscTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MiscTest, ItTestMisc007, TestSize.Level0)
{
......@@ -137,7 +129,6 @@ HWTEST_F(MiscTest, ItTestMisc007, TestSize.Level0)
* @tc.name: IT_TEST_MISC_008
* @tc.desc: function for MiscTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MiscTest, ItTestMisc008, TestSize.Level0)
{
......@@ -148,7 +139,6 @@ HWTEST_F(MiscTest, ItTestMisc008, TestSize.Level0)
* @tc.name: IT_TEST_MISC_009
* @tc.desc: function for MiscTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MiscTest, ItTestMisc009, TestSize.Level0)
{
......@@ -159,7 +149,6 @@ HWTEST_F(MiscTest, ItTestMisc009, TestSize.Level0)
* @tc.name: IT_TEST_MISC_010
* @tc.desc: function for MiscTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
/*HWTEST_F(MiscTest, ItTestMisc010, TestSize.Level0)
{
......@@ -170,7 +159,6 @@ HWTEST_F(MiscTest, ItTestMisc009, TestSize.Level0)
* @tc.name: IT_TEST_MISC_011
* @tc.desc: function for MiscTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
/*HWTEST_F(MiscTest, ItTestMisc011, TestSize.Level0)
{
......@@ -181,7 +169,6 @@ HWTEST_F(MiscTest, ItTestMisc009, TestSize.Level0)
* @tc.name: IT_TEST_MISC_012
* @tc.desc: function for MiscTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(MiscTest, ItTestMisc012, TestSize.Level0)
{
......@@ -192,7 +179,6 @@ HWTEST_F(MiscTest, ItTestMisc012, TestSize.Level0)
* @tc.name: IT_TEST_MISC_013
* @tc.desc: function for MiscTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
/*HWTEST_F(MiscTest, ItTestMisc013, TestSize.Level0)
{
......
......@@ -48,7 +48,6 @@ public:
* @tc.name: IT_POSIX_MEM_001
* @tc.desc: function for PosixMemTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(PosixMemTest, ItPosixMem001, TestSize.Level0)
{
......@@ -59,7 +58,6 @@ HWTEST_F(PosixMemTest, ItPosixMem001, TestSize.Level0)
* @tc.name: IT_POSIX_MEM_003
* @tc.desc: function for PosixMemTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(PosixMemTest, ItPosixMem003, TestSize.Level0)
{
......
......@@ -88,7 +88,7 @@ static UINT32 Testcase(VOID)
ICUNIT_ASSERT_EQUAL(rc, 0, rc);
ICUNIT_ASSERT_EQUAL(g_t1Start, 2, g_t1Start);
g_signaled = 0; // add by d00346846
g_signaled = 0;
rc = pthread_cond_destroy(&g_td.cond);
ICUNIT_ASSERT_EQUAL(rc, ENOERR, rc);
......
......@@ -33,8 +33,7 @@
static int TestCase(void)
{
char *name = getlogin();
ICUNIT_ASSERT_NOT_EQUAL(name, "USER1", NULL);
int ret = getlogin_r(name, strlen(name) + 1);
int ret = getlogin_r(name, sizeof(name)); // Abnormal Scenario Testing
ICUNIT_ASSERT_EQUAL(ret, 6, ret);
ret = setenv("LOGNAME", "USER1", 1);
ICUNIT_ASSERT_EQUAL(ret, 0, ret);
......@@ -57,4 +56,4 @@ static int TestCase(void)
VOID ItTestSys026(VOID)
{
TEST_ADD_CASE("IT_TEST_SYS_026", TestCase, TEST_POSIX, TEST_MEM, TEST_LEVEL0, TEST_FUNCTION);
}
\ No newline at end of file
}
......@@ -51,7 +51,6 @@ public:
* @tc.name: IT_TEST_SYS_004
* @tc.desc: function for SysTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SysTest, ItTestSys004, TestSize.Level0)
{
......@@ -62,7 +61,6 @@ HWTEST_F(SysTest, ItTestSys004, TestSize.Level0)
* @tc.name: IT_TEST_SYS_005
* @tc.desc: function for SysTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SysTest, ItTestSys005, TestSize.Level0)
{
......@@ -73,7 +71,6 @@ HWTEST_F(SysTest, ItTestSys005, TestSize.Level0)
* @tc.name: IT_TEST_SYS_006
* @tc.desc: function for SysTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SysTest, ItTestSys006, TestSize.Level0)
{
......@@ -84,7 +81,6 @@ HWTEST_F(SysTest, ItTestSys006, TestSize.Level0)
* @tc.name: IT_TEST_SYS_007
* @tc.desc: function for SysTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SysTest, ItTestSys007, TestSize.Level0)
{
......@@ -95,7 +91,6 @@ HWTEST_F(SysTest, ItTestSys007, TestSize.Level0)
* @tc.name: IT_TEST_SYS_008
* @tc.desc: function for SysTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SysTest, ItTestSys008, TestSize.Level0)
{
......@@ -106,7 +101,6 @@ HWTEST_F(SysTest, ItTestSys008, TestSize.Level0)
* @tc.name: IT_TEST_SYS_009
* @tc.desc: function for SysTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SysTest, ItTestSys009, TestSize.Level0)
{
......@@ -117,7 +111,6 @@ HWTEST_F(SysTest, ItTestSys009, TestSize.Level0)
* @tc.name: IT_TEST_SYS_010
* @tc.desc: function for SysTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SysTest, ItTestSys010, TestSize.Level0)
{
......@@ -128,7 +121,6 @@ HWTEST_F(SysTest, ItTestSys010, TestSize.Level0)
* @tc.name: IT_TEST_SYS_012
* @tc.desc: function for SysTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SysTest, ItTestSys012, TestSize.Level0)
{
......@@ -139,7 +131,6 @@ HWTEST_F(SysTest, ItTestSys012, TestSize.Level0)
* @tc.name: IT_TEST_SYS_013
* @tc.desc: function for SysTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SysTest, ItTestSys013, TestSize.Level0)
{
......@@ -150,7 +141,6 @@ HWTEST_F(SysTest, ItTestSys013, TestSize.Level0)
* @tc.name: IT_TEST_SYS_014
* @tc.desc: function for SysTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SysTest, ItTestSys014, TestSize.Level0)
{
......@@ -161,7 +151,6 @@ HWTEST_F(SysTest, ItTestSys014, TestSize.Level0)
* @tc.name: IT_TEST_SYS_015
* @tc.desc: function for SysTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SysTest, ItTestSys015, TestSize.Level0)
{
......@@ -172,7 +161,6 @@ HWTEST_F(SysTest, ItTestSys015, TestSize.Level0)
* @tc.name: IT_TEST_SYS_016
* @tc.desc: function for SysTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SysTest, ItTestSys016, TestSize.Level0)
{
......@@ -183,7 +171,6 @@ HWTEST_F(SysTest, ItTestSys016, TestSize.Level0)
* @tc.name: IT_TEST_SYS_017
* @tc.desc: function for SysTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SysTest, ItTestSys017, TestSize.Level0)
{
......@@ -194,7 +181,6 @@ HWTEST_F(SysTest, ItTestSys017, TestSize.Level0)
* @tc.name: IT_TEST_SYS_029
* @tc.desc: function for ftok exception test
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SysTest, ItTestSys029, TestSize.Level0)
{
......@@ -205,7 +191,6 @@ HWTEST_F(SysTest, ItTestSys029, TestSize.Level0)
* @tc.name: IT_TEST_SYS_030
* @tc.desc: function for sigsetjmp siglongjmp test
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SysTest, IT_TEST_SYS_030, TestSize.Level0)
{
......@@ -216,7 +201,6 @@ HWTEST_F(SysTest, IT_TEST_SYS_030, TestSize.Level0)
* @tc.name: IT_TEST_SYS_031
* @tc.desc: function for ctermid test
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SysTest, IT_TEST_SYS_031, TestSize.Level0)
{
......@@ -229,7 +213,6 @@ HWTEST_F(SysTest, IT_TEST_SYS_031, TestSize.Level0)
* @tc.name: IT_TEST_SYS_001
* @tc.desc: function for SysTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SysTest, ItTestSys001, TestSize.Level0)
{
......@@ -240,7 +223,6 @@ HWTEST_F(SysTest, ItTestSys001, TestSize.Level0)
* @tc.name: IT_TEST_SYS_018
* @tc.desc: function for SysTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SysTest, ItTestSys018, TestSize.Level0)
{
......@@ -251,7 +233,6 @@ HWTEST_F(SysTest, ItTestSys018, TestSize.Level0)
* @tc.name: IT_TEST_SYS_019
* @tc.desc: function for SysTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SysTest, ItTestSys019, TestSize.Level0)
{
......@@ -262,7 +243,6 @@ HWTEST_F(SysTest, ItTestSys019, TestSize.Level0)
* @tc.name: IT_TEST_SYS_020
* @tc.desc: function for SysTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SysTest, ItTestSys020, TestSize.Level0)
{
......@@ -273,7 +253,6 @@ HWTEST_F(SysTest, ItTestSys020, TestSize.Level0)
* @tc.name: IT_TEST_SYS_021
* @tc.desc: function for SysTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SysTest, ItTestSys021, TestSize.Level0)
{
......@@ -284,7 +263,6 @@ HWTEST_F(SysTest, ItTestSys021, TestSize.Level0)
* @tc.name: IT_TEST_SYS_022
* @tc.desc: function for SysTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SysTest, ItTestSys022, TestSize.Level0)
{
......@@ -295,7 +273,6 @@ HWTEST_F(SysTest, ItTestSys022, TestSize.Level0)
* @tc.name: IT_TEST_SYS_023
* @tc.desc: function for SysTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SysTest, ItTestSys023, TestSize.Level0)
{
......@@ -306,7 +283,6 @@ HWTEST_F(SysTest, ItTestSys023, TestSize.Level0)
* @tc.name: IT_TEST_SYS_024
* @tc.desc: function for SysTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SysTest, ItTestSys024, TestSize.Level0)
{
......@@ -317,7 +293,6 @@ HWTEST_F(SysTest, ItTestSys024, TestSize.Level0)
* @tc.name: IT_TEST_SYS_025
* @tc.desc: function for SysTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SysTest, ItTestSys025, TestSize.Level0)
{
......@@ -328,7 +303,6 @@ HWTEST_F(SysTest, ItTestSys025, TestSize.Level0)
* @tc.name: IT_TEST_SYS_025
* @tc.desc: function for SysTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SysTest, ItTestSys026, TestSize.Level0)
{
......@@ -339,7 +313,6 @@ HWTEST_F(SysTest, ItTestSys026, TestSize.Level0)
* @tc.name: IT_TEST_SYS_027
* @tc.desc: function for ftok normal test
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SysTest, ItTestSys027, TestSize.Level0)
{
......@@ -350,7 +323,6 @@ HWTEST_F(SysTest, ItTestSys027, TestSize.Level0)
* @tc.name: ItTestSys028
* @tc.desc: function for nice:set pthread priority
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SysTest, ItTestSys028, TestSize.Level0)
{
......
......@@ -47,7 +47,6 @@ public:
* @tc.name: ClockTestSmoke
* @tc.desc: function for TimeClockTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(TimeClockTest, ClockTestSmoke, TestSize.Level0)
{
......@@ -60,7 +59,6 @@ HWTEST_F(TimeClockTest, ClockTestSmoke, TestSize.Level0)
* @tc.name: ClockTest001
* @tc.desc: function for TimeClockTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(TimeClockTest, ClockTest001, TestSize.Level0)
{
......@@ -71,7 +69,6 @@ HWTEST_F(TimeClockTest, ClockTest001, TestSize.Level0)
* @tc.name: ClockTest002
* @tc.desc: function for TimeClockTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(TimeClockTest, ClockTest002, TestSize.Level0)
{
......@@ -82,7 +79,6 @@ HWTEST_F(TimeClockTest, ClockTest002, TestSize.Level0)
* @tc.name: ClockTest003
* @tc.desc: function for TimeClockTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(TimeClockTest, ClockTest003, TestSize.Level0)
{
......@@ -93,7 +89,6 @@ HWTEST_F(TimeClockTest, ClockTest003, TestSize.Level0)
* @tc.name: ClockTest004
* @tc.desc: function for TimeClockTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(TimeClockTest, ClockTest004, TestSize.Level0)
{
......@@ -104,7 +99,6 @@ HWTEST_F(TimeClockTest, ClockTest004, TestSize.Level0)
* @tc.name: ClockTest005
* @tc.desc: function for TimeClockTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(TimeClockTest, ClockTest005, TestSize.Level0)
{
......@@ -115,7 +109,6 @@ HWTEST_F(TimeClockTest, ClockTest005, TestSize.Level0)
* @tc.name: ClockTest006
* @tc.desc: function for TimeClockTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(TimeClockTest, ClockTest006, TestSize.Level0)
{
......@@ -126,7 +119,6 @@ HWTEST_F(TimeClockTest, ClockTest006, TestSize.Level0)
* @tc.name: ClockTest007
* @tc.desc: function for TimeClockTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(TimeClockTest, ClockTest007, TestSize.Level0)
{
......@@ -137,7 +129,6 @@ HWTEST_F(TimeClockTest, ClockTest007, TestSize.Level0)
* @tc.name: ClockTest008
* @tc.desc: function for TimeClockTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(TimeClockTest, ClockTest008, TestSize.Level0)
{
......@@ -148,7 +139,6 @@ HWTEST_F(TimeClockTest, ClockTest008, TestSize.Level0)
* @tc.name: ClockTest009
* @tc.desc: function for TimeClockTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(TimeClockTest, ClockTest009, TestSize.Level0)
{
......@@ -159,7 +149,6 @@ HWTEST_F(TimeClockTest, ClockTest009, TestSize.Level0)
* @tc.name: ClockTest010
* @tc.desc: function for TimeClockTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(TimeClockTest, ClockTest010, TestSize.Level0)
{
......
......@@ -47,7 +47,6 @@ public:
* @tc.name: TimerTest001
* @tc.desc: function for TimeTimerTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(TimeTimerTest, TimerTest001, TestSize.Level0)
{
......@@ -58,7 +57,6 @@ HWTEST_F(TimeTimerTest, TimerTest001, TestSize.Level0)
* @tc.name: TimerTest002
* @tc.desc: function for TimeTimerTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(TimeTimerTest, TimerTest002, TestSize.Level0)
{
......@@ -69,7 +67,6 @@ HWTEST_F(TimeTimerTest, TimerTest002, TestSize.Level0)
* @tc.name: TimerTest003
* @tc.desc: function for TimeTimerTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(TimeTimerTest, TimerTest003, TestSize.Level0)
{
......@@ -80,7 +77,6 @@ HWTEST_F(TimeTimerTest, TimerTest003, TestSize.Level0)
* @tc.name: TimerTest005
* @tc.desc: function for timer_create SIGEV_THREAD.
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(TimeTimerTest, TimerTest005, TestSize.Level0)
{
......@@ -91,7 +87,6 @@ HWTEST_F(TimeTimerTest, TimerTest005, TestSize.Level0)
* @tc.name: TIME_TEST_TZSET_001
* @tc.desc: function for TIME_TEST_TZSET_001
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(TimeTimerTest, TIME_TEST_TZSET_001, TestSize.Level0)
{
......@@ -102,7 +97,6 @@ HWTEST_F(TimeTimerTest, TIME_TEST_TZSET_001, TestSize.Level0)
* @tc.name: TIME_TEST_TZSET_002
* @tc.desc: function for TimeTimerTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(TimeTimerTest, TIME_TEST_TZSET_002, TestSize.Level0)
{
......
......@@ -78,7 +78,7 @@ static UINT32 TestCase(VOID)
if (value) {
countErr++;
} else {
countErr++;
countRight++;
}
break;
default:
......
......@@ -46,7 +46,6 @@ public:
* @tc.name: IT_TEST_UTIL_001
* @tc.desc: function for UtilTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(UtilTest, ItTestUtil001, TestSize.Level0)
{
......@@ -57,7 +56,6 @@ HWTEST_F(UtilTest, ItTestUtil001, TestSize.Level0)
* @tc.name: IT_TEST_UTIL_002
* @tc.desc: function for UtilTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(UtilTest, ItTestUtil002, TestSize.Level0)
{
......@@ -68,7 +66,6 @@ HWTEST_F(UtilTest, ItTestUtil002, TestSize.Level0)
* @tc.name: IT_TEST_UTIL_003
* @tc.desc: function for UtilTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(UtilTest, ItTestUtil003, TestSize.Level0)
{
......@@ -79,7 +76,6 @@ HWTEST_F(UtilTest, ItTestUtil003, TestSize.Level0)
* @tc.name: IT_TEST_UTIL_004
* @tc.desc: function for UtilTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(UtilTest, ItTestUtil004, TestSize.Level0)
{
......@@ -90,7 +86,6 @@ HWTEST_F(UtilTest, ItTestUtil004, TestSize.Level0)
* @tc.name: IT_TEST_UTIL_005
* @tc.desc: function for UtilTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(UtilTest, ItTestUtil005, TestSize.Level0)
{
......@@ -101,7 +96,6 @@ HWTEST_F(UtilTest, ItTestUtil005, TestSize.Level0)
* @tc.name: IT_TEST_UTIL_006
* @tc.desc: function for UtilTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(UtilTest, ItTestUtil006, TestSize.Level0)
{
......@@ -112,7 +106,6 @@ HWTEST_F(UtilTest, ItTestUtil006, TestSize.Level0)
* @tc.name: IT_TEST_UTIL_007
* @tc.desc: function for UtilTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(UtilTest, ItTestUtil007, TestSize.Level0)
{
......@@ -123,7 +116,6 @@ HWTEST_F(UtilTest, ItTestUtil007, TestSize.Level0)
* @tc.name: IT_TEST_UTIL_101
* @tc.desc: function for UtilTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(UtilTest, ItTestUtil101, TestSize.Level0)
{
......
......@@ -54,7 +54,6 @@ public:
* @tc.name: NetNetDbTest001
* @tc.desc: function for NetDbTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetDbTest, NetNetDbTest001, TestSize.Level0)
{
......@@ -65,7 +64,6 @@ HWTEST_F(NetDbTest, NetNetDbTest001, TestSize.Level0)
* @tc.name: NetNetDbTest013
* @tc.desc: function for NetDbTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetDbTest, NetNetDbTest013, TestSize.Level0)
{
......@@ -79,7 +77,6 @@ HWTEST_F(NetDbTest, NetNetDbTest013, TestSize.Level0)
* @tc.name: NetNetDbTest018
* @tc.desc: function for NetDbTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetDbTest, NetNetDbTest018, TestSize.Level0)
{
......@@ -90,7 +87,6 @@ HWTEST_F(NetDbTest, NetNetDbTest018, TestSize.Level0)
* @tc.name: NetNetDbTest002
* @tc.desc: function for NetDbTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetDbTest, NetNetDbTest002, TestSize.Level0)
{
......@@ -101,7 +97,6 @@ HWTEST_F(NetDbTest, NetNetDbTest002, TestSize.Level0)
* @tc.name: NetNetDbTest003
* @tc.desc: function for NetDbTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetDbTest, NetNetDbTest003, TestSize.Level0)
{
......@@ -112,7 +107,6 @@ HWTEST_F(NetDbTest, NetNetDbTest003, TestSize.Level0)
* @tc.name: NetNetDbTest004
* @tc.desc: function for NetDbTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetDbTest, NetNetDbTest004, TestSize.Level0)
{
......@@ -123,7 +117,6 @@ HWTEST_F(NetDbTest, NetNetDbTest004, TestSize.Level0)
* @tc.name: NetNetDbTest006
* @tc.desc: function for NetDbTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetDbTest, NetNetDbTest006, TestSize.Level0)
{
......@@ -134,7 +127,6 @@ HWTEST_F(NetDbTest, NetNetDbTest006, TestSize.Level0)
* @tc.name: NetNetDbTest007
* @tc.desc: function for NetDbTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetDbTest, NetNetDbTest007, TestSize.Level0)
{
......@@ -145,7 +137,6 @@ HWTEST_F(NetDbTest, NetNetDbTest007, TestSize.Level0)
* @tc.name: NetNetDbTest008
* @tc.desc: function for NetDbTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetDbTest, NetNetDbTest008, TestSize.Level0)
{
......@@ -156,7 +147,6 @@ HWTEST_F(NetDbTest, NetNetDbTest008, TestSize.Level0)
* @tc.name: NetNetDbTest009
* @tc.desc: function for NetDbTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetDbTest, NetNetDbTest009, TestSize.Level0)
{
......@@ -167,7 +157,6 @@ HWTEST_F(NetDbTest, NetNetDbTest009, TestSize.Level0)
* @tc.name: NetNetDbTest010
* @tc.desc: function for NetDbTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetDbTest, NetNetDbTest010, TestSize.Level0)
{
......@@ -178,7 +167,6 @@ HWTEST_F(NetDbTest, NetNetDbTest010, TestSize.Level0)
* @tc.name: NetNetDbTest011
* @tc.desc: function for NetDbTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetDbTest, NetNetDbTest011, TestSize.Level0)
{
......@@ -189,7 +177,6 @@ HWTEST_F(NetDbTest, NetNetDbTest011, TestSize.Level0)
* @tc.name: NetNetDbTest012
* @tc.desc: function for NetDbTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetDbTest, NetNetDbTest012, TestSize.Level0)
{
......@@ -200,7 +187,6 @@ HWTEST_F(NetDbTest, NetNetDbTest012, TestSize.Level0)
* @tc.name: NetNetDbTest015
* @tc.desc: function for NetDbTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetDbTest, NetNetDbTest015, TestSize.Level0)
{
......@@ -211,7 +197,6 @@ HWTEST_F(NetDbTest, NetNetDbTest015, TestSize.Level0)
* @tc.name: NetNetDbTest016
* @tc.desc: function for NetDbTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetDbTest, NetNetDbTest016, TestSize.Level0)
{
......@@ -222,7 +207,6 @@ HWTEST_F(NetDbTest, NetNetDbTest016, TestSize.Level0)
* @tc.name: NetNetDbTest017
* @tc.desc: function for NetDbTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetDbTest, NetNetDbTest017, TestSize.Level0)
{
......@@ -233,7 +217,6 @@ HWTEST_F(NetDbTest, NetNetDbTest017, TestSize.Level0)
* @tc.name: NetNetDbTest019
* @tc.desc: function for NetDbTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetDbTest, NetNetDbTest019, TestSize.Level0)
{
......@@ -244,7 +227,6 @@ HWTEST_F(NetDbTest, NetNetDbTest019, TestSize.Level0)
* @tc.name: NetNetDbTest020
* @tc.desc: function for NetDbTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetDbTest, NetNetDbTest020, TestSize.Level0)
{
......@@ -255,7 +237,6 @@ HWTEST_F(NetDbTest, NetNetDbTest020, TestSize.Level0)
* @tc.name: NetNetDbTest021
* @tc.desc: function for NetDbTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetDbTest, NetNetDbTest021, TestSize.Level0)
{
......@@ -266,7 +247,6 @@ HWTEST_F(NetDbTest, NetNetDbTest021, TestSize.Level0)
* @tc.name: NetNetDbTest022
* @tc.desc: function for NetDbTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetDbTest, NetNetDbTest022, TestSize.Level0)
{
......
......@@ -57,7 +57,6 @@ public:
* @tc.name: NetResolvTest001
* @tc.desc: function for NetResolvTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetResolvTest, NetResolvTest001, TestSize.Level0)
{
......@@ -68,7 +67,6 @@ HWTEST_F(NetResolvTest, NetResolvTest001, TestSize.Level0)
* @tc.name: NetResolvTest002
* @tc.desc: function for NetResolvTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetResolvTest, NetResolvTest002, TestSize.Level0)
{
......@@ -79,7 +77,6 @@ HWTEST_F(NetResolvTest, NetResolvTest002, TestSize.Level0)
* @tc.name: NetResolvTest003
* @tc.desc: function for NetResolvTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetResolvTest, NetResolvTest003, TestSize.Level0)
{
......@@ -90,7 +87,6 @@ HWTEST_F(NetResolvTest, NetResolvTest003, TestSize.Level0)
* @tc.name: NetResolvTest006
* @tc.desc: function for NetResolvTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetResolvTest, NetResolvTest006, TestSize.Level0)
{
......@@ -101,7 +97,6 @@ HWTEST_F(NetResolvTest, NetResolvTest006, TestSize.Level0)
* @tc.name: NetResolvTest007
* @tc.desc: function for NetResolvTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetResolvTest, NetResolvTest007, TestSize.Level0)
{
......
......@@ -56,7 +56,6 @@ public:
* @tc.name: NetSocketTest001
* @tc.desc: function for NetSocketTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetSocketTest, NetSocketTest001, TestSize.Level0)
{
......@@ -67,7 +66,6 @@ HWTEST_F(NetSocketTest, NetSocketTest001, TestSize.Level0)
* @tc.name: NetSocketTest002
* @tc.desc: function for NetSocketTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetSocketTest, NetSocketTest002, TestSize.Level0)
{
......@@ -79,7 +77,6 @@ HWTEST_F(NetSocketTest, NetSocketTest002, TestSize.Level0)
* @tc.name: NetSocketTest003
* @tc.desc: function for NetSocketTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetSocketTest, NetSocketTest003, TestSize.Level0)
{
......@@ -91,7 +88,6 @@ HWTEST_F(NetSocketTest, NetSocketTest003, TestSize.Level0)
* @tc.name: NetSocketTest004
* @tc.desc: function for NetSocketTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetSocketTest, NetSocketTest004, TestSize.Level0)
{
......@@ -102,7 +98,6 @@ HWTEST_F(NetSocketTest, NetSocketTest004, TestSize.Level0)
* @tc.name: NetSocketTest005
* @tc.desc: function for NetSocketTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetSocketTest, NetSocketTest005, TestSize.Level0)
{
......@@ -113,7 +108,6 @@ HWTEST_F(NetSocketTest, NetSocketTest005, TestSize.Level0)
* @tc.name: NetSocketTest006
* @tc.desc: function for NetSocketTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetSocketTest, NetSocketTest006, TestSize.Level0)
{
......@@ -125,7 +119,6 @@ HWTEST_F(NetSocketTest, NetSocketTest006, TestSize.Level0)
* @tc.name: NetSocketTest007
* @tc.desc: function for NetSocketTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetSocketTest, NetSocketTest007, TestSize.Level0)
{
......@@ -137,7 +130,6 @@ HWTEST_F(NetSocketTest, NetSocketTest007, TestSize.Level0)
* @tc.name: NetSocketTest008
* @tc.desc: function for NetSocketTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetSocketTest, NetSocketTest008, TestSize.Level0)
{
......@@ -148,7 +140,6 @@ HWTEST_F(NetSocketTest, NetSocketTest008, TestSize.Level0)
* @tc.name: NetSocketTest009
* @tc.desc: function for NetSocketTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetSocketTest, NetSocketTest009, TestSize.Level0)
{
......@@ -159,7 +150,6 @@ HWTEST_F(NetSocketTest, NetSocketTest009, TestSize.Level0)
* @tc.name: NetSocketTest010
* @tc.desc: function for NetSocketTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetSocketTest, NetSocketTest010, TestSize.Level0)
{
......@@ -170,7 +160,6 @@ HWTEST_F(NetSocketTest, NetSocketTest010, TestSize.Level0)
* @tc.name: NetSocketTest011
* @tc.desc: function for NetSocketTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetSocketTest, NetSocketTest011, TestSize.Level0)
{
......@@ -181,7 +170,6 @@ HWTEST_F(NetSocketTest, NetSocketTest011, TestSize.Level0)
* @tc.name: NetSocketTest012
* @tc.desc: function for NetSocketTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(NetSocketTest, NetSocketTest012, TestSize.Level0)
{
......@@ -192,7 +180,6 @@ HWTEST_F(NetSocketTest, NetSocketTest012, TestSize.Level0)
* @tc.name: NetSocketTest013
* @tc.desc: function for NetSocketTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
/*
HWTEST_F(NetSocketTest, NetSocketTest013, TestSize.Level0)
......
......@@ -75,7 +75,6 @@ public:
* @tc.name: it_test_process_001
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess001, TestSize.Level0)
{
......@@ -86,7 +85,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess001, TestSize.Level0)
* @tc.name: it_test_process_002
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess002, TestSize.Level0)
{
......@@ -97,7 +95,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess002, TestSize.Level0)
* @tc.name: it_test_process_004
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess004, TestSize.Level0)
{
......@@ -108,7 +105,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess004, TestSize.Level0)
* @tc.name: it_test_process_005
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess005, TestSize.Level0)
{
......@@ -119,7 +115,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess005, TestSize.Level0)
* @tc.name: it_test_process_006
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess006, TestSize.Level0)
{
......@@ -130,7 +125,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess006, TestSize.Level0)
* @tc.name: it_test_process_008
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess008, TestSize.Level0)
{
......@@ -141,7 +135,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess008, TestSize.Level0)
* @tc.name: it_test_process_010
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess010, TestSize.Level0)
{
......@@ -152,7 +145,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess010, TestSize.Level0)
* @tc.name: it_test_process_009
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess009, TestSize.Level0)
{
......@@ -163,7 +155,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess009, TestSize.Level0)
* @tc.name: it_test_process_011
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess011, TestSize.Level0)
{
......@@ -174,7 +165,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess011, TestSize.Level0)
* @tc.name: it_test_process_012
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess012, TestSize.Level0)
{
......@@ -185,7 +175,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess012, TestSize.Level0)
* @tc.name: it_test_process_013
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess013, TestSize.Level0)
{
......@@ -196,7 +185,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess013, TestSize.Level0)
* @tc.name: it_test_process_014
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess014, TestSize.Level0)
{
......@@ -207,7 +195,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess014, TestSize.Level0)
* @tc.name: it_test_process_015
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess015, TestSize.Level0)
{
......@@ -218,7 +205,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess015, TestSize.Level0)
* @tc.name: it_test_process_016
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess016, TestSize.Level0)
{
......@@ -229,7 +215,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess016, TestSize.Level0)
* @tc.name: it_test_process_017
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess017, TestSize.Level0)
{
......@@ -240,7 +225,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess017, TestSize.Level0)
* @tc.name: it_test_process_018
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess018, TestSize.Level0)
{
......@@ -251,7 +235,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess018, TestSize.Level0)
* @tc.name: it_test_process_019
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess019, TestSize.Level0)
{
......@@ -262,7 +245,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess019, TestSize.Level0)
* @tc.name: it_test_process_020
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess020, TestSize.Level0)
{
......@@ -273,7 +255,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess020, TestSize.Level0)
* @tc.name: it_test_process_021
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess021, TestSize.Level0)
{
......@@ -284,7 +265,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess021, TestSize.Level0)
* @tc.name: it_test_process_022
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess022, TestSize.Level0)
{
......@@ -295,7 +275,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess022, TestSize.Level0)
* @tc.name: it_test_process_023
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess023, TestSize.Level0)
{
......@@ -306,7 +285,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess023, TestSize.Level0)
* @tc.name: it_test_process_024
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess024, TestSize.Level0)
{
......@@ -317,7 +295,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess024, TestSize.Level0)
* @tc.name: it_test_process_025
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess025, TestSize.Level0)
{
......@@ -328,7 +305,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess025, TestSize.Level0)
* @tc.name: it_test_process_026
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess026, TestSize.Level0)
{
......@@ -339,7 +315,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess026, TestSize.Level0)
* @tc.name: it_test_process_027
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess027, TestSize.Level0)
{
......@@ -350,7 +325,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess027, TestSize.Level0)
* @tc.name: it_test_process_029
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess029, TestSize.Level0)
{
......@@ -361,7 +335,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess029, TestSize.Level0)
* @tc.name: it_test_process_030
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess030, TestSize.Level0)
{
......@@ -372,7 +345,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess030, TestSize.Level0)
* @tc.name: it_test_process_038
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess038, TestSize.Level0)
{
......@@ -383,7 +355,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess038, TestSize.Level0)
* @tc.name: it_test_process_039
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess039, TestSize.Level0)
{
......@@ -394,7 +365,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess039, TestSize.Level0)
* @tc.name: it_test_process_043
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess043, TestSize.Level0)
{
......@@ -405,7 +375,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess043, TestSize.Level0)
* @tc.name: it_test_process_044
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess044, TestSize.Level0)
{
......@@ -416,7 +385,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess044, TestSize.Level0)
* @tc.name: it_test_process_045
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: DTS202101040I5J4KP0H00
*/
HWTEST_F(ProcessProcessTest, ItTestProcess045, TestSize.Level0)
{
......@@ -427,7 +395,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess045, TestSize.Level0)
* @tc.name: it_test_process_046
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: DTS202101040I5J4KP0H00
*/
HWTEST_F(ProcessProcessTest, ItTestProcess046, TestSize.Level0)
{
......@@ -438,7 +405,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess046, TestSize.Level0)
* @tc.name: it_test_process_047
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: DTS202101040I5J4KP0H00
*/
HWTEST_F(ProcessProcessTest, ItTestProcess047, TestSize.Level0)
{
......@@ -449,7 +415,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess047, TestSize.Level0)
* @tc.name: it_test_process_048
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: DTS202101040I5J4KP0H00
*/
HWTEST_F(ProcessProcessTest, ItTestProcess048, TestSize.Level0)
{
......@@ -460,7 +425,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess048, TestSize.Level0)
* @tc.name: it_test_process_054
* @tc.desc: function for waitid: The waitid parameter is incorrect and the error code is verified.
* @tc.type: FUNC
* @tc.require: AR000E0QAB
*/
HWTEST_F(ProcessProcessTest, ItTestProcess054, TestSize.Level0)
{
......@@ -471,7 +435,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess054, TestSize.Level0)
* @tc.name: it_test_process_061
* @tc.desc: function for killpg: The killpg parameter is incorrect and the error code is verified.
* @tc.type: FUNC
* @tc.require: AR000E0QAB
*/
HWTEST_F(ProcessProcessTest, ItTestProcess061, TestSize.Level0)
{
......@@ -483,7 +446,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess061, TestSize.Level0)
* @tc.name: it_test_process_smp_001
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcessSmp001, TestSize.Level0)
{
......@@ -494,7 +456,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcessSmp001, TestSize.Level0)
* @tc.name: it_test_process_smp_002
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcessSmp002, TestSize.Level0)
{
......@@ -505,7 +466,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcessSmp002, TestSize.Level0)
* @tc.name: it_test_process_smp_003
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcessSmp003, TestSize.Level0)
{
......@@ -516,7 +476,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcessSmp003, TestSize.Level0)
* @tc.name: it_test_process_smp_004
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcessSmp004, TestSize.Level0)
{
......@@ -527,7 +486,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcessSmp004, TestSize.Level0)
* @tc.name: it_test_process_smp_005
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcessSmp005, TestSize.Level0)
{
......@@ -538,7 +496,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcessSmp005, TestSize.Level0)
* @tc.name: it_test_process_smp_006
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcessSmp006, TestSize.Level0)
{
......@@ -549,7 +506,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcessSmp006, TestSize.Level0)
* @tc.name: it_test_process_smp_007
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcessSmp007, TestSize.Level0)
{
......@@ -560,7 +516,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcessSmp007, TestSize.Level0)
* @tc.name: it_test_process_smp_008
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcessSmp008, TestSize.Level0)
{
......@@ -574,7 +529,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcessSmp008, TestSize.Level0)
* @tc.name: it_test_process_007
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess007, TestSize.Level0)
{
......@@ -585,7 +539,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess007, TestSize.Level0)
* @tc.name: it_test_process_031
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess031, TestSize.Level0)
{
......@@ -596,7 +549,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess031, TestSize.Level0)
* @tc.name: it_test_process_032
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess032, TestSize.Level0)
{
......@@ -607,7 +559,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess032, TestSize.Level0)
* @tc.name: it_test_process_033
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess033, TestSize.Level0)
{
......@@ -618,7 +569,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess033, TestSize.Level0)
* @tc.name: it_test_process_034
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess034, TestSize.Level0)
{
......@@ -629,7 +579,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess034, TestSize.Level0)
* @tc.name: it_test_process_035
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess035, TestSize.Level0)
{
......@@ -640,7 +589,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess035, TestSize.Level0)
* @tc.name: it_test_process_036
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess036, TestSize.Level0)
{
......@@ -651,7 +599,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess036, TestSize.Level0)
* @tc.name: it_test_process_037
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess037, TestSize.Level0)
{
......@@ -662,7 +609,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess037, TestSize.Level0)
* @tc.name: it_test_process_040
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess040, TestSize.Level0)
{
......@@ -673,7 +619,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess040, TestSize.Level0)
* @tc.name: it_test_process_041
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess041, TestSize.Level0)
{
......@@ -684,7 +629,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess041, TestSize.Level0)
* @tc.name: it_test_process_042
* @tc.desc: function for ProcessProcessTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessProcessTest, ItTestProcess042, TestSize.Level0)
{
......@@ -696,7 +640,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess042, TestSize.Level0)
* @tc.desc: function for killpg:Sends a signal to the process group,
* Other processes in the process group can receive the signal.
* @tc.type: FUNC
* @tc.require: AR000E0QAB
*/
HWTEST_F(ProcessProcessTest, ItTestProcess053, TestSize.Level0)
{
......@@ -707,7 +650,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess053, TestSize.Level0)
* @tc.name: it_test_process_055
* @tc.desc: function for waitid:To test the function of transferring different parameters of the waitid.
* @tc.type: FUNC
* @tc.require: AR000E0QAB
*/
HWTEST_F(ProcessProcessTest, ItTestProcess055, TestSize.Level0)
{
......@@ -719,7 +661,6 @@ HWTEST_F(ProcessProcessTest, ItTestProcess055, TestSize.Level0)
* @tc.desc: function for killpg:Fork two processes. The killpg sends a signal to the current process group.
* The other two processes can receive the signal.
* @tc.type: FUNC
* @tc.require: AR000E0QAB
*/
HWTEST_F(ProcessProcessTest, ItTestProcess062, TestSize.Level0)
{
......
......@@ -70,11 +70,11 @@ static int Child(void)
ret = wait(&status);
status = WEXITSTATUS(status);
if (ret != pid) {
printf("wait child %d failed, is %u!\n", pid, ret);
printf("wait child %d failed, is %d!\n", pid, ret);
exit(__LINE__);
}
if (status != 255) { // 255, assert that function Result is equal to this.
printf("wait child status is 255, but is %d, child is error line :%d \n", status, status);
printf("child is error line :%d \n", status);
exit(__LINE__);
}
} else {
......
......@@ -56,7 +56,6 @@ public:
* @tc.name: it_test_pthread_003
* @tc.desc: function for ProcessPthreadTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessPthreadTest, ItTestPthread003, TestSize.Level0)
{
......@@ -68,7 +67,6 @@ HWTEST_F(ProcessPthreadTest, ItTestPthread003, TestSize.Level0)
* @tc.name: it_test_pthread_006
* @tc.desc: function for ProcessPthreadTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessPthreadTest, ItTestPthread006, TestSize.Level0)
{
......@@ -80,7 +78,6 @@ HWTEST_F(ProcessPthreadTest, ItTestPthread006, TestSize.Level0)
* @tc.name: it_test_pthread_007
* @tc.desc: function for ProcessPthreadTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessPthreadTest, ItTestPthread007, TestSize.Level0)
{
......@@ -91,7 +88,6 @@ HWTEST_F(ProcessPthreadTest, ItTestPthread007, TestSize.Level0)
* @tc.name: it_test_pthread_008
* @tc.desc: function for ProcessPthreadTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessPthreadTest, ItTestPthread008, TestSize.Level0)
{
......@@ -102,7 +98,6 @@ HWTEST_F(ProcessPthreadTest, ItTestPthread008, TestSize.Level0)
* @tc.name: it_test_pthread_009
* @tc.desc: function for ProcessPthreadTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessPthreadTest, ItTestPthread009, TestSize.Level0)
{
......@@ -114,7 +109,6 @@ HWTEST_F(ProcessPthreadTest, ItTestPthread009, TestSize.Level0)
* @tc.name: it_test_pthread_010
* @tc.desc: function for ProcessPthreadTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessPthreadTest, ItTestPthread010, TestSize.Level0)
{
......@@ -126,7 +120,6 @@ HWTEST_F(ProcessPthreadTest, ItTestPthread010, TestSize.Level0)
* @tc.name: it_test_pthread_011
* @tc.desc: function for ProcessPthreadTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessPthreadTest, ItTestPthread011, TestSize.Level0)
{
......@@ -137,7 +130,6 @@ HWTEST_F(ProcessPthreadTest, ItTestPthread011, TestSize.Level0)
* @tc.name: it_test_pthread_012
* @tc.desc: function for ProcessPthreadTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessPthreadTest, ItTestPthread012, TestSize.Level0)
{
......@@ -148,7 +140,6 @@ HWTEST_F(ProcessPthreadTest, ItTestPthread012, TestSize.Level0)
* @tc.name: it_test_pthread_013
* @tc.desc: function for ProcessPthreadTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessPthreadTest, ItTestPthread013, TestSize.Level0)
{
......@@ -159,7 +150,6 @@ HWTEST_F(ProcessPthreadTest, ItTestPthread013, TestSize.Level0)
* @tc.name: it_test_pthread_015
* @tc.desc: function for ProcessPthreadTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessPthreadTest, ItTestPthread015, TestSize.Level0)
{
......@@ -170,7 +160,6 @@ HWTEST_F(ProcessPthreadTest, ItTestPthread015, TestSize.Level0)
* @tc.name: it_test_pthread_016
* @tc.desc: function for ProcessPthreadTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessPthreadTest, ItTestPthread016, TestSize.Level0)
{
......@@ -181,7 +170,6 @@ HWTEST_F(ProcessPthreadTest, ItTestPthread016, TestSize.Level0)
* @tc.name: it_test_pthread_018
* @tc.desc: function for ProcessPthreadTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessPthreadTest, ItTestPthread018, TestSize.Level0)
{
......@@ -192,7 +180,6 @@ HWTEST_F(ProcessPthreadTest, ItTestPthread018, TestSize.Level0)
* @tc.name: it_test_pthread_019
* @tc.desc: function for ProcessPthreadTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessPthreadTest, ItTestPthread019, TestSize.Level0)
{
......@@ -203,7 +190,6 @@ HWTEST_F(ProcessPthreadTest, ItTestPthread019, TestSize.Level0)
* @tc.name: it_test_pthread_017
* @tc.desc: function for ProcessPthreadTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessPthreadTest, ItTestPthread017, TestSize.Level0)
{
......@@ -215,7 +201,6 @@ HWTEST_F(ProcessPthreadTest, ItTestPthread017, TestSize.Level0)
* @tc.name: it_test_pthread_once_001
* @tc.desc: function for ProcessPthreadTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessPthreadTest, ItTestPthreadOnce001, TestSize.Level0)
{
......@@ -226,7 +211,6 @@ HWTEST_F(ProcessPthreadTest, ItTestPthreadOnce001, TestSize.Level0)
* @tc.name: it_test_pthread_atfork_001
* @tc.desc: function for ProcessPthreadTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessPthreadTest, ItTestPthreadAtfork001, TestSize.Level0)
{
......@@ -237,7 +221,6 @@ HWTEST_F(ProcessPthreadTest, ItTestPthreadAtfork001, TestSize.Level0)
* @tc.name: it_test_pthread_atfork_002
* @tc.desc: function for ProcessPthreadTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessPthreadTest, ItTestPthreadAtfork002, TestSize.Level0)
{
......@@ -248,7 +231,6 @@ HWTEST_F(ProcessPthreadTest, ItTestPthreadAtfork002, TestSize.Level0)
* @tc.name: it_test_pthread_cond_001
* @tc.desc: function for ProcessPthreadTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessPthreadTest, ItTestPthreadCond001, TestSize.Level0)
{
......@@ -259,7 +241,6 @@ HWTEST_F(ProcessPthreadTest, ItTestPthreadCond001, TestSize.Level0)
* @tc.name: it_test_pthread_cond_002
* @tc.desc: function for ProcessPthreadTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessPthreadTest, ItTestPthreadCond002, TestSize.Level0)
{
......@@ -270,7 +251,6 @@ HWTEST_F(ProcessPthreadTest, ItTestPthreadCond002, TestSize.Level0)
* @tc.name: it_test_pthread_cond_003
* @tc.desc: function for ProcessPthreadTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessPthreadTest, ItTestPthreadCond003, TestSize.Level0)
{
......@@ -281,7 +261,6 @@ HWTEST_F(ProcessPthreadTest, ItTestPthreadCond003, TestSize.Level0)
* @tc.name: it_test_pthread_cond_004
* @tc.desc: function for ProcessPthreadTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessPthreadTest, ItTestPthreadCond004, TestSize.Level0)
{
......@@ -295,7 +274,6 @@ HWTEST_F(ProcessPthreadTest, ItTestPthreadCond004, TestSize.Level0)
* @tc.name: it_test_pthread_001
* @tc.desc: function for ProcessPthreadTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessPthreadTest, ItTestPthread001, TestSize.Level0)
{
......@@ -307,7 +285,6 @@ HWTEST_F(ProcessPthreadTest, ItTestPthread001, TestSize.Level0)
* @tc.name: it_test_pthread_002
* @tc.desc: function for ProcessPthreadTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessPthreadTest, ItTestPthread002, TestSize.Level0)
{
......@@ -318,7 +295,6 @@ HWTEST_F(ProcessPthreadTest, ItTestPthread002, TestSize.Level0)
* @tc.name: it_test_pthread_004
* @tc.desc: function for ProcessPthreadTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessPthreadTest, ItTestPthread004, TestSize.Level0)
{
......@@ -329,7 +305,6 @@ HWTEST_F(ProcessPthreadTest, ItTestPthread004, TestSize.Level0)
* @tc.name: it_test_pthread_005
* @tc.desc: function for ProcessPthreadTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessPthreadTest, ItTestPthread005, TestSize.Level0)
{
......@@ -341,7 +316,6 @@ HWTEST_F(ProcessPthreadTest, ItTestPthread005, TestSize.Level0)
* @tc.name: it_test_pthread_014
* @tc.desc: function for ProcessPthreadTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessPthreadTest, ItTestPthread014, TestSize.Level0)
{
......
......@@ -51,8 +51,8 @@ void child1(void)
}
if (newPolicy != policy || pri != param.sched_priority) {
printf("pthread_getschedparam failed ! %d policy %d newPolicy pri %d param.sched_priority :%d\n", __LINE__,
policy, newPolicy, pri, param.sched_priority);
printf("pthread_getschedparam failed ! %d policy %d newPolicy %d pri %d param.sched_priority :%d\n",
__LINE__, policy, newPolicy, pri, param.sched_priority);
exit(255); // 255, set a special exit code.
}
......
......@@ -54,7 +54,6 @@ public:
* @tc.name: it_test_pthread_mutex_001
* @tc.desc: function for ProcessMutexTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessMutexTest, ItTestPthreadMutex001, TestSize.Level0)
{
......@@ -65,7 +64,6 @@ HWTEST_F(ProcessMutexTest, ItTestPthreadMutex001, TestSize.Level0)
* @tc.name: it_test_pthread_mutex_002
* @tc.desc: function for ProcessMutexTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessMutexTest, ItTestPthreadMutex002, TestSize.Level0)
{
......@@ -76,7 +74,6 @@ HWTEST_F(ProcessMutexTest, ItTestPthreadMutex002, TestSize.Level0)
* @tc.name: it_test_pthread_mutex_003
* @tc.desc: function for ProcessMutexTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessMutexTest, ItTestPthreadMutex003, TestSize.Level0)
{
......@@ -87,7 +84,6 @@ HWTEST_F(ProcessMutexTest, ItTestPthreadMutex003, TestSize.Level0)
* @tc.name: it_test_pthread_mutex_004
* @tc.desc: function for ProcessMutexTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessMutexTest, ItTestPthreadMutex004, TestSize.Level0)
{
......@@ -98,7 +94,6 @@ HWTEST_F(ProcessMutexTest, ItTestPthreadMutex004, TestSize.Level0)
* @tc.name: it_test_pthread_mutex_005
* @tc.desc: function for ProcessMutexTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessMutexTest, ItTestPthreadMutex005, TestSize.Level0)
{
......@@ -109,7 +104,6 @@ HWTEST_F(ProcessMutexTest, ItTestPthreadMutex005, TestSize.Level0)
* @tc.name: it_test_pthread_mutex_006
* @tc.desc: function for ProcessMutexTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessMutexTest, ItTestPthreadMutex006, TestSize.Level0)
{
......@@ -120,7 +114,6 @@ HWTEST_F(ProcessMutexTest, ItTestPthreadMutex006, TestSize.Level0)
* @tc.name: it_test_pthread_mutex_007
* @tc.desc: function for ProcessMutexTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessMutexTest, ItTestPthreadMutex007, TestSize.Level0)
{
......@@ -131,7 +124,6 @@ HWTEST_F(ProcessMutexTest, ItTestPthreadMutex007, TestSize.Level0)
* @tc.name: it_test_pthread_mutex_008
* @tc.desc: function for ProcessMutexTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessMutexTest, ItTestPthreadMutex008, TestSize.Level0)
{
......@@ -142,7 +134,6 @@ HWTEST_F(ProcessMutexTest, ItTestPthreadMutex008, TestSize.Level0)
* @tc.name: it_test_pthread_mutex_009
* @tc.desc: function for ProcessMutexTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessMutexTest, ItTestPthreadMutex009, TestSize.Level0)
{
......@@ -153,7 +144,6 @@ HWTEST_F(ProcessMutexTest, ItTestPthreadMutex009, TestSize.Level0)
* @tc.name: it_test_pthread_mutex_010
* @tc.desc: function for ProcessMutexTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessMutexTest, ItTestPthreadMutex010, TestSize.Level0)
{
......@@ -164,7 +154,6 @@ HWTEST_F(ProcessMutexTest, ItTestPthreadMutex010, TestSize.Level0)
* @tc.name: it_test_pthread_mutex_011
* @tc.desc: function for ProcessMutexTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessMutexTest, ItTestPthreadMutex011, TestSize.Level0)
{
......@@ -175,7 +164,6 @@ HWTEST_F(ProcessMutexTest, ItTestPthreadMutex011, TestSize.Level0)
* @tc.name: it_test_pthread_mutex_012
* @tc.desc: function for ProcessMutexTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessMutexTest, ItTestPthreadMutex012, TestSize.Level0)
{
......@@ -186,7 +174,6 @@ HWTEST_F(ProcessMutexTest, ItTestPthreadMutex012, TestSize.Level0)
* @tc.name: it_test_pthread_mutex_013
* @tc.desc: function for ProcessMutexTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessMutexTest, ItTestPthreadMutex013, TestSize.Level0)
{
......@@ -197,7 +184,6 @@ HWTEST_F(ProcessMutexTest, ItTestPthreadMutex013, TestSize.Level0)
* @tc.name: it_test_pthread_mutex_014
* @tc.desc: function for ProcessMutexTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessMutexTest, ItTestPthreadMutex014, TestSize.Level0)
{
......@@ -208,7 +194,6 @@ HWTEST_F(ProcessMutexTest, ItTestPthreadMutex014, TestSize.Level0)
* @tc.name: it_test_pthread_mutex_015
* @tc.desc: function for ProcessMutexTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessMutexTest, ItTestPthreadMutex015, TestSize.Level0)
{
......@@ -219,7 +204,6 @@ HWTEST_F(ProcessMutexTest, ItTestPthreadMutex015, TestSize.Level0)
* @tc.name: it_test_pthread_mutex_016
* @tc.desc: function for ProcessMutexTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessMutexTest, ItTestPthreadMutex016, TestSize.Level0)
{
......@@ -230,7 +214,6 @@ HWTEST_F(ProcessMutexTest, ItTestPthreadMutex016, TestSize.Level0)
* @tc.name: it_test_pthread_mutex_017
* @tc.desc: function for ProcessMutexTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessMutexTest, ItTestPthreadMutex017, TestSize.Level0)
{
......@@ -242,7 +225,6 @@ HWTEST_F(ProcessMutexTest, ItTestPthreadMutex017, TestSize.Level0)
* @tc.name: it_test_pthread_mutex_019
* @tc.desc: function for ProcessMutexTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessMutexTest, ItTestPthreadMutex019, TestSize.Level0)
{
......@@ -254,7 +236,6 @@ HWTEST_F(ProcessMutexTest, ItTestPthreadMutex019, TestSize.Level0)
* @tc.name: it_test_pthread_mutex_020
* @tc.desc: function for ProcessMutexTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessMutexTest, ItTestPthreadMutex020, TestSize.Level0)
{
......@@ -265,7 +246,6 @@ HWTEST_F(ProcessMutexTest, ItTestPthreadMutex020, TestSize.Level0)
* @tc.name: it_test_pthread_mutex_021
* @tc.desc: function for ProcessMutexTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessMutexTest, ItTestPthreadMutex021, TestSize.Level0)
{
......@@ -276,7 +256,6 @@ HWTEST_F(ProcessMutexTest, ItTestPthreadMutex021, TestSize.Level0)
* @tc.name: it_test_pthread_mutex_022
* @tc.desc: function for ProcessMutexTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessMutexTest, ItTestPthreadMutex022, TestSize.Level0)
{
......@@ -290,7 +269,6 @@ HWTEST_F(ProcessMutexTest, ItTestPthreadMutex022, TestSize.Level0)
* @tc.name: it_test_pthread_mutex_018
* @tc.desc: function for ProcessMutexTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessMutexTest, ItTestPthreadMutex018, TestSize.Level0)
{
......@@ -302,7 +280,6 @@ HWTEST_F(ProcessMutexTest, ItTestPthreadMutex018, TestSize.Level0)
* @tc.name: it_test_pthread_mutex_023
* @tc.desc: function for test mutexattr robust
* @tc.type: FUNC
* @tc.require: AR000E0QAB
*/
HWTEST_F(ProcessMutexTest, ItTestPthreadMutex023, TestSize.Level0)
{
......@@ -313,7 +290,6 @@ HWTEST_F(ProcessMutexTest, ItTestPthreadMutex023, TestSize.Level0)
* @tc.name: it_test_pthread_mutex_024
* @tc.desc: function for test mutexattr robust:error return value
* @tc.type: FUNC
* @tc.require: AR000E0QAB
*/
HWTEST_F(ProcessMutexTest, ItTestPthreadMutex024, TestSize.Level0)
{
......@@ -324,7 +300,6 @@ HWTEST_F(ProcessMutexTest, ItTestPthreadMutex024, TestSize.Level0)
* @tc.name: it_test_pthread_mutex_025
* @tc.desc: test mutexattr robust:robustness product deadlock is not set
* @tc.type: FUNC
* @tc.require: AR000E0QAB
*/
HWTEST_F(ProcessMutexTest, ItTestPthreadMutex025, TestSize.Level0)
{
......
......@@ -46,7 +46,6 @@ public:
* @tc.name: it_test_pthread_rwlock_001
* @tc.desc: function for ProcessRwlockTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessRwlockTest, ItTestPthreadRwlock001, TestSize.Level0)
{
......@@ -59,7 +58,6 @@ HWTEST_F(ProcessRwlockTest, ItTestPthreadRwlock001, TestSize.Level0)
* @tc.name: it_test_pthread_rwlock_002
* @tc.desc: function for ProcessRwlockTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessRwlockTest, ItTestPthreadRwlock002, TestSize.Level0)
{
......
......@@ -46,7 +46,6 @@ public:
* @tc.name: it_test_pthread_spinlock_001
* @tc.desc: function for ProcessSpinlockTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(ProcessSpinlockTest, ItTestPthreadSpinlock001, TestSize.Level0)
{
......
......@@ -47,7 +47,6 @@ public:
* @tc.name: It_Test_Cap_001
* @tc.desc: function for SecurityCapbilityTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SecurityCapabilityTest, ItTestCap001, TestSize.Level0)
{
......
......@@ -47,7 +47,6 @@ public:
* @tc.name: ItTestReugid001
* @tc.desc: function for SecurityReugidTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SecurityReugidTest, ItTestReugid001, TestSize.Level0)
{
......
......@@ -47,7 +47,6 @@ public:
* @tc.name: It_Sec_Vid_001
* @tc.desc: function for SecurityVidTest
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F(SecurityVidTest, ItSecVid001, TestSize.Level0)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册