eric pouech (@epo) commented about dlls/kernel32/tests/toolhelp.c:
"ntdll.dll"};
+static HANDLE create_toolhelp_snapshot( DWORD flags, DWORD pid )
what's done in similar tests is to have a retry count, set to 1 for Wine (as it's not expected to return bad length) and a fixed value for Window (I've used 5 in other tests, so strong reasons apart that it doesn't fail, and initial testing showed that 1 or 2 retries were necessary)