[2/3] msi/tests: Skip a test if the process is limited.

Austin English austinenglish at gmail.com
Wed Aug 24 03:26:48 CDT 2011


On Wed, Aug 24, 2011 at 03:22, Hans Leidekker <hans at codeweavers.com> wrote:
> ---
>  dlls/msi/tests/action.c |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/dlls/msi/tests/action.c b/dlls/msi/tests/action.c
> index aac601f..90832af 100644
> --- a/dlls/msi/tests/action.c
> +++ b/dlls/msi/tests/action.c
> @@ -4721,6 +4721,12 @@ static void test_create_remove_folder(void)
>  {
>     UINT r;
>
> +    if (is_process_limited())
> +    {
> +        skip("process is limited\n");
> +        return;
> +    }
> +
>     CreateDirectoryA("msitest", NULL);
>     CreateDirectoryA("msitest\\first", NULL);
>     CreateDirectoryA("msitest\\second", NULL);
> --
> 1.7.4.1

Shouldn't that be a win_skip()? Wine always runs as administrator, and
if the process is running as a limited user, something may be broken?
Unless you're preparing for when wine supports non-admin mode.. :)

-- 
-Austin



More information about the wine-devel mailing list