[PATCH] user32/tests: Fix the clipboard CF_LOCALE test.
Francois Gouget
fgouget at codeweavers.com
Thu May 20 08:47:57 CDT 2021
On Thu, 20 May 2021, Marvin wrote:
[...]
> === w1064 (32 bit report) ===
>
> user32:
> clipboard.c:402: Test failed: GlobalGetAtomNameA should fail
> clipboard.c:403: Test failed: err -559038737
This is a preexisting failure though it is very rare; there are only two
instances on record:
https://test.winehq.org/data/39263558a2088940aaacd6eda19ca23d40b63495/win81_cw-gtx560-32/user32:clipboard.html
https://test.winehq.org/data/39263558a2088940aaacd6eda19ca23d40b63495/win81_cw-gtx560-64/user32:clipboard.html
I think the issue is that the test essentially assumes that picking an
integer at random will not yield a valid global atom. But the
probability that it does is about <number-of-global-atoms-in-use> /
0xc000, which may well be above 1/100.
I'm sending a patch to fix it.
--
Francois Gouget <fgouget at codeweavers.com>
More information about the wine-devel
mailing list