00001
00020
00021
00022 #define rtcom_fail_unless_strcmp(S1, OP, S2) \
00023 fail_unless((g_strcmp0((S1), (S2)) OP 0), \
00024 "Assertion '" #S1 " " #OP " " #S2 "' failed: " \
00025 "it's not true that %s " #OP " %s", \
00026 (S1) ? (S1) : "<NULL>", (S2) ? (S2) : "<NULL>")
00027
00028 #define rtcom_fail_unless_intcmp(N1, OP, N2) \
00029 fail_unless(((N1) OP (N2)), \
00030 "Assertion '" #N1 " " #OP " " #N2 "' failed: " \
00031 "it's not true that %i " #OP " %i", \
00032 (N1), (N2))
00033
00034 #define rtcom_fail_unless_uintcmp(N1, OP, N2) \
00035 fail_unless(((N1) OP (N2)), \
00036 "Assertion '" #N1 " " #OP " " #N2 "' failed: " \
00037 "it's not true that %u " #OP " %u", \
00038 (N1), (N2))