summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2006-12-30 12:44:01 +0000
committerTim-Philipp Müller <tim@centricular.net>2006-12-30 12:44:01 +0000
commit7d3790ac1d01e814de01fe261bd86015bd832319 (patch)
treede705d60e9bdc2e9ea45b480eb6940ad1120987d
parent983cd81f2cea48f64b53f461e189686ab088ac9b (diff)
downloadgst-plugins-bad-7d3790ac1d01e814de01fe261bd86015bd832319.tar.gz
gst-plugins-bad-7d3790ac1d01e814de01fe261bd86015bd832319.tar.bz2
gst-plugins-bad-7d3790ac1d01e814de01fe261bd86015bd832319.zip
tests/check/elements/videocrop.c: When we can't create an element needed for the test, print a message detailing whic...
Original commit message from CVS: * tests/check/elements/videocrop.c: (GST_START_TEST), (videocrop_test_cropping_init_context): When we can't create an element needed for the test, print a message detailing which element it actually is that's missing (#390673).
-rw-r--r--ChangeLog7
-rw-r--r--tests/check/elements/videocrop.c12
2 files changed, 13 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 79a5199b..3e6f1b2f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-12-30 Tim-Philipp Müller <tim at centricular dot net>
+
+ * tests/check/elements/videocrop.c: (GST_START_TEST),
+ (videocrop_test_cropping_init_context):
+ When we can't create an element needed for the test, print a message
+ detailing which element it actually is that's missing (#390673).
+
2006-12-22 Edgard Lima <edgard.lima@indt.org.br>
* ext/neon/gstneonhttpsrc.c:
diff --git a/tests/check/elements/videocrop.c b/tests/check/elements/videocrop.c
index fe30347f..25cc00a9 100644
--- a/tests/check/elements/videocrop.c
+++ b/tests/check/elements/videocrop.c
@@ -77,11 +77,11 @@ GST_START_TEST (test_unit_sizes)
gint i;
videocrop = gst_element_factory_make ("videocrop", "videocrop");
- fail_unless (videocrop != NULL);
+ fail_unless (videocrop != NULL, "Failed to create videocrop element");
vcrop_klass = GST_BASE_TRANSFORM_GET_CLASS (videocrop);
csp = gst_element_factory_make ("ffmpegcolorspace", "csp");
- fail_unless (csp != NULL);
+ fail_unless (csp != NULL, "Failed to create ffmpegcolorspace element");
csp_klass = GST_BASE_TRANSFORM_GET_CLASS (csp);
caps_list = video_crop_get_test_caps (videocrop);
@@ -176,13 +176,13 @@ videocrop_test_cropping_init_context (GstVideoCropTestContext * ctx)
ctx->pipeline = gst_pipeline_new ("pipeline");
fail_unless (ctx->pipeline != NULL);
ctx->src = gst_element_factory_make ("videotestsrc", "src");
- fail_unless (ctx->src != NULL);
+ fail_unless (ctx->src != NULL, "Failed to create videotestsrc element");
ctx->filter = gst_element_factory_make ("capsfilter", "filter");
- fail_unless (ctx->filter != NULL);
+ fail_unless (ctx->filter != NULL, "Failed to create capsfilter element");
ctx->crop = gst_element_factory_make ("videocrop", "crop");
- fail_unless (ctx->crop != NULL);
+ fail_unless (ctx->crop != NULL, "Failed to create videocrop element");
ctx->sink = gst_element_factory_make ("fakesink", "sink");
- fail_unless (ctx->sink != NULL);
+ fail_unless (ctx->sink != NULL, "Failed to create fakesink element");
gst_bin_add_many (GST_BIN (ctx->pipeline), ctx->src, ctx->filter,
ctx->crop, ctx->sink, NULL);