https://bugs.winehq.org/show_bug.cgi?id=55548
Bug ID: 55548 Summary: kernel32:power - test_GetSystemPowerStatus() fails on macOS Product: Wine Version: unspecified Hardware: x86-64 OS: Mac OS X Status: NEW Severity: normal Priority: P2 Component: kernel32 Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com
kernel32:power - test_GetSystemPowerStatus() fails on macOS:
power.c:34: Test failed: expected TRUE
See https://test.winehq.org/data/patterns.html#kernel32:power
The failure is systematic and only happens macOS (see Remi's rbernon-macos-* cloud test machines). It looks like the macOS implementation of fill_battery_state() fails, presumably because of permission issues.
https://bugs.winehq.org/show_bug.cgi?id=55548
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |source, testcase
https://bugs.winehq.org/show_bug.cgi?id=55548
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|kernel32:power - |kernel32:power & ntdll:info |test_GetSystemPowerStatus() |- Getting the battery state |fails on macOS |fails on macOS
--- Comment #1 from François Gouget fgouget@codeweavers.com --- ntdll:info - test_query_battery() fails to get the battery state on macOS:
info.c:1603: Test failed: expected success
See https://test.winehq.org/data/patterns.html#ntdll:info
This failure is systematic and is also specific to the macOS test configurations. The root cause also appears to be identical to the one plaguing kernel32:power.
https://bugs.winehq.org/show_bug.cgi?id=55548
Brendan Shanks bshanks@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bshanks@codeweavers.com
--- Comment #2 from Brendan Shanks bshanks@codeweavers.com --- Wine is using an old API that no longer works. There's an MR that will hopefully fix this, I'll try to get it into shape: https://gitlab.winehq.org/wine/wine/-/merge_requests/2283
https://bugs.winehq.org/show_bug.cgi?id=55548
--- Comment #3 from Brendan Shanks bshanks@codeweavers.com --- MR2283 was merged (commit f715f400dc44c58035f6cbcb410a4b30d8cce58d), the kernel32 tests are now succeeding. ntdll:info gets farther, but there is still a failure:
info.c:1631: Test failed: expected 4294967295 minutes remaining got 0 minutes
(this is on an M2 Pro MacBook Pro, connected to power)