Home
last modified time | relevance | path

Searched refs:currPolicy (Results 1 – 9 of 9) sorted by relevance

/kernel/liteos_a/testsuites/unittest/process/basic/pthread/smoke/
Dpthread_test_022.cpp35 int currPolicy = 0; in EdfProcess() local
40 ret = pthread_getschedparam(pthread_self(), &currPolicy, &currSchedParam); in EdfProcess()
42 ICUNIT_ASSERT_EQUAL(currPolicy, SCHED_DEADLINE, LOS_NOK); in EdfProcess()
69 int currPolicy = 0; in ChildProcess() local
82 ret = pthread_getschedparam(pthread_self(), &currPolicy, &currSchedParam); in ChildProcess()
84 ICUNIT_ASSERT_EQUAL(currPolicy, SCHED_DEADLINE, LOS_NOK); in ChildProcess()
Dpthread_test_027.cpp35 int currPolicy = 0; in ChildProcess() local
47 currPolicy = sched_getscheduler(getpid()); in ChildProcess()
48 ICUNIT_ASSERT_EQUAL(currPolicy, SCHED_RR, LOS_NOK); in ChildProcess()
57 currPolicy = sched_getscheduler(getpid()); in ChildProcess()
58 ICUNIT_ASSERT_EQUAL(currPolicy, SCHED_DEADLINE, LOS_NOK); in ChildProcess()
Dpthread_test_021.cpp35 int ret, currPolicy; in ThreadFuncTest() local
40 ret = pthread_getschedparam(pthread_self(), & currPolicy, &currSchedParam); in ThreadFuncTest()
42 ICUNIT_GOTO_EQUAL( currPolicy, SCHED_DEADLINE, LOS_NOK, EXIT); in ThreadFuncTest()
72 int ret, currPolicy = 0; in ChildProcess() local
85 ret = pthread_getschedparam(pthread_self(), & currPolicy, &currSchedParam); in ChildProcess()
87 ICUNIT_ASSERT_EQUAL(currPolicy, SCHED_DEADLINE, LOS_NOK); in ChildProcess()
Dpthread_test_026.cpp35 int currPolicy = 0; in ChildProcess() local
47 currPolicy = sched_getscheduler(getpid()); in ChildProcess()
48 ICUNIT_ASSERT_EQUAL(currPolicy, SCHED_RR, LOS_NOK); in ChildProcess()
57 currPolicy = sched_getscheduler(getpid()); in ChildProcess()
58 ICUNIT_ASSERT_EQUAL(currPolicy, SCHED_DEADLINE, LOS_NOK); in ChildProcess()
Dpthread_test_020.cpp34 int ret, currPolicy = 0; in ChildProcess() local
46 currPolicy = sched_getscheduler(getpid()); in ChildProcess()
47 ICUNIT_ASSERT_EQUAL(currPolicy, SCHED_RR, LOS_NOK); in ChildProcess()
56 currPolicy = sched_getscheduler(getpid()); in ChildProcess()
57 ICUNIT_ASSERT_EQUAL(currPolicy, SCHED_DEADLINE, LOS_NOK); in ChildProcess()
Dpthread_test_023.cpp40 int currPolicy = 0; in ChildProcess() local
60 ret = pthread_getschedparam(pthread_self(), &currPolicy, &currSchedParam); in ChildProcess()
62 ICUNIT_ASSERT_EQUAL(currPolicy, SCHED_DEADLINE, LOS_NOK); in ChildProcess()
Dpthread_test_025.cpp47 int currPolicy = 0; in ChildProcess() local
/kernel/liteos_a/testsuites/unittest/process/basic/process/smoke/
Dprocess_test_013.cpp39 int val, currPolicy; in TestCase() local
43 currPolicy = sched_getscheduler(getpid()); in TestCase()
44 ICUNIT_GOTO_EQUAL(currPolicy, SCHED_RR, currPolicy, ERROR_OUT); in TestCase()
54 ICUNIT_GOTO_EQUAL(val, currPolicy, val, ERROR_OUT); in TestCase()
/kernel/liteos_a/testsuites/unittest/container/full/
DIt_pid_container_014.cpp36 int val, currPolicy; in ChildFun() local
46 currPolicy = sched_getscheduler(getpid()); in ChildFun()
47 if (currPolicy != SCHED_RR) { in ChildFun()
62 if (val != currPolicy) { in ChildFun()