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

Alon Levy alevy at redhat.com
Tue Jul 19 01:53:03 PDT 2011


---
 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();                                                \
-- 
1.7.6



More information about the Spice-devel mailing list