From 04e6bc3c5c99d6a99f17cfa5f69f34fe8941aee2 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 11 Mar 2026 21:06:44 +0900 Subject: hst: expose scheduling policy This is primarily useful for poorly written music players for now. Signed-off-by: Ophestra --- hst/config_test.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'hst/config_test.go') diff --git a/hst/config_test.go b/hst/config_test.go index 776c21e9..ac50f127 100644 --- a/hst/config_test.go +++ b/hst/config_test.go @@ -22,6 +22,10 @@ func TestConfigValidate(t *testing.T) { Msg: "identity -1 out of range"}}, {"identity upper", &hst.Config{Identity: 10000}, &hst.AppError{Step: "validate configuration", Err: hst.ErrIdentityBounds, Msg: "identity 10000 out of range"}}, + {"sched lower", &hst.Config{SchedPolicy: -1}, &hst.AppError{Step: "validate configuration", Err: hst.ErrSchedPolicyBounds, + Msg: "scheduling policy -1 out of range"}}, + {"sched upper", &hst.Config{SchedPolicy: 0xcafe}, &hst.AppError{Step: "validate configuration", Err: hst.ErrSchedPolicyBounds, + Msg: "scheduling policy 51966 out of range"}}, {"dbus session", &hst.Config{SessionBus: &hst.BusConfig{See: []string{""}}}, &hst.BadInterfaceError{Interface: "", Segment: "session"}}, {"dbus system", &hst.Config{SystemBus: &hst.BusConfig{See: []string{""}}}, -- cgit v1.3.1