[3/3] d3dx9: Test the return codes of the D3DXGetImageInfo functions
Alexandre Julliard
julliard at winehq.org
Tue Jun 2 05:03:52 CDT 2009
Tony Wasserka <tony.wasserka at 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 at winehq.org
More information about the wine-devel
mailing list