https://bugs.winehq.org/show_bug.cgi?id=55429
Bug ID: 55429 Summary: psapi:psapi_main - test_GetPerformanceInfo() sometimes fails on Windows Product: Wine Version: unspecified Hardware: x86-64 OS: Windows Status: NEW Severity: normal Priority: P2 Component: psapi Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com
psapi:psapi_main - test_GetPerformanceInfo() sometimes fails on Windows:
psapi_main.c:716: Test failed: expected approximately 1131 but got 1125
See https://test.winehq.org/data/patterns.html#psapi:psapi_main
There are three known instances so far: * 2023-06-16 win1607_newtb-w1064v1607-32 * 2023-06-28 win21H1_newtb-w10pro64-pt-BR-64 * 2023-08-08 win2004_newtb-w10pro64v2004-64
The test counts the total number of threads on the machine in two different ways and expects to find the same or a close enough result. In this case some process with 6 threads must have stopped while the test was running, thus causing the failure. The test also counts handles and processes, both of which could probably also fail in the same way.
I think this is another good candidate for the tryok() patch from MR!3418.
https://bugs.winehq.org/show_bug.cgi?id=55429
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |source, testcase
https://bugs.winehq.org/show_bug.cgi?id=55429
--- Comment #1 from François Gouget fgouget@codeweavers.com --- All the check_with_margin() calls in psapi_main should be checked for race conditions with non-test processes and possibly get the tryok() treatment.
https://bugs.winehq.org/show_bug.cgi?id=55429
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|wine-bugs@winehq.org |fgouget@codeweavers.com