mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
test-utils: Add some more utilities
This commit is contained in:
parent
8b7b98a871
commit
7c3b587015
1 changed files with 10 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue