aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test.py
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-03-12 01:14:03 +0900
committerOphestra <cat@gensokyo.uk>2026-03-12 01:14:03 +0900
commit196b200d0f19c41730db439c62db9b39e424f21f (patch)
tree0723b900cea0816b6501f3933f768fb75453dd49 /test/test.py
parent04e6bc3c5c99d6a99f17cfa5f69f34fe8941aee2 (diff)
container: expose priority and SCHED_OTHER policy
The more explicit API removes the arbitrary limit preventing use of SCHED_OTHER (referred to as SCHED_NORMAL in the kernel). This change also exposes priority value to set. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test/test.py')
-rw-r--r--test/test.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test.py b/test/test.py
index 9071f563..57cf2084 100644
--- a/test/test.py
+++ b/test/test.py
@@ -213,6 +213,9 @@ if sched_unset != 0:
sched_idle = int(machine.succeed("sudo -u alice -i hakurei -v run --sched=idle cat /proc/self/sched | grep '^policy' | tr -d ' ' | cut -d ':' -f 2"))
if sched_idle != 5:
raise Exception(f"unexpected idle policy: {sched_idle}")
+sched_rr = int(machine.succeed("sudo -u alice -i hakurei -v run --sched=rr cat /proc/self/sched | grep '^policy' | tr -d ' ' | cut -d ':' -f 2"))
+if sched_rr != 2:
+ raise Exception(f"unexpected round-robin policy: {sched_idle}")
# Start app (foot) with Wayland enablement:
swaymsg("exec ne-foot")