setupapi/tests: Skip all tests on Win9x and WinMe.
This commit is contained in:
parent
5191f0f2fd
commit
0fbe23c13d
|
@ -1365,8 +1365,22 @@ static void testDeviceRegistryPropertyW()
|
||||||
|
|
||||||
START_TEST(devinst)
|
START_TEST(devinst)
|
||||||
{
|
{
|
||||||
|
HDEVINFO set;
|
||||||
|
|
||||||
init_function_pointers();
|
init_function_pointers();
|
||||||
|
|
||||||
|
/* Win9x/WinMe does things totally different so we skip all the tests
|
||||||
|
*
|
||||||
|
* We don't want to exclude NT4 so hence this check.
|
||||||
|
*/
|
||||||
|
SetLastError(0xdeadbeef);
|
||||||
|
set = pSetupDiGetClassDevsW(NULL, NULL, 0, 0);
|
||||||
|
if (set == INVALID_HANDLE_VALUE && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
|
||||||
|
{
|
||||||
|
skip("Win9x/WinMe has totally different behavior\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (pSetupDiCreateDeviceInfoListExW && pSetupDiDestroyDeviceInfoList)
|
if (pSetupDiCreateDeviceInfoListExW && pSetupDiDestroyDeviceInfoList)
|
||||||
test_SetupDiCreateDeviceInfoListEx();
|
test_SetupDiCreateDeviceInfoListEx();
|
||||||
else
|
else
|
||||||
|
@ -1376,6 +1390,7 @@ START_TEST(devinst)
|
||||||
test_SetupDiOpenClassRegKeyExA();
|
test_SetupDiOpenClassRegKeyExA();
|
||||||
else
|
else
|
||||||
skip("SetupDiOpenClassRegKeyExA is not available\n");
|
skip("SetupDiOpenClassRegKeyExA is not available\n");
|
||||||
|
|
||||||
testInstallClass();
|
testInstallClass();
|
||||||
testCreateDeviceInfo();
|
testCreateDeviceInfo();
|
||||||
testGetDeviceInstanceId();
|
testGetDeviceInstanceId();
|
||||||
|
|
Loading…
Reference in New Issue