Re: [3/3] d3dx9: Test the return codes of the D3DXGetImageInfo functions
Tony Wasserka <tony.wasserka(a)freenet.de> writes:
+ /* D3DXGetImageInfoFromFile */ + todo_wine { + hr = D3DXGetImageInfoFromFileA("bmp1x1.bmp", &info); + ok(hr == D3D_OK, "D3DXGetImageInfoFromFile returned %#x, expected %#x\n", hr, D3D_OK); + } + + hr = D3DXGetImageInfoFromFileA("bmp1x1.bmp", NULL); + ok(hr == D3D_OK, "D3DXGetImageInfoFromFile returned %#x, expected %#x\n", hr, D3D_OK); + + hr = D3DXGetImageInfoFromFileA("testdummy.bmp", NULL); /* existing file which is not a valid image, second parameter NULL */ + ok(hr == D3D_OK, "D3DXGetImageInfoFromFile returned %#x, expected %#x\n", hr, D3D_OK);
You can't depend on external files in tests, you have to create them yourself at run-time. -- Alexandre Julliard julliard(a)winehq.org
participants (1)
-
Alexandre Julliard