/kernel/liteos_m/testsuites/unittest/xts/sched/ |
H A D | pthread_sched_api_test.c | 107 int n = -GetRandom(100); /* 100, common data for test, no special meaning */ 110 n = 2 + GetRandom(100); /* 2, 100, common data for test, no special meaning */ 175 invalidPolicy[5] = -GetRandom(10000); /* 5, 10000, common data for test, no special meaning */ 176 invalidPolicy[6] = GetRandom(10000) + 6; /* 6, 10000, common data for test, no special meaning */ 218 rt = pthread_attr_setscope(&attr, -GetRandom(10000)); /* 10000, common data for test, no special meaning */ 221 rt = pthread_attr_setscope(&attr, GetRandom(10000) + 2); /* 2, 10000, common data for test, no special meaning */
|
H A D | process_sched_api_test.c | 73 invalidPolicyVal = -GetRandom(10000); /* 10000, common data for test, no special meaning */ 79 invalidPolicyVal = GetRandom(10000) + SCHED_DEADLINE; /* 10000, common data for test, no special meaning */ 114 invalidPolicyVal = -GetRandom(10000); /* 10000, common data for test, no special meaning */ 120 invalidPolicyVal = GetRandom(10000) + SCHED_DEADLINE; /* 10000, common data for test, no special meaning */
|
/kernel/liteos_m/testsuites/unittest/xts/time/ |
H A D | sleep_test.c | 89 int id = GetRandom(1000) + 12; /* 1000, 12, common data for test, no special meaning */ 93 id = -GetRandom(1000) - 12; /* 1000, 12, common data for test, no special meaning */ 100 flag = GetRandom(100) + 1; /* 100, 1, common data for test, no special meaning */ 103 flag = -GetRandom(100) - 1; /* 100, 1, common data for test, no special meaning */
|
H A D | alarm_test.c | 55 clockid_t clockid = GetRandom(2048); /* 2048, common data for test, no special meaning */
|
/kernel/liteos_m/testsuites/unittest/posix/src/mqueue/ |
H A D | mqueue_func_test.c | 58 static unsigned int GetRandom(unsigned int max) in GetRandom() function 148 sprintf_s(qName, MQ_NAME_LEN, "testMqOpenEEXIST_%d", GetRandom(10000)); 178 sprintf_s(qName, MQ_NAME_LEN, "testMqOpenEINVAL_%d", GetRandom(10000)); 273 sprintf_s(qName, MQ_NAME_LEN, "testMqOpenENOENT_%d", GetRandom(10000)); 337 sprintf_s(qName, MQ_NAME_LEN, "testMqOpenENOSPC_%d", GetRandom(10000)); 375 sprintf_s(qName, MQ_NAME_LEN, "testMqSendEAGAIN_%d", GetRandom(10000)); 408 sprintf_s(qName, MQ_NAME_LEN, "testMqSendEAGAIN_%d", GetRandom(10000)); 465 sprintf_s(qName, MQ_NAME_LEN, "testMqSendEINVAL_%d", GetRandom(10000)); 497 sprintf_s(qName, MQ_NAME_LEN, "testMqReceiveEAGAIN_%d", GetRandom(10000));
|
/kernel/liteos_m/testsuites/unittest/xts/mem/ |
H A D | mem_api_test.c | 54 len = GetRandom(1024); /* 1024, common data for test, no special meaning */ 83 len = GetRandom(1024); /* 1024, common data for test, no special meaning */ 115 buf[i] = chr + GetRandom(26); /* 26, common data for test, no special meaning */ 145 buf[i] = chr + GetRandom(26); /* 26, common data for test, no special meaning */
|
/kernel/liteos_m/testsuites/unittest/xts/ipc/msg_queue/ |
H A D | mq_exp_test.c | 59 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqReceiveEAGAIN_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 102 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqReceiveEAGAIN_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 138 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqReceiveEINVAL_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 169 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqTimedSendEAGAIN_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 231 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqTimedSendEINVAL_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 282 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqTimedSendEMSGSIZE_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 315 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqTimedSendETIMEDOUT_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 355 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqTimedReceiveEAGAIN_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 416 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqTimedReceiveEINVAL_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 471 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqTimedReceiveETIMEDOUT_%d", GetRandom(1000 [all...] |
H A D | mq_test.c | 60 ret = sprintf_s(qName, sizeof(qName), "testMqOneLevelCom_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 104 ret = sprintf_s(qName, sizeof(qName), "testMqTimedOneLevelCom_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 150 ret = sprintf_s(qName, sizeof(qName), "testMqAllOneLevelCom_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 200 ret = sprintf_s(qName, sizeof(qName), "testMqAllOneLevelCom_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 269 ret = sprintf_s(qName, sizeof(qName), "testMqTwoLevelCom_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 346 ret = sprintf_s(qName, sizeof(qName), "testMqTimedTwoThreadCom_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 425 ret = sprintf_s(qName, sizeof(qName), "testMqAllTwoThreadCom_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 469 ret = sprintf_s(qName, sizeof(qName), "testMqFunction_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */
|
/kernel/liteos_m/testsuites/unittest/xts/ |
H A D | xts_test.c | 33 uint32_t GetRandom(uint32_t max) in GetRandom() function
|
H A D | xts_test.h | 54 uint32_t GetRandom(uint32_t max);
|