test-utils: Add some more utilities

This commit is contained in:
Thibault Saunier 2012-12-01 13:56:37 -03:00
parent 8b7b98a871
commit 7c3b587015

View file

@ -56,4 +56,14 @@ gchar * ges_test_file_uri (const gchar *filename);
assert_equals_int (pact, active); \
}
/* copied from gnl */
#define fail_error_message(msg) \
G_STMT_START { \
GError *error; \
gst_message_parse_error(msg, &error, NULL); \
fail_unless(FALSE, "Error Message from %s : %s", \
GST_OBJECT_NAME (GST_MESSAGE_SRC(msg)), error->message); \
g_error_free (error); \
} G_STMT_END;
#endif /* _GES_TEST_UTILS */