curl*sink: improve return value checks in test cases

https://bugzilla.gnome.org/show_bug.cgi?id=728960
This commit is contained in:
Sebastian Rasmussen 2014-04-22 22:26:56 +02:00 committed by Sebastian Dröge
parent da987a3219
commit 54d160be5f
5 changed files with 7 additions and 7 deletions

View file

@ -22,7 +22,7 @@ setup_curlfilesink (void)
GST_DEBUG ("setup_curlfilesink");
sink = gst_check_setup_element ("curlfilesink");
srcpad = gst_check_setup_src_pad (sink, &srctemplate);
gst_pad_set_active (srcpad, TRUE);
fail_unless (gst_pad_set_active (srcpad, TRUE));
return sink;
}
@ -74,7 +74,7 @@ test_set_and_play_buffer (const gchar * _data)
gst_memory_new_wrapped (GST_MEMORY_FLAG_READONLY,
data, num_bytes, 0, num_bytes, data, NULL));
fail_unless (gst_pad_push (srcpad, buffer) == GST_FLOW_OK);
fail_unless_equals_int (gst_pad_push (srcpad, buffer), GST_FLOW_OK);
}
static void
@ -90,7 +90,7 @@ test_set_and_fail_to_play_buffer (const gchar * _data)
gst_memory_new_wrapped (GST_MEMORY_FLAG_READONLY,
data, num_bytes, 0, num_bytes, data, NULL));
fail_unless (gst_pad_push (srcpad, buffer) == GST_FLOW_ERROR);
fail_unless_equals_int (gst_pad_push (srcpad, buffer), GST_FLOW_ERROR);
}
GST_START_TEST (test_properties)

View file

@ -21,7 +21,7 @@ setup_curlftpsink (void)
GST_DEBUG ("setup_curlftpsink");
sink = gst_check_setup_element ("curlftpsink");
srcpad = gst_check_setup_src_pad (sink, &srctemplate);
gst_pad_set_active (srcpad, TRUE);
fail_unless (gst_pad_set_active (srcpad, TRUE));
return sink;
}

View file

@ -21,7 +21,7 @@ setup_curlhttpsink (void)
GST_DEBUG ("setup_curlhttpsink");
sink = gst_check_setup_element ("curlhttpsink");
srcpad = gst_check_setup_src_pad (sink, &srctemplate);
gst_pad_set_active (srcpad, TRUE);
fail_unless (gst_pad_set_active (srcpad, TRUE));
return sink;
}

View file

@ -21,7 +21,7 @@ setup_curlsftpsink (void)
GST_DEBUG ("setup_curlsftpsink");
sink = gst_check_setup_element ("curlsftpsink");
srcpad = gst_check_setup_src_pad (sink, &srctemplate);
gst_pad_set_active (srcpad, TRUE);
fail_unless (gst_pad_set_active (srcpad, TRUE));
return sink;
}

View file

@ -21,7 +21,7 @@ setup_curlsmtpsink (void)
GST_DEBUG ("setup_curlsmtpsink");
sink = gst_check_setup_element ("curlsmtpsink");
srcpad = gst_check_setup_src_pad (sink, &srctemplate);
gst_pad_set_active (srcpad, TRUE);
fail_unless (gst_pad_set_active (srcpad, TRUE));
return sink;
}