Home
last modified time | relevance | path

Searched refs:GetRandom (Results 1 - 10 of 10) sorted by relevance

/kernel/liteos_m/testsuites/unittest/xts/sched/
H A Dpthread_sched_api_test.c107 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 Dprocess_sched_api_test.c73 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 Dsleep_test.c89 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 Dalarm_test.c55 clockid_t clockid = GetRandom(2048); /* 2048, common data for test, no special meaning */
/kernel/liteos_m/testsuites/unittest/posix/src/mqueue/
H A Dmqueue_func_test.c58 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 Dmem_api_test.c54 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 Dmq_exp_test.c59 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 Dmq_test.c60 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 Dxts_test.c33 uint32_t GetRandom(uint32_t max) in GetRandom() function
H A Dxts_test.h54 uint32_t GetRandom(uint32_t max);

Completed in 5 milliseconds