=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: tests: Add more tests for D3D12CreateDevice() with device set to NULL.

Alexandre Julliard julliard at winehq.org
Fri Jul 20 11:41:38 CDT 2018


Module: vkd3d
Branch: master
Commit: 21f1489b8879da12d3dd53b5514324b7fbe8dcc2
URL:    https://source.winehq.org/git/vkd3d.git/?a=commit;h=21f1489b8879da12d3dd53b5514324b7fbe8dcc2

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Fri Jul 20 14:30:13 2018 +0200

tests: Add more tests for D3D12CreateDevice() with device set to NULL.

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>

---

 tests/d3d12.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/d3d12.c b/tests/d3d12.c
index e2337c4..83dc8f9 100644
--- a/tests/d3d12.c
+++ b/tests/d3d12.c
@@ -1082,6 +1082,10 @@ static void test_create_device(void)
 
     hr = D3D12CreateDevice(NULL, D3D_FEATURE_LEVEL_11_0, &IID_ID3D12Device, NULL);
     ok(hr == S_FALSE, "Got unexpected hr %#x.\n", hr);
+    hr = D3D12CreateDevice(NULL, D3D_FEATURE_LEVEL_11_0, NULL, NULL);
+    ok(hr == S_FALSE, "Got unexpected hr %#x.\n", hr);
+    hr = D3D12CreateDevice(NULL, D3D_FEATURE_LEVEL_11_0, &IID_ID3D12DeviceChild, NULL);
+    ok(hr == S_FALSE, "Got unexpected hr %#x.\n", hr);
 
     hr = D3D12CreateDevice(NULL, D3D_FEATURE_LEVEL_9_1, &IID_ID3D12Device, (void **)&device);
     ok(hr == E_INVALIDARG, "Got unexpected hr %#x.\n", hr);




More information about the wine-cvs mailing list