=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: dxgi/tests: Remove test_device_interfaces().
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Oct 22 10:22:07 CDT 2015
Module: wine
Branch: master
Commit: 6a508f26d10c228ab7cc83080358284909c257fb
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6a508f26d10c228ab7cc83080358284909c257fb
Author: Józef Kucia <jkucia at codeweavers.com>
Date: Thu Oct 22 01:52:27 2015 +0200
dxgi/tests: Remove test_device_interfaces().
This test duplicates test_device_interfaces() in d3d10/tests.
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dxgi/tests/device.c | 48 ------------------------------------------------
1 file changed, 48 deletions(-)
diff --git a/dlls/dxgi/tests/device.c b/dlls/dxgi/tests/device.c
index ea4e7b3..9e676b9 100644
--- a/dlls/dxgi/tests/device.c
+++ b/dlls/dxgi/tests/device.c
@@ -54,53 +54,6 @@ success:
return dxgi_device;
}
-static void test_device_interfaces(void)
-{
- IDXGIDevice *device;
- IUnknown *iface;
- ULONG refcount;
- HRESULT hr;
-
- if (!(device = create_device()))
- {
- skip("Failed to create device, skipping tests.\n");
- return;
- }
-
- hr = IDXGIDevice_QueryInterface(device, &IID_IUnknown, (void **)&iface);
- ok(SUCCEEDED(hr), "Failed to query IUnknown interface, hr %#x.\n", hr);
- IUnknown_Release(iface);
-
- hr = IDXGIDevice_QueryInterface(device, &IID_IDXGIObject, (void **)&iface);
- ok(SUCCEEDED(hr), "Failed to query IDXGIObject interface, hr %#x.\n", hr);
- IUnknown_Release(iface);
-
- hr = IDXGIDevice_QueryInterface(device, &IID_IDXGIDevice, (void **)&iface);
- ok(SUCCEEDED(hr), "Failed to query IDXGIDevice interface, hr %#x.\n", hr);
- IUnknown_Release(iface);
-
- hr = IDXGIDevice_QueryInterface(device, &IID_ID3D10Device, (void **)&iface);
- ok(SUCCEEDED(hr), "Failed to query ID3D10Device interface, hr %#x.\n", hr);
- IUnknown_Release(iface);
-
- hr = IDXGIDevice_QueryInterface(device, &IID_ID3D10Multithread, (void **)&iface);
- ok(SUCCEEDED(hr), "Failed to query ID3D10Multithread interface, hr %#x.\n", hr);
- IUnknown_Release(iface);
-
- if (SUCCEEDED(hr = IDXGIDevice_QueryInterface(device, &IID_ID3D10Device1, (void **)&iface)))
- IUnknown_Release(iface);
- ok(SUCCEEDED(hr) || broken(hr == E_NOINTERFACE) /* Not available on all Windows versions. */,
- "Failed to query ID3D10Device1 interface, hr %#x.\n", hr);
-
- if (SUCCEEDED(hr = IDXGIDevice_QueryInterface(device, &IID_ID3D11Device, (void **)&iface)))
- IUnknown_Release(iface);
- ok(SUCCEEDED(hr) || broken(hr == E_NOINTERFACE) /* Not available on all Windows versions. */,
- "Failed to query ID3D11Device interface, hr %#x.\n", hr);
-
- refcount = IDXGIDevice_Release(device);
- ok(!refcount, "Device has %u references left.\n", refcount);
-}
-
static void test_adapter_desc(void)
{
DXGI_ADAPTER_DESC1 desc1;
@@ -1270,7 +1223,6 @@ START_TEST(device)
test_adapter_desc();
test_check_interface_support();
- test_device_interfaces();
test_create_surface();
test_parents();
test_output();
More information about the wine-cvs
mailing list