Commit b753979d authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠
Browse files

tests/check/: Add GST_OPTION_CFLAGS to CFLAGS when building unit tests, so the...

tests/check/: Add GST_OPTION_CFLAGS to CFLAGS when building unit tests, so the error flags are included and it errors...

Original commit message from CVS:
* tests/check/Makefile.am:
* tests/check/elements/audiopanorama.c: (GST_START_TEST):
* tests/check/elements/videocrop.c: (GST_START_TEST):
* tests/check/elements/videofilter.c:
* tests/check/elements/wavpackdec.c: (GST_START_TEST):
* tests/check/elements/wavpackparse.c: (GST_START_TEST):
Add GST_OPTION_CFLAGS to CFLAGS when building unit tests, so the
error flags are included and it errors out on compiler warnings
for CVS builds; remove unused variables in various unit tests.
parent ebce97ad
2007-06-19 Tim-Philipp Müller <tim at centricular dot net>
* tests/check/Makefile.am:
* tests/check/elements/audiopanorama.c: (GST_START_TEST):
* tests/check/elements/videocrop.c: (GST_START_TEST):
* tests/check/elements/videofilter.c:
* tests/check/elements/wavpackdec.c: (GST_START_TEST):
* tests/check/elements/wavpackparse.c: (GST_START_TEST):
Add GST_OPTION_CFLAGS to CFLAGS when building unit tests, so the
error flags are included and it errors out on compiler warnings
for CVS builds; remove unused variables in various unit tests.
2007-06-19 Wim Taymans <wim@fluendo.com>
* gst/rtsp/rtspconnection.c: (rtsp_connection_connect),
......
......@@ -77,7 +77,7 @@ TESTS = $(check_PROGRAMS)
noinst_PROGRAMS = \
elements/autodetect
AM_CFLAGS = $(GST_OBJ_CFLAGS) $(GST_CHECK_CFLAGS) $(CHECK_CFLAGS)
AM_CFLAGS = $(GST_OBJ_CFLAGS) $(GST_CHECK_CFLAGS) $(CHECK_CFLAGS) $(GST_OPTION_CFLAGS)
LDADD = $(GST_OBJ_LIBS) $(GST_CHECK_LIBS) $(CHECK_LIBS)
# valgrind testing
......
......@@ -620,7 +620,7 @@ GST_END_TEST;
GST_START_TEST (test_wrong_caps)
{
GstElement *panorama;
GstBuffer *inbuffer, *outbuffer;
GstBuffer *inbuffer;
gint16 in[2] = { 16384, -256 };
GstBus *bus;
GstMessage *message;
......
......@@ -74,7 +74,6 @@ GST_START_TEST (test_unit_sizes)
GstBaseTransformClass *csp_klass, *vcrop_klass;
GstElement *videocrop, *csp;
GList *caps_list, *l;
gint i;
videocrop = gst_element_factory_make ("videocrop", "videocrop");
fail_unless (videocrop != NULL, "Failed to create videocrop element");
......@@ -111,7 +110,6 @@ GST_START_TEST (test_unit_sizes)
for (i = 0; i < G_N_ELEMENTS (sizes_to_try); ++i) {
gchar *caps_str;
guint32 format = 0;
guint csp_size = 0;
guint vc_size = 0;
......
......@@ -79,7 +79,7 @@ cleanup_filter (GstElement * filter)
gst_check_teardown_element (filter);
}
static void
check_filter (const gchar * name, gint num_buffers, const gchar * prop, ...)
{
GstElement *filter;
......
......@@ -148,7 +148,7 @@ GST_END_TEST;
GST_START_TEST (test_decode_frame_with_broken_header)
{
GstElement *wavpackdec;
GstBuffer *inbuffer, *outbuffer;
GstBuffer *inbuffer;
GstBus *bus;
GstMessage *message;
......@@ -187,7 +187,7 @@ GST_END_TEST;
GST_START_TEST (test_decode_frame_with_incomplete_frame)
{
GstElement *wavpackdec;
GstBuffer *inbuffer, *outbuffer;
GstBuffer *inbuffer;
GstBus *bus;
GstMessage *message;
......
......@@ -214,8 +214,6 @@ GST_START_TEST (test_parsing_invalid_first_header)
{
GstBuffer *inbuffer, *outbuffer;
int i, num_buffers;
GstFormat format = GST_FORMAT_DEFAULT;
gint64 pos;
setup_wavpackparse ();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment