dinput/tests: Don't treat old dinput versions as an error.
This commit is contained in:
parent
ee69858ebe
commit
a85c7594dc
|
@ -144,6 +144,11 @@ static void device_tests(void)
|
|||
struct enum_data data;
|
||||
|
||||
hr = DirectInputCreate(hInstance, DIRECTINPUT_VERSION, &pDI, NULL);
|
||||
if (hr == DIERR_OLDDIRECTINPUTVERSION)
|
||||
{
|
||||
skip("Tests require a newer dinput version\n");
|
||||
return;
|
||||
}
|
||||
ok(SUCCEEDED(hr), "DirectInputCreate() failed: %s\n", DXGetErrorString8(hr));
|
||||
if (FAILED(hr)) return;
|
||||
|
||||
|
|
|
@ -143,6 +143,11 @@ static void keyboard_tests(DWORD version)
|
|||
ULONG ref = 0;
|
||||
|
||||
hr = DirectInputCreate(hInstance, version, &pDI, NULL);
|
||||
if (hr == DIERR_OLDDIRECTINPUTVERSION)
|
||||
{
|
||||
skip("Tests require a newer dinput version\n");
|
||||
return;
|
||||
}
|
||||
ok(SUCCEEDED(hr), "DirectInputCreate() failed: %s\n", DXGetErrorString8(hr));
|
||||
if (FAILED(hr)) return;
|
||||
|
||||
|
|
|
@ -118,6 +118,11 @@ static void mouse_tests(void)
|
|||
ULONG ref = 0;
|
||||
|
||||
hr = DirectInputCreate(hInstance, DIRECTINPUT_VERSION, &pDI, NULL);
|
||||
if (hr == DIERR_OLDDIRECTINPUTVERSION)
|
||||
{
|
||||
skip("Tests require a newer dinput version\n");
|
||||
return;
|
||||
}
|
||||
ok(SUCCEEDED(hr), "DirectInputCreate() failed: %s\n", DXGetErrorString8(hr));
|
||||
if (FAILED(hr)) return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue