Lines Matching refs:priority
38 int priority = getpriority(PRIO_PROCESS, INIT_PROCESS_ID); variable
39 EXPECT_EQ(priority, DEFAULT_INIT_PROCESS_PRIORITY) << "check 'init' priority failed.";
40 priority = getpriority(PRIO_PROCESS, KERNEL_PROCESS_ID);
41 EXPECT_EQ(priority, DEFAULT_KERNEL_PROCESS_PRIORITY) << "check 'KProcess' priority failed.";
53 int priority = getpriority(PRIO_PGRP, 0); variable
54 EXPECT_EQ(priority, -1);
57 priority = getpriority(PRIO_USER, 0);
58 EXPECT_EQ(priority, -1);
69 int priority; variable
73 priority = getpriority(PRIO_USER + GetRandom(1000), 0);
74 EXPECT_EQ(priority, -1);
77 priority = getpriority(-GetRandom(1000), 0);
78 EXPECT_EQ(priority, -1);
89 int priority; variable
92 priority = getpriority(PRIO_PROCESS, -1);
93 EXPECT_EQ(priority, -1);
96 priority = getpriority(PRIO_PROCESS, MAX_PROCESS_NUMBER + 1);
97 EXPECT_EQ(priority, -1);
100 priority = getpriority(PRIO_PROCESS, MAX_PROCESS_NUMBER + GetRandom(100000));
101 EXPECT_EQ(priority, -1);
112 int priority; variable
117 priority = getpriority(PRIO_PROCESS, nonExitPid);
118 EXPECT_EQ(priority, -1);