diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-03-11 21:06:44 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-03-12 00:52:18 +0900 |
| commit | 04e6bc3c5c99d6a99f17cfa5f69f34fe8941aee2 (patch) | |
| tree | 2ad64307c13e2f967fdf17c5f02e7682189b22e1 /hst/config_test.go | |
| parent | 5c540f90aa5ac069a370cbef0ddd81fa268b43c5 (diff) | |
hst: expose scheduling policy
This is primarily useful for poorly written music players for now.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'hst/config_test.go')
| -rw-r--r-- | hst/config_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
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{""}}}, |
