/kernel/liteos_a/testsuites/unittest/process/lock/mutex/full/ |
D | pthread_mutex_test_024.cpp | 49 return nullptr; in ThreadFuncTest1() 53 return nullptr; in ThreadFuncTest1() 68 return nullptr; in ThreadFuncTest2() 72 return nullptr; in ThreadFuncTest2() 85 return nullptr; in ThreadFuncTest3() 89 return nullptr; in ThreadFuncTest3() 132 ret = pthread_create(&tid1, nullptr, ThreadFuncTest1, nullptr); in Testcase() 135 ret = pthread_create(&tid2, nullptr, ThreadFuncTest2, nullptr); in Testcase() 142 ret = pthread_create(&tid3, nullptr, ThreadFuncTest3, nullptr); in Testcase() 145 pthread_join(tid1, nullptr); in Testcase() [all …]
|
D | pthread_mutex_test_023.cpp | 43 return nullptr; in ThreadFuncTest1() 47 return nullptr; in ThreadFuncTest1() 62 return nullptr; in ThreadFuncTest2() 66 return nullptr; in ThreadFuncTest2() 94 ret = pthread_create(&tid1, nullptr, ThreadFuncTest1, nullptr); in Testcase() 97 ret = pthread_create(&tid2, nullptr, ThreadFuncTest2, nullptr); in Testcase() 100 pthread_join(tid1, nullptr); in Testcase() 101 pthread_join(tid2, nullptr); in Testcase()
|
D | pthread_mutex_test_018.cpp | 60 return nullptr; in ThreadFuncTest2() 64 return nullptr; in ThreadFuncTest2() 74 gettimeofday(&timeVal, nullptr); in ThreadFuncTest1() 90 return nullptr; in ThreadFuncTest1() 94 return nullptr; in ThreadFuncTest1() 101 void *res = nullptr; in Testcase() 138 ret = pthread_create(&newPthread1, nullptr, ThreadFuncTest2, 0); in Testcase() 141 gettimeofday(&timeVal, nullptr); in Testcase() 143 gettimeofday(&time, nullptr); in Testcase() 152 ret = pthread_join(newPthread, nullptr); in Testcase()
|
D | pthread_mutex_test_025.cpp | 43 return nullptr; in ThreadFuncTest1() 47 return nullptr; in ThreadFuncTest1() 62 return nullptr; in ThreadFuncTest2() 66 return nullptr; in ThreadFuncTest2() 100 ret = pthread_create(&tid1, nullptr, ThreadFuncTest1, nullptr); in Child() 103 ret = pthread_create(&tid2, nullptr, ThreadFuncTest2, nullptr); in Child() 111 pthread_join(tid1, nullptr); in Child()
|
/kernel/liteos_a/testsuites/unittest/libc/sys/full/ |
D | sys_test_025.cpp | 39 struct group getNam1 = { nullptr }; in TestCase0() 40 struct group *getNam2 = nullptr; in TestCase0() 41 struct group getData1 = { nullptr }; in TestCase0() 42 struct group *getData2 = nullptr; in TestCase0() 43 struct group *groupRet = nullptr; in TestCase0() 50 ICUNIT_ASSERT_NOT_EQUAL(getNam2, nullptr, getNam2); in TestCase0() 56 ICUNIT_ASSERT_NOT_EQUAL(groupRet, nullptr, groupRet); in TestCase0() 62 ICUNIT_ASSERT_NOT_EQUAL(groupRet, nullptr, groupRet); in TestCase0() 69 ICUNIT_ASSERT_NOT_EQUAL(getData2, nullptr, getData2); in TestCase0() 80 struct group getNam1 = { nullptr }; in TestCase1() [all …]
|
D | sys_test_020.cpp | 35 struct passwd *user1 = nullptr; in TestCase() 36 struct passwd *user2 = nullptr; in TestCase() 37 struct passwd *user3 = nullptr; in TestCase() 38 struct passwd *user4 = nullptr; in TestCase() 52 ICUNIT_GOTO_NOT_EQUAL(user1, nullptr, -1, ERROUT); in TestCase() 62 ICUNIT_GOTO_NOT_EQUAL(user2, nullptr, -1, ERROUT); in TestCase() 72 ICUNIT_GOTO_NOT_EQUAL(user3, nullptr, -1, ERROUT); in TestCase() 82 ICUNIT_GOTO_EQUAL(user4, nullptr, -1, ERROUT); in TestCase() 85 ICUNIT_GOTO_EQUAL(user4, nullptr, -1, ERROUT); in TestCase() 88 ICUNIT_GOTO_EQUAL(user4, nullptr, -1, ERROUT); in TestCase()
|
D | sys_test_023.cpp | 36 struct group *grp1 = nullptr; in TestCase() 37 struct group *grp2 = nullptr; in TestCase() 38 struct group *grp3 = nullptr; in TestCase() 39 struct group *grp4 = nullptr; in TestCase() 53 ICUNIT_GOTO_NOT_EQUAL(grp1, nullptr, -1, ERROUT); in TestCase() 59 ICUNIT_GOTO_NOT_EQUAL(grp2, nullptr, -1, ERROUT); in TestCase() 65 ICUNIT_GOTO_NOT_EQUAL(grp3, nullptr, -1, ERROUT); in TestCase() 73 ICUNIT_GOTO_NOT_EQUAL(grp4, nullptr, -1, ERROUT); in TestCase()
|
D | sys_test_018.cpp | 35 struct passwd *user1 = nullptr; in TestCase() 36 struct passwd *user2 = nullptr; in TestCase() 37 struct passwd *user3 = nullptr; in TestCase() 38 struct passwd *user4 = nullptr; in TestCase() 52 ICUNIT_GOTO_NOT_EQUAL(user1, nullptr, -1, ERROUT); in TestCase() 62 ICUNIT_GOTO_NOT_EQUAL(user2, nullptr, -1, ERROUT); in TestCase() 73 ICUNIT_GOTO_NOT_EQUAL(user3, nullptr, -1, ERROUT); in TestCase() 83 ICUNIT_GOTO_EQUAL(user4, nullptr, -1, ERROUT); in TestCase() 86 ICUNIT_GOTO_EQUAL(user4, nullptr, -1, ERROUT); in TestCase()
|
D | sys_test_021.cpp | 36 struct passwd *user1 = nullptr; in TestCase() 37 struct passwd *user2 = nullptr; in TestCase() 38 struct passwd *user3 = nullptr; in TestCase() 39 struct passwd *user4 = nullptr; in TestCase() 40 struct passwd *user5 = nullptr; in TestCase() 76 ICUNIT_GOTO_NOT_EQUAL(user2, nullptr, -1, ERROUT); in TestCase() 87 ICUNIT_GOTO_NOT_EQUAL(user3, nullptr, -1, ERROUT); in TestCase() 98 ICUNIT_GOTO_EQUAL(user4, nullptr, -1, ERROUT); in TestCase() 102 ICUNIT_GOTO_EQUAL(user5, nullptr, -1, ERROUT); in TestCase() 106 ICUNIT_GOTO_EQUAL(user5, nullptr, -1, ERROUT); in TestCase() [all …]
|
D | sys_test_019.cpp | 36 struct passwd *user1 = nullptr; in TestCase() 37 struct passwd *user2 = nullptr; in TestCase() 38 struct passwd *user3 = nullptr; in TestCase() 39 struct passwd *user4 = nullptr; in TestCase() 40 struct passwd *user5 = nullptr; in TestCase() 57 ICUNIT_GOTO_NOT_EQUAL(user1, nullptr, -1, ERROUT); in TestCase() 75 ICUNIT_GOTO_NOT_EQUAL(user2, nullptr, -1, ERROUT); in TestCase() 85 ICUNIT_GOTO_NOT_EQUAL(user3, nullptr, -1, ERROUT); in TestCase() 96 ICUNIT_GOTO_EQUAL(user4, nullptr, -1, ERROUT); in TestCase() 98 ret = getpwnam_r(nullptr, &pwd, buf1, sizeof(buf1), &user5); in TestCase()
|
/kernel/liteos_a/testsuites/unittest/net/netdb/full/ |
D | net_netdb_test_018.cpp | 57 struct servent *se1 = nullptr; in GetServEntTest() 58 struct servent *se2 = nullptr; in GetServEntTest() 59 struct servent *se3 = nullptr; in GetServEntTest() 62 ICUNIT_ASSERT_NOT_EQUAL(se1, nullptr, -1); in GetServEntTest() 69 ICUNIT_ASSERT_NOT_EQUAL(se2, nullptr, -1); in GetServEntTest() 76 ICUNIT_ASSERT_NOT_EQUAL(se3, nullptr, -1); in GetServEntTest() 82 ICUNIT_ASSERT_NOT_EQUAL(se3, nullptr, -1); in GetServEntTest() 88 ICUNIT_ASSERT_NOT_EQUAL(se3, nullptr, -1); in GetServEntTest() 94 ICUNIT_ASSERT_NOT_EQUAL(se3, nullptr, -1); in GetServEntTest() 100 ICUNIT_ASSERT_EQUAL(se3->s_aliases[2], nullptr, -1); in GetServEntTest() [all …]
|
D | net_netdb_test_020.cpp | 49 struct netent *se1 = nullptr; in GetNetEntTest() 50 struct netent *se2 = nullptr; in GetNetEntTest() 51 struct netent *se3 = nullptr; in GetNetEntTest() 54 ICUNIT_ASSERT_NOT_EQUAL(se1, nullptr, -1); in GetNetEntTest() 58 ICUNIT_ASSERT_EQUAL(se1->n_aliases[0], nullptr, -1); in GetNetEntTest() 62 ICUNIT_ASSERT_NOT_EQUAL(se2, nullptr, -1); in GetNetEntTest() 69 ICUNIT_ASSERT_NOT_EQUAL(se3, nullptr, -1); in GetNetEntTest() 75 ICUNIT_ASSERT_NOT_EQUAL(se1, nullptr, -1); in GetNetEntTest() 81 ICUNIT_ASSERT_EQUAL(se1->n_aliases[2], nullptr, -1); in GetNetEntTest() 84 ICUNIT_ASSERT_EQUAL(se1, nullptr, -1); in GetNetEntTest()
|
D | net_netdb_test_019.cpp | 51 struct hostent *se1 = nullptr; in GetHostEntTest() 52 struct hostent *se2 = nullptr; in GetHostEntTest() 53 struct hostent *se3 = nullptr; in GetHostEntTest() 57 ICUNIT_ASSERT_NOT_EQUAL(se1, nullptr, -1); in GetHostEntTest() 62 ICUNIT_ASSERT_EQUAL(se1->h_aliases[0], nullptr, -1); in GetHostEntTest() 66 ICUNIT_ASSERT_NOT_EQUAL(se2, nullptr, -1); in GetHostEntTest() 73 ICUNIT_ASSERT_NOT_EQUAL(se3, nullptr, -1); in GetHostEntTest() 79 ICUNIT_ASSERT_NOT_EQUAL(se3, nullptr, -1); in GetHostEntTest() 86 ICUNIT_ASSERT_NOT_EQUAL(se3, nullptr, -1); in GetHostEntTest() 92 ICUNIT_ASSERT_EQUAL(se3->h_aliases[2], nullptr, -1); in GetHostEntTest() [all …]
|
D | net_netdb_test_021.cpp | 47 struct netent *se1 = nullptr; in GetNetBynametTest() 48 struct netent *se2 = nullptr; in GetNetBynametTest() 49 struct netent *se3 = nullptr; in GetNetBynametTest() 52 ICUNIT_ASSERT_NOT_EQUAL(se1, nullptr, -1); in GetNetBynametTest() 58 ICUNIT_ASSERT_EQUAL(se2, nullptr, -1); in GetNetBynametTest() 61 ICUNIT_ASSERT_EQUAL(se3, nullptr, -1); in GetNetBynametTest()
|
D | net_netdb_test_022.cpp | 47 struct netent *se1 = nullptr; in GetNetByAddrtTest() 48 struct netent *se2 = nullptr; in GetNetByAddrtTest() 49 struct netent *se3 = nullptr; in GetNetByAddrtTest() 52 ICUNIT_ASSERT_NOT_EQUAL(se1, nullptr, -1); in GetNetByAddrtTest() 58 ICUNIT_ASSERT_EQUAL(se2, nullptr, -1); in GetNetByAddrtTest() 61 ICUNIT_ASSERT_EQUAL(se3, nullptr, -1); in GetNetByAddrtTest()
|
/kernel/liteos_a/testsuites/unittest/process/lock/mutex/smoke/ |
D | pthread_mutex_test_021.cpp | 60 return nullptr; in ThreadFuncTest2() 64 return nullptr; in ThreadFuncTest2() 76 return nullptr; in ThreadFuncTest1() 84 return nullptr; in ThreadFuncTest1() 88 return nullptr; in ThreadFuncTest1() 97 gettimeofday(&timeVal, nullptr); in ThreadFuncTest0() 106 return nullptr; in ThreadFuncTest0() 116 return nullptr; in ThreadFuncTest0() 120 return nullptr; in ThreadFuncTest0() 177 ret = pthread_create(&newPthread1, nullptr, ThreadFuncTest2, 0); in Testcase() [all …]
|
D | pthread_mutex_test_022.cpp | 60 return nullptr; in ThreadFuncTest2() 64 return nullptr; in ThreadFuncTest2() 76 return nullptr; in ThreadFuncTest1() 84 return nullptr; in ThreadFuncTest1() 88 return nullptr; in ThreadFuncTest1() 97 gettimeofday(&timeVal, nullptr); in ThreadFuncTest0() 106 return nullptr; in ThreadFuncTest0() 116 return nullptr; in ThreadFuncTest0() 120 return nullptr; in ThreadFuncTest0() 177 ret = pthread_create(&newPthread1, nullptr, ThreadFuncTest2, 0); in Testcase() [all …]
|
D | pthread_mutex_test_008.cpp | 50 gettimeofday(&timeVal, nullptr); in ThreadFuncTest3() 60 return nullptr; in ThreadFuncTest3() 63 return nullptr; in ThreadFuncTest3() 76 gettimeofday(&timeVal, nullptr); in ThreadFuncTest2() 86 return nullptr; in ThreadFuncTest2() 90 return nullptr; in ThreadFuncTest2() 103 gettimeofday(&timeVal, nullptr); in ThreadFuncTest1() 113 return nullptr; in ThreadFuncTest1() 116 return nullptr; in ThreadFuncTest1() 137 ret = pthread_create(&newPthread, nullptr, ThreadFuncTest1, 0); in Testcase() [all …]
|
D | pthread_mutex_test_020.cpp | 60 return nullptr; in ThreadFuncTest2() 64 return nullptr; in ThreadFuncTest2() 76 return nullptr; in ThreadFuncTest1() 84 return nullptr; in ThreadFuncTest1() 88 return nullptr; in ThreadFuncTest1() 97 gettimeofday(&timeVal, nullptr); in ThreadFuncTest0() 106 return nullptr; in ThreadFuncTest0() 116 return nullptr; in ThreadFuncTest0() 120 return nullptr; in ThreadFuncTest0() 180 ret = pthread_create(&newPthread1, nullptr, ThreadFuncTest2, 0); in Testcase() [all …]
|
D | pthread_mutex_test_007.cpp | 53 gettimeofday(&timeVal, nullptr); in ThreadFuncTest3() 70 return nullptr; in ThreadFuncTest3() 74 return nullptr; in ThreadFuncTest3() 87 gettimeofday(&timeVal, nullptr); in ThreadFuncTest2() 104 return nullptr; in ThreadFuncTest2() 108 return nullptr; in ThreadFuncTest2() 121 gettimeofday(&timeVal, nullptr); in ThreadFuncTest1() 134 return nullptr; in ThreadFuncTest1() 138 return nullptr; in ThreadFuncTest1() 167 ret = pthread_create(&newPthread, nullptr, ThreadFuncTest1, 0); in Testcase() [all …]
|
D | pthread_mutex_test_019.cpp | 60 return nullptr; in ThreadFuncTest2() 64 return nullptr; in ThreadFuncTest2() 73 gettimeofday(&timeVal, nullptr); in ThreadFuncTest1() 89 return nullptr; in ThreadFuncTest1() 93 return nullptr; in ThreadFuncTest1() 144 ret = pthread_create(&newPthread1, nullptr, ThreadFuncTest2, 0); in Testcase() 147 gettimeofday(&timeVal, nullptr); in Testcase() 149 gettimeofday(&time, nullptr); in Testcase() 160 ret = pthread_join(newPthread[threadCount], nullptr); in Testcase()
|
/kernel/liteos_a/testsuites/unittest/extended/signal/smoke/ |
D | sigset_test_001.cpp | 50 return nullptr; in PthreadSigsetSigHold() 58 return nullptr; in PthreadSigsetSigUsr() 65 int ret = pthread_create(&tid, nullptr, PthreadSigsetSigHold, nullptr); in TestCase() 70 ret = pthread_join(tid, nullptr); in TestCase() 73 ret = pthread_create(&tid, nullptr, PthreadSigsetSigUsr, nullptr); in TestCase() 78 ret = pthread_join(tid, nullptr); in TestCase()
|
/kernel/liteos_a/testsuites/unittest/basic/exc/smoke/ |
D | it_test_exc_002.cpp | 39 return nullptr; in ThreadFunc2() 44 int *test = nullptr; in ThreadFunc1() 49 return nullptr; in ThreadFunc1() 62 ret = pthread_create(&newThread, nullptr, ThreadFunc2, nullptr); in TestThread() 74 ret = pthread_create(&newThread, &a, ThreadFunc1, nullptr); in TestThread() 82 int *test = nullptr; in TestCase()
|
/kernel/liteos_a/testsuites/unittest/basic/mem/shm/full/ |
D | shm_test_001.cpp | 44 void *shm = nullptr; in ShmReadFunc() 45 struct shared_use_st *shared = nullptr; in ShmReadFunc() 79 return nullptr; in ShmReadFunc() 84 void *shm = nullptr; in ShmWriteFunc() 85 struct shared_use_st *shared = nullptr; in ShmWriteFunc() 94 shm = shmat(shmid, nullptr, 0); in ShmWriteFunc() 126 return nullptr; in ShmWriteFunc() 155 ret = pthread_join(newPthread[0], nullptr); in Testcase() 158 ret = pthread_join(newPthread[1], nullptr); in Testcase()
|
/kernel/linux/build/test/fuzztest/accesstokenid/src/ |
D | accesstokenidcommon.cpp | 131 return nullptr; in TokenTest() 141 ret = pthread_create(&tid1, nullptr, TokenTest, dataToken); in ThreadTest() 146 ret = pthread_create(&tid2, nullptr, TokenTest, dataToken); in ThreadTest() 151 ret = pthread_create(&tid3, nullptr, TokenTest, dataToken); in ThreadTest() 156 pthread_join(tid1, nullptr); in ThreadTest() 157 pthread_join(tid2, nullptr); in ThreadTest() 158 pthread_join(tid3, nullptr); in ThreadTest() 254 return nullptr; in FTokenTest() 283 if ((data == nullptr) || (size < sizeof(unsigned long long))) { in SetfTokenidCmdFuzzTest() 295 if ((data == nullptr) || (size < sizeof(unsigned long long))) { in GetfTokenidCmdFuzzTest() [all …]
|