Commit 83285d54 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

d3d8/tests: Ignore random testbot failures in test_cursor.

parent ef2943d1
......@@ -1074,11 +1074,19 @@ static void test_cursor(void)
IDirect3DSurface8_Release(cursor);
/* On the testbot the cursor handle does not behave as expected in rare situations,
* leading to random test failures. Either the cursor handle changes before we expect
* it to, or it doesn't change afterwards (or already changed before we read the
* initial handle?). I was not able to reproduce this on my own machines. Moving the
* mouse outside the window results in similar behavior. However, I tested various
* obvious failure causes: Was the mouse moved? Was the window hidden or moved? Is
* the window in the background? Neither of those applies. Making the window topmost
* or using a fullscreen device doesn't improve the test's reliability either. */
memset(&info, 0, sizeof(info));
info.cbSize = sizeof(info);
ok(GetCursorInfo(&info), "GetCursorInfo failed\n");
ok(info.flags & (CURSOR_SHOWING|CURSOR_SUPPRESSED), "The gdi cursor is hidden (%08x)\n", info.flags);
ok(info.hCursor == cur, "The cursor handle is %p\n", info.hCursor); /* unchanged */
ok(info.hCursor == cur || broken(1), "The cursor handle is %p\n", info.hCursor); /* unchanged */
/* Still hidden */
ret = IDirect3DDevice8_ShowCursor(device, TRUE);
......@@ -1092,7 +1100,7 @@ static void test_cursor(void)
info.cbSize = sizeof(info);
ok(GetCursorInfo(&info), "GetCursorInfo failed\n");
ok(info.flags & (CURSOR_SHOWING|CURSOR_SUPPRESSED), "The gdi cursor is hidden (%08x)\n", info.flags);
ok(info.hCursor != cur, "The cursor handle is %p\n", info.hCursor);
ok(info.hCursor != cur || broken(1), "The cursor handle is %p\n", info.hCursor);
/* Cursor dimensions must all be powers of two */
for (test_idx = 0; test_idx < ARRAY_SIZE(cursor_sizes); ++test_idx)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment