[Spice-devel] [PATCH v5 9/9] server/tests: test_util.h: fix double ASSERT definition

Christophe Fergeau cfergeau at redhat.com
Tue Jul 19 02:18:39 PDT 2011


On Tue, Jul 19, 2011 at 11:53:03AM +0300, Alon Levy wrote:
> ---
>  server/tests/test_util.h |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/server/tests/test_util.h b/server/tests/test_util.h
> index ac1442d..9844426 100644
> --- a/server/tests/test_util.h
> +++ b/server/tests/test_util.h
> @@ -4,6 +4,9 @@
>  #define TRUE 1
>  #define FALSE 0
>  
> +#ifdef ASSERT
> +#undef ASSERT
> +#endif
>  #define ASSERT(x) if (!(x)) {                               \
>      printf("%s: ASSERT %s failed\n", __FUNCTION__, #x);     \
>      abort();                                                \

Can't the definition be removed from here?

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20110719/8af3b90d/attachment.pgp>


More information about the Spice-devel mailing list