d3dx9_36/tests: Remove code to skip test which should never fail.

This commit is contained in:
Sebastian Lackner 2014-11-05 18:50:45 +01:00 committed by Alexandre Julliard
parent b8814764aa
commit fc0392a24e
1 changed files with 1 additions and 8 deletions

View File

@ -2579,24 +2579,17 @@ static void D3DXCreateBoxTest(void)
hr = D3DXCreateBox(device,10.9f,20.0f,4.9f,&box, &ppBuffer);
ok(hr==D3D_OK, "Expected D3D_OK, received %#x\n", hr);
if (FAILED(hr))
{
skip("D3DXCreateBox failed\n");
goto end;
}
buffer = ID3DXBuffer_GetBufferPointer(ppBuffer);
for(i=0; i<36; i++)
ok(adjacency[i]==buffer[i], "expected adjacency %d: %#x, received %#x\n",i,adjacency[i], buffer[i]);
box->lpVtbl->Release(box);
ID3DXBuffer_Release(ppBuffer);
test_box(device, 10.9f, 20.0f, 4.9f);
end:
IDirect3DDevice9_Release(device);
IDirect3D9_Release(d3d);
if (ppBuffer) ID3DXBuffer_Release(ppBuffer);
DestroyWindow(wnd);
}