[Telepathy-commits] [telepathy-glib/master] myassert.h: reimplement NIH'd versions of g_assert_cmp* in terms of the real things
Simon McVittie
simon.mcvittie at collabora.co.uk
Tue Mar 17 07:18:53 PDT 2009
---
tests/lib/myassert.h | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/tests/lib/myassert.h b/tests/lib/myassert.h
index f9f8f81..2ec75e4 100644
--- a/tests/lib/myassert.h
+++ b/tests/lib/myassert.h
@@ -34,10 +34,9 @@
} G_STMT_END
#define MYASSERT_SAME_STRING(left, right) \
- MYASSERT (!tp_strdiff ((left), (right)), ": \"%s\" != \"%s\"", \
- (left), (right))
+ g_assert_cmpstr ((left), ==, (right));
#define MYASSERT_SAME_UINT(left, right) \
- MYASSERT ((left) == (right), ": %u != %u", (left), (right))
+ g_assert_cmpuint ((left), ==, (right))
#endif
--
1.5.6.5
More information about the telepathy-commits
mailing list