James Hawkins : opengl32: Trace a test result that fails inconsistently across different drivers.

Alexandre Julliard julliard at winehq.org
Fri May 23 05:45:39 CDT 2008


Module: wine
Branch: master
Commit: 0fad82a9c7b16e9207da8528b26c164657469226
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0fad82a9c7b16e9207da8528b26c164657469226

Author: James Hawkins <jhawkins at codeweavers.com>
Date:   Fri May 23 03:21:29 2008 -0500

opengl32: Trace a test result that fails inconsistently across different drivers.

---

 dlls/opengl32/tests/opengl.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/opengl32/tests/opengl.c b/dlls/opengl32/tests/opengl.c
index db9504f..ad05822 100644
--- a/dlls/opengl32/tests/opengl.c
+++ b/dlls/opengl32/tests/opengl.c
@@ -210,9 +210,11 @@ static void test_setpixelformat(HDC winhdc)
     pf = ChoosePixelFormat(hdc, &pfd);
     ok(pf != 0, "ChoosePixelFormat failed on main device context\n");
 
-    /* SetPixelFormat on the main device context 'X root window' should fail */
+    /* SetPixelFormat on the main device context 'X root window' should fail,
+     * but some broken drivers allow it
+     */
     res = SetPixelFormat(hdc, pf, &pfd);
-    ok(res == 0, "SetPixelFormat on main device context should fail\n");
+    trace("SetPixelFormat on main device context %s\n", res ? "succeeded" : "failed");
 
     /* Setting the same format that was set on the HDC is allowed; other
        formats fail */




More information about the wine-cvs mailing list