Module: wine Branch: master Commit: 0fbe23c13dedfcd335eab7a28cb7bb4ca12bfd9a URL: http://source.winehq.org/git/wine.git/?a=commit;h=0fbe23c13dedfcd335eab7a28c...
Author: Paul Vriens paul.vriens.wine@gmail.com Date: Fri Jun 20 15:43:59 2008 +0200
setupapi/tests: Skip all tests on Win9x and WinMe.
---
dlls/setupapi/tests/devinst.c | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/dlls/setupapi/tests/devinst.c b/dlls/setupapi/tests/devinst.c index 481eaa4..2a24891 100644 --- a/dlls/setupapi/tests/devinst.c +++ b/dlls/setupapi/tests/devinst.c @@ -1365,7 +1365,21 @@ static void testDeviceRegistryPropertyW()
START_TEST(devinst) { - init_function_pointers(); + HDEVINFO set; + + 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) test_SetupDiCreateDeviceInfoListEx(); @@ -1376,6 +1390,7 @@ START_TEST(devinst) test_SetupDiOpenClassRegKeyExA(); else skip("SetupDiOpenClassRegKeyExA is not available\n"); + testInstallClass(); testCreateDeviceInfo(); testGetDeviceInstanceId();