dinput/tests: Don't treat old dinput versions as an error.

This commit is contained in:
Paul Vriens 2008-03-07 20:26:57 +01:00 committed by Alexandre Julliard
parent ee69858ebe
commit a85c7594dc
3 changed files with 15 additions and 0 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;