Module: wine Branch: master Commit: 162a40e1455725501e0f55c36fec2d32ecc612fa URL: http://source.winehq.org/git/wine.git/?a=commit;h=162a40e1455725501e0f55c36f...
Author: Hans Leidekker hans@codeweavers.com Date: Mon Dec 19 11:38:52 2016 +0100
setupapi/tests: Skip devinst tests if the user doesn't have admin rights.
Signed-off-by: Hans Leidekker hans@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/setupapi/tests/devinst.c | 9 +++++++++ 1 file changed, 9 insertions(+)
diff --git a/dlls/setupapi/tests/devinst.c b/dlls/setupapi/tests/devinst.c index c8452d6..6ca0e92 100644 --- a/dlls/setupapi/tests/devinst.c +++ b/dlls/setupapi/tests/devinst.c @@ -1349,8 +1349,17 @@ static void testSetupDiGetINFClassA(void)
START_TEST(devinst) { + HKEY hkey; + init_function_pointers();
+ if ((hkey = SetupDiOpenClassRegKey(NULL, KEY_ALL_ACCESS)) == INVALID_HANDLE_VALUE) + { + skip("needs admin rights\n"); + return; + } + RegCloseKey(hkey); + if (pIsWow64Process) pIsWow64Process(GetCurrentProcess(), &is_wow64);