Skip to content

WINE unit tests

dhewg edited this page Apr 3, 2019 · 1 revision

Random notes about failing unit tests

crashes, maybe related to test_refcount fails

test_fpu_setup: crash on IDirect3DDevice9_Release
test_unsupported_shaders: crash on IDirect3DVertexShader9_Release
test_private_data: crash on IDirect3DSurface9_Release

test_resource_access, crash on IDirect3DDevice9_CreateCubeTexture

test_fvf_decl_management

device.c:110: Test failed: Test 11: Declaration does not match.

test_display_modes

device.c:2401: Test failed: EnumAdapterModes(D3DFMT_X1R5G5B5) did not return D3DERR_INVALIDCALL (got 00000000)!

test_refcount

0008:device: 147 tests executed (0 marked as todo, 22 failures), 0 skipped.

test_cursor_pos

device.c:5049: Test failed: Didn't receive MOUSEMOVE 5 (125, 125).

test_reset

device.c:2095: Test failed: Got unexpected BackBufferFormat 0x15, expected 0x16.
device.c:2101: Test failed: Got unexpected hDeviceWindow 0x10050.
device.c:2131: Test failed: Got unexpected BackBufferFormat 0x15, expected 0x16.
device.c:2157: Test failed: IDirect3DDevice9_Reset failed with 00000000
device.c:2159: Test failed: IDirect3DDevice9_TestCooperativeLevel after a failed reset returned 0
device.c:2175: Test failed: Reset returned 0, expected 0x8876086c.
device.c:2177: Test failed: TestCooperativeLevel returned 0, expected 0x88760869.
device.c:2284: Test failed: IDirect3DDevice9_Reset failed with 00000000
device.c:2286: Test failed: IDirect3DDevice9_TestCooperativeLevel after a failed reset returned 0

test_draw_primitive

0008:device: 75 tests executed (1 marked as todo, 9 failures), 0 skipped.

test_device_caps

device.c:12600: Test failed: SrcBlendCaps field has unexpected flags 0xffff.
device.c:12612: Test failed: DestBlendCaps field has unexpected flags 0xffff

test_display_formats

device.c:3376: Test failed: Got unexpected hr 0x8876086a for D3DFMT_R5G6B5 / D3DFMT_UNKNOWN, windowed 0x1, should_pass 0x1.
device.c:3376: Test failed: Got unexpected hr 0x8876086a for D3DFMT_X1R5G5B5 / D3DFMT_UNKNOWN, windowed 0x1, should_pass 0x1.
device.c:3376: Test failed: Got unexpected hr 0x8876086a for D3DFMT_X8R8G8B8 / D3DFMT_UNKNOWN, windowed 0x1, should_pass 0x1.

DRIPresent_GetDisplayMode maps bpp to D3DFMT_X8R8G8B8/D3DFMT_R8G8B8/D3DFMT_R5G6B5, so those should probably pass?