Tony Wasserka tony.wasserka@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.