Lines Matching refs:priority
3 // IBMi process priority is different.
5 common.skip('IBMi has a different process priority');
16 } = os.constants.priority;
18 // Validate priority constants.
58 // Test priority type validation.
59 [null, true, false, 'foo', {}, [], /x/].forEach((priority) => {
61 os.setPriority(0, priority);
64 message: /The "priority" argument must be of type number\./
68 // Test priority range validation.
77 ].forEach((priority) => {
79 os.setPriority(0, priority);
82 message: /The value of "priority" is out of range\./
93 // specific priority level. Skip this priority, but keep trying lower
122 const priority = os.getPriority(pid);
124 // Verify that the priority values match on Unix, and are range mapped on
127 assert.strictEqual(priority, expected);
134 assert.ok(priority === PRIORITY_HIGHEST || priority === PRIORITY_HIGH);
136 assert.strictEqual(priority, PRIORITY_HIGH);
138 assert.strictEqual(priority, PRIORITY_ABOVE_NORMAL);
140 assert.strictEqual(priority, PRIORITY_NORMAL);
142 assert.strictEqual(priority, PRIORITY_BELOW_NORMAL);
144 assert.strictEqual(priority, PRIORITY_LOW);