mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
tests: Remove checks for deprecated flow check macros
GST_FLOW_IS_FATAL() and GST_FLOW_IS_SUCCESS() are deprecated, so aren't available for the testsuite any more.
This commit is contained in:
parent
c857047be7
commit
519e08c37f
1 changed files with 0 additions and 14 deletions
|
@ -487,53 +487,39 @@ GST_START_TEST (test_flowreturn)
|
|||
|
||||
/* test some of the macros */
|
||||
ret = GST_FLOW_UNEXPECTED;
|
||||
fail_unless (GST_FLOW_IS_FATAL (ret));
|
||||
fail_if (GST_FLOW_IS_SUCCESS (ret));
|
||||
fail_if (strcmp (gst_flow_get_name (ret), "unexpected"));
|
||||
quark = gst_flow_to_quark (ret);
|
||||
fail_if (strcmp (g_quark_to_string (quark), "unexpected"));
|
||||
|
||||
ret = GST_FLOW_RESEND;
|
||||
fail_if (GST_FLOW_IS_FATAL (ret));
|
||||
fail_unless (GST_FLOW_IS_SUCCESS (ret));
|
||||
fail_if (strcmp (gst_flow_get_name (ret), "resend"));
|
||||
quark = gst_flow_to_quark (ret);
|
||||
fail_if (strcmp (g_quark_to_string (quark), "resend"));
|
||||
|
||||
/* custom returns */
|
||||
ret = GST_FLOW_CUSTOM_SUCCESS;
|
||||
fail_if (GST_FLOW_IS_FATAL (ret));
|
||||
fail_unless (GST_FLOW_IS_SUCCESS (ret));
|
||||
fail_if (strcmp (gst_flow_get_name (ret), "custom-success"));
|
||||
quark = gst_flow_to_quark (ret);
|
||||
fail_if (strcmp (g_quark_to_string (quark), "custom-success"));
|
||||
|
||||
ret = GST_FLOW_CUSTOM_ERROR;
|
||||
fail_unless (GST_FLOW_IS_FATAL (ret));
|
||||
fail_if (GST_FLOW_IS_SUCCESS (ret));
|
||||
fail_if (strcmp (gst_flow_get_name (ret), "custom-error"));
|
||||
quark = gst_flow_to_quark (ret);
|
||||
fail_if (strcmp (g_quark_to_string (quark), "custom-error"));
|
||||
|
||||
/* custom returns clamping */
|
||||
ret = GST_FLOW_CUSTOM_SUCCESS + 2;
|
||||
fail_if (GST_FLOW_IS_FATAL (ret));
|
||||
fail_unless (GST_FLOW_IS_SUCCESS (ret));
|
||||
fail_if (strcmp (gst_flow_get_name (ret), "custom-success"));
|
||||
quark = gst_flow_to_quark (ret);
|
||||
fail_if (strcmp (g_quark_to_string (quark), "custom-success"));
|
||||
|
||||
ret = GST_FLOW_CUSTOM_ERROR - 2;
|
||||
fail_unless (GST_FLOW_IS_FATAL (ret));
|
||||
fail_if (GST_FLOW_IS_SUCCESS (ret));
|
||||
fail_if (strcmp (gst_flow_get_name (ret), "custom-error"));
|
||||
quark = gst_flow_to_quark (ret);
|
||||
fail_if (strcmp (g_quark_to_string (quark), "custom-error"));
|
||||
|
||||
/* unknown values */
|
||||
ret = GST_FLOW_CUSTOM_ERROR + 2;
|
||||
fail_unless (GST_FLOW_IS_FATAL (ret));
|
||||
fail_if (GST_FLOW_IS_SUCCESS (ret));
|
||||
fail_if (strcmp (gst_flow_get_name (ret), "unknown"));
|
||||
quark = gst_flow_to_quark (ret);
|
||||
fail_unless (quark == 0);
|
||||
|
|
Loading…
Reference in a new issue