Commit 894ef070 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

d3d11/tests: Port test_device_removed_reason() from d3d10core.

parent 30fe1614
......@@ -1612,6 +1612,27 @@ static void test_create_rasterizer_state(void)
ok(!refcount, "Device has %u references left.\n", refcount);
}
static void test_device_removed_reason(void)
{
ID3D11Device *device;
ULONG refcount;
HRESULT hr;
if (!(device = create_device(NULL)))
{
skip("Failed to create device.\n");
return;
}
hr = ID3D11Device_GetDeviceRemovedReason(device);
ok(hr == S_OK, "Got unexpected hr %#x.\n", hr);
hr = ID3D11Device_GetDeviceRemovedReason(device);
ok(hr == S_OK, "Got unexpected hr %#x.\n", hr);
refcount = ID3D11Device_Release(device);
ok(!refcount, "Device has %u references left.\n", refcount);
}
START_TEST(d3d11)
{
test_create_device();
......@@ -1628,4 +1649,5 @@ START_TEST(d3d11)
test_create_shader();
test_create_depthstencil_state();
test_create_rasterizer_state();
test_device_removed_reason();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment