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>
18 lines
479 B
Go
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)
|
|
}
|
|
}
|
|
}
|