Hans Leidekker : advpack/tests: Skip inf install tests if the user doesn' t have admin rights.
Module: wine Branch: master Commit: ea7c86a715a25b779bd536976a1f0a78cf5b2962 URL: http://source.winehq.org/git/wine.git/?a=commit;h=ea7c86a715a25b779bd536976a... Author: Hans Leidekker <hans(a)codeweavers.com> Date: Mon Dec 19 11:38:49 2016 +0100 advpack/tests: Skip inf install tests if the user doesn't have admin rights. Signed-off-by: Hans Leidekker <hans(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/advpack/tests/advpack.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dlls/advpack/tests/advpack.c b/dlls/advpack/tests/advpack.c index f7ac66b..d595876 100644 --- a/dlls/advpack/tests/advpack.c +++ b/dlls/advpack/tests/advpack.c @@ -337,7 +337,7 @@ static void translateinfstringex_test(void) } create_inf_file(); - + /* need to see if there are any flags */ /* try a NULL filename */ @@ -424,6 +424,12 @@ static void translateinfstringex_test(void) /* open the inf with the install section */ hr = pOpenINFEngine(inf_file, "section", 0, &hinf, NULL); + if (hr == E_FAIL) + { + skip("can't open engine with install section (needs admin rights)\n"); + DeleteFileA(inf_file); + return; + } ok(hr == S_OK, "Expected S_OK, got %08x\n", hr); /* translate the string with the install section specified */
participants (1)
-
Alexandre Julliard