spice/server/tests/test_util.h
Alon Levy b88f233633 server/tests/basic_event_loop: multiple fixes
reuse common/ring.h
ignore SIGPIPE
fix handling of removed watches
2011-08-23 17:01:14 +03:00

13 lines
299 B
C

#ifndef __TEST_UTIL_H__
#define __TEST_UTIL_H__
#ifdef ASSERT
#undef ASSERT
#endif
#define ASSERT(x) if (!(x)) { \
printf("%s: ASSERT %s failed\n", __FUNCTION__, #x); \
abort(); \
}
#endif // __TEST_UTIL_H__