[PATCH 1/6] urlmon/tests: Expand framework to allow todo_wine'd tests and differences between Windows versions.

Alexandre Julliard julliard at winehq.org
Wed Jul 18 05:24:52 CDT 2007


Misha Koshelev <mk144210 at bcm.edu> writes:

>  #define CHECK_EXPECT(func) \
>      do { \
> -        ok(expect_ ##func, "unexpected call " #func "\n"); \
> -        expect_ ## func = FALSE; \
> +        if (!expect_ ##func && wine_allow_ ##func) \
> +        { \
> +            todo_wine ok(expect_ ##func, "unexpected call " #func "\n"); \
> +            wine_allow_ ##func = FALSE; \
> +        } \
> +        else \
> +        { \
> +            ok(expect_ ##func, "unexpected call " #func "\n");  \
> +            expect_ ## func = FALSE;                            \
> +        } \
>          called_ ## func = TRUE; \
>      }while(0)

This is becoming really ugly. You should fix this to use normal C code
instead of macros.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list