Signed-off-by: Sven Baars sven.wine@gmail.com --- dlls/gdi32/tests/bitmap.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/dlls/gdi32/tests/bitmap.c b/dlls/gdi32/tests/bitmap.c index d651765006..289d37104c 100644 --- a/dlls/gdi32/tests/bitmap.c +++ b/dlls/gdi32/tests/bitmap.c @@ -5532,14 +5532,18 @@ static void test_SetDIBitsToDevice_RLE8(void) info->bmiHeader.biWidth = 2; ret = SetDIBitsToDevice( hdc, 0, 0, 8, 8, 0, 0, 0, 8, rle8_data, info, DIB_RGB_COLORS ); ok( ret == 8, "got %d\n", ret ); - for (i = 0; i < 64; i++) ok( dib_bits[i] == bottom_up[i], "%d: got %08x\n", i, dib_bits[i] ); + for (i = 0; i < 64; i += 8) + { + ok( dib_bits[i] == bottom_up[i], "%d: got %08x\n", i, dib_bits[i] ); + ok( dib_bits[i+1] == bottom_up[i+1], "%d: got %08x\n", i+1, dib_bits[i+1] ); + } memset( dib_bits, 0xaa, 64 * 4 );
info->bmiHeader.biWidth = 8; info->bmiHeader.biHeight = 2; ret = SetDIBitsToDevice( hdc, 0, 0, 8, 8, 0, 0, 0, 8, rle8_data, info, DIB_RGB_COLORS ); ok( ret == 2, "got %d\n", ret ); - for (i = 0; i < 64; i++) ok( dib_bits[i] == bottom_up[i], "%d: got %08x\n", i, dib_bits[i] ); + for (i = 0; i < 16; i++) ok( dib_bits[i] == bottom_up[i], "%d: got %08x\n", i, dib_bits[i] ); memset( dib_bits, 0xaa, 64 * 4 );
info->bmiHeader.biHeight = 9; @@ -5772,7 +5776,8 @@ static void test_D3DKMTCreateDCFromMemory( void ) create_desc.Height = 7; create_desc.Width = 0; status = pD3DKMTCreateDCFromMemory( &create_desc ); - ok(status == test_data[i].status, "%s: Got unexpected status %#x, expected %#x.\n", + ok(status == test_data[i].status || broken(status == STATUS_INVALID_PARAMETER) /* Win7+ */, + "%s: Got unexpected status %#x, expected %#x.\n", test_data[i].name, status, test_data[i].status); if (status == STATUS_SUCCESS) {
Signed-off-by: Sven Baars sven.wine@gmail.com --- v2: Split this patch into two patches.
dlls/gdi32/tests/clipping.c | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-)
diff --git a/dlls/gdi32/tests/clipping.c b/dlls/gdi32/tests/clipping.c index d04ef77ca3..8f3beb56b7 100644 --- a/dlls/gdi32/tests/clipping.c +++ b/dlls/gdi32/tests/clipping.c @@ -225,7 +225,9 @@ static void test_ExtCreateRegion(void) hrgn = ExtCreateRegion(NULL, sizeof(RGNDATAHEADER) - 1, &rgn.data); todo_wine ok(!hrgn, "ExtCreateRegion should fail\n"); - ok(GetLastError() == 0xdeadbeef, "0xdeadbeef, got %u\n", GetLastError()); + todo_wine + ok(GetLastError() == ERROR_INVALID_PARAMETER || + broken(GetLastError() == 0xdeadbeef), "0xdeadbeef, got %u\n", GetLastError());
SetLastError(0xdeadbeef); hrgn = ExtCreateRegion(NULL, sizeof(rgn), &rgn.data); @@ -237,32 +239,12 @@ static void test_ExtCreateRegion(void) SetRectEmpty(&rgn.data.rdh.rcBound); memcpy(rgn.data.Buffer, &rc, sizeof(rc));
- /* With a single rect this seems to work... */ - SetLastError(0xdeadbeef); - hrgn = ExtCreateRegion(NULL, sizeof(RGNDATAHEADER) + sizeof(RECT) - 1, &rgn.data); - ok(hrgn != 0, "ExtCreateRegion error %u\n", GetLastError()); - verify_region(hrgn, &rc); - DeleteObject(hrgn); - SetLastError(0xdeadbeef); hrgn = ExtCreateRegion(NULL, sizeof(rgn), &rgn.data); ok(hrgn != 0, "ExtCreateRegion error %u\n", GetLastError()); verify_region(hrgn, &rc); DeleteObject(hrgn);
- rgn.data.rdh.dwSize = sizeof(rgn.data.rdh) + 1; - - SetLastError(0xdeadbeef); - hrgn = ExtCreateRegion(NULL, 1, &rgn.data); - ok(hrgn != 0 || - broken(GetLastError() == 0xdeadbeef), /* NT4 */ - "ExtCreateRegion error %u\n", GetLastError()); - if(hrgn) - { - verify_region(hrgn, &rc); - DeleteObject(hrgn); - } - xform.eM11 = 0.5; /* 50% width */ xform.eM12 = 0.0; xform.eM21 = 0.0; @@ -270,8 +252,6 @@ static void test_ExtCreateRegion(void) xform.eDx = 20.0; xform.eDy = 40.0;
- rgn.data.rdh.dwSize = sizeof(rgn.data.rdh); - SetLastError(0xdeadbeef); hrgn = ExtCreateRegion(&xform, sizeof(rgn), &rgn.data); ok(hrgn != 0, "ExtCreateRegion error %u/%x\n", GetLastError(), GetLastError());
Signed-off-by: Sven Baars sven.wine@gmail.com --- dlls/gdi32/tests/clipping.c | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-)
diff --git a/dlls/gdi32/tests/clipping.c b/dlls/gdi32/tests/clipping.c index 8f3beb56b7..015157522d 100644 --- a/dlls/gdi32/tests/clipping.c +++ b/dlls/gdi32/tests/clipping.c @@ -182,13 +182,10 @@ static void test_ExtCreateRegion(void) HRGN hrgn; XFORM xform;
- if (0) /* crashes under Win9x */ - { - SetLastError(0xdeadbeef); - hrgn = ExtCreateRegion(NULL, 0, NULL); - ok(!hrgn, "ExtCreateRegion should fail\n"); - ok(GetLastError() == ERROR_INVALID_PARAMETER, "ERROR_INVALID_PARAMETER, got %u\n", GetLastError()); - } + SetLastError(0xdeadbeef); + hrgn = ExtCreateRegion(NULL, 0, NULL); + ok(!hrgn, "ExtCreateRegion should fail\n"); + ok(GetLastError() == ERROR_INVALID_PARAMETER, "ERROR_INVALID_PARAMETER, got %u\n", GetLastError());
rgn.data.rdh.dwSize = 0; rgn.data.rdh.iType = 0; @@ -286,9 +283,7 @@ static void test_GetClipRgn(void)
/* Test calling GetClipRgn with a valid device context and NULL region. */ ret = GetClipRgn(hdc, NULL); - ok(ret == 0 || - ret == -1 /* Win9x */, - "Expected GetClipRgn to return 0, got %d\n", ret); + ok(ret == 0, "Expected GetClipRgn to return 0, got %d\n", ret);
/* Initialize the test regions. */ hrgn = CreateRectRgn(100, 100, 100, 100); @@ -340,9 +335,7 @@ static void test_GetClipRgn(void) "Expected SelectClipRgn to return SIMPLEREGION, got %d\n", ret);
ret = GetClipRgn(hdc, NULL); - ok(ret == 0 || - ret == -1 /* Win9x */, - "Expected GetClipRgn to return 0, got %d\n", ret); + ok(ret == 0, "Expected GetClipRgn to return 0, got %d\n", ret);
ret = GetClipRgn(hdc, hrgn3); ok(ret == 0, "Expected GetClipRgn to return 0, got %d\n", ret);
Hi,
While running your changed tests, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check?
Full results can be found at: https://testbot.winehq.org/JobDetails.pl?Key=59577
Your paranoid android.
=== w2008s64 (64 bit report) ===
gdi32: bitmap.c:5537: Test failed: 0: got aaaaaaaa bitmap.c:5538: Test failed: 1: got aaaaaaaa bitmap.c:5537: Test failed: 8: got aaaaaaaa bitmap.c:5538: Test failed: 9: got aaaaaaaa bitmap.c:5546: Test failed: 0: got aaaaaaaa bitmap.c:5546: Test failed: 1: got aaaaaaaa bitmap.c:5546: Test failed: 2: got aaaaaaaa bitmap.c:5546: Test failed: 3: got aaaaaaaa bitmap.c:5546: Test failed: 4: got aaaaaaaa bitmap.c:5546: Test failed: 5: got aaaaaaaa bitmap.c:5546: Test failed: 6: got aaaaaaaa bitmap.c:5546: Test failed: 8: got aaaaaaaa bitmap.c:5546: Test failed: 9: got aaaaaaaa bitmap.c:5546: Test failed: 10: got aaaaaaaa bitmap.c:5595: Test failed: 10: got aaaaaaaa bitmap.c:5595: Test failed: 11: got aaaaaaaa bitmap.c:5595: Test failed: 12: got aaaaaaaa bitmap.c:5595: Test failed: 13: got aaaaaaaa bitmap.c:5595: Test failed: 14: got aaaaaaaa bitmap.c:5595: Test failed: 18: got aaaaaaaa bitmap.c:5595: Test failed: 36: got aaaaaaaa bitmap.c:5595: Test failed: 37: got aaaaaaaa bitmap.c:5595: Test failed: 38: got aaaaaaaa bitmap.c:5595: Test failed: 39: got aaaaaaaa bitmap.c:5607: Test failed: 24: got aaaaaaaa bitmap.c:5607: Test failed: 25: got aaaaaaaa bitmap.c:5607: Test failed: 26: got aaaaaaaa bitmap.c:5607: Test failed: 48: got aaaaaaaa bitmap.c:5607: Test failed: 49: got aaaaaaaa bitmap.c:5607: Test failed: 50: got aaaaaaaa bitmap.c:5607: Test failed: 51: got aaaaaaaa bitmap.c:5605: Test failed: 52: got aaaaaaaa bitmap.c:5647: Test failed: 36: got aaaaaaaa bitmap.c:5647: Test failed: 37: got aaaaaaaa bitmap.c:5647: Test failed: 38: got aaaaaaaa bitmap.c:5647: Test failed: 39: got aaaaaaaa bitmap.c:5647: Test failed: 48: got aaaaaaaa bitmap.c:5647: Test failed: 49: got aaaaaaaa bitmap.c:5647: Test failed: 50: got aaaaaaaa bitmap.c:5647: Test failed: 56: got aaaaaaaa bitmap.c:5647: Test failed: 57: got aaaaaaaa bitmap.c:5647: Test failed: 58: got aaaaaaaa bitmap.c:5647: Test failed: 59: got aaaaaaaa bitmap.c:5647: Test failed: 60: got aaaaaaaa bitmap.c:5647: Test failed: 61: got aaaaaaaa bitmap.c:5647: Test failed: 62: got aaaaaaaa bitmap.c:5664: Test failed: 60: got aaaaaaaa bitmap.c:5664: Test failed: 61: got aaaaaaaa bitmap.c:5664: Test failed: 62: got aaaaaaaa bitmap.c:5664: Test failed: 63: got aaaaaaaa bitmap.c:5674: Test failed: 8: got aaaaaaaa bitmap.c:5674: Test failed: 9: got aaaaaaaa bitmap.c:5674: Test failed: 10: got aaaaaaaa bitmap.c:5674: Test failed: 11: got aaaaaaaa bitmap.c:5672: Test failed: 12: got aaaaaaaa bitmap.c:5674: Test failed: 32: got aaaaaaaa bitmap.c:5674: Test failed: 33: got aaaaaaaa bitmap.c:5674: Test failed: 34: got aaaaaaaa