Files
Reims-Go/internal/host/scheduling_test.go
T
NwflowerandClaude Opus 5.5 4cf1e8ea37 feat(host): open Windows processor scheduling as administrator
The host page's optimizations list gains a "Windows processor scheduling"
row: it shows whether Windows favours programs or background services
(Win32PrioritySeparation, read without elevation) and a button that opens
System Properties' Performance Options through one UAC prompt, so the
choice saves without a second one. Declining the prompt is not an error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 00:31:18 -07:00

18 lines
479 B
Go

package host
import "testing"
func TestSchedulingFromPrioritySeparation(t *testing.T) {
cases := map[uint32]string{
0x26: SchedulingPrograms, // Programs, as the dialog writes it
0x02: SchedulingPrograms, // a fresh client install
0x18: SchedulingBackground, // Background services
0x00: SchedulingBackground,
}
for v, want := range cases {
if got := SchedulingFromPrioritySeparation(v); got != want {
t.Errorf("0x%02x: %q, want %q", v, got, want)
}
}
}