Paul Vriens : ddraw/tests: Fix a test failure on VMware and some native boxes.
Module: wine Branch: master Commit: 5974ad12005115d3f147a4a1fbe80b37668bd27a URL: http://source.winehq.org/git/wine.git/?a=commit;h=5974ad12005115d3f147a4a1fb... Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com> Date: Fri Mar 13 14:36:12 2009 +0100 ddraw/tests: Fix a test failure on VMware and some native boxes. --- dlls/ddraw/tests/visual.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/dlls/ddraw/tests/visual.c b/dlls/ddraw/tests/visual.c index ec6ea13..3a29151 100644 --- a/dlls/ddraw/tests/visual.c +++ b/dlls/ddraw/tests/visual.c @@ -1838,7 +1838,9 @@ static void D3D1_ViewportClearTest(void) red = (color & 0x00ff0000) >> 16; green = (color & 0x0000ff00) >> 8; blue = (color & 0x000000ff); - ok(red == 0xff && green == 0 && blue == 0, "Got color %08x, expected 00ff0000\n", color); + ok((red == 0xff && green == 0 && blue == 0) || + broken(red == 0 && green == 0 && blue == 0xff), /* VMware and some native boxes */ + "Got color %08x, expected 00ff0000\n", color); color = D3D1_getPixelColor(DirectDraw1, Surface1, 205, 205); red = (color & 0x00ff0000) >> 16;
participants (1)
-
Alexandre Julliard