Commit 6710452e authored by Jan Schmidt's avatar Jan Schmidt

check/: Use a cmdline define to specify the location of a file to use for...

check/: Use a cmdline define to specify the location of a file to use for testing, to avoid breaking distcheck.

Original commit message from CVS:
* check/Makefile.am:
* check/elements/fdsrc.c: (GST_START_TEST):
Use a cmdline define to specify the location of a file to use for
testing, to avoid breaking distcheck.
parent 3cf09efb
2005-11-28 Jan Schmidt <thaytan@mad.scientist.com>
* check/Makefile.am:
* check/elements/fdsrc.c: (GST_START_TEST):
Use a cmdline define to specify the location of a file to use for
testing, to avoid breaking distcheck.
2005-11-28 Andy Wingo <wingo@pobox.com>
* gst/gstpad.c (fixate_value): Use array functions for arrays.
......
......@@ -76,6 +76,8 @@ gst_libs_gdp_SOURCES = \
$(top_srcdir)/libs/gst/dataprotocol/dataprotocol.c
gst_libs_gdp_CFLAGS = $(AM_CFLAGS)
elements_fdsrc_CFLAGS=$(GST_OBJ_CFLAGS) $(CHECK_CFLAGS) -DTESTFILE=\"$(top_builddir)/configure.ac\"
gst_libs_controller_LDADD = \
$(top_builddir)/libs/gst/controller/libgstcontroller-@GST_MAJORMINOR@.la \
$(LDADD)
......
......@@ -150,7 +150,10 @@ GST_START_TEST (test_seeking)
GstQuery *seeking_query;
gboolean seekable;
fail_if ((in_fd = open ("elements/fdsrc.c", O_RDONLY)) < 0);
#ifndef TESTFILE
#error TESTFILE not defined
#endif
fail_if ((in_fd = open (TESTFILE, O_RDONLY)) < 0);
src = setup_fdsrc ();
g_object_set (G_OBJECT (src), "fd", in_fd, NULL);
......
......@@ -76,6 +76,8 @@ gst_libs_gdp_SOURCES = \
$(top_srcdir)/libs/gst/dataprotocol/dataprotocol.c
gst_libs_gdp_CFLAGS = $(AM_CFLAGS)
elements_fdsrc_CFLAGS=$(GST_OBJ_CFLAGS) $(CHECK_CFLAGS) -DTESTFILE=\"$(top_builddir)/configure.ac\"
gst_libs_controller_LDADD = \
$(top_builddir)/libs/gst/controller/libgstcontroller-@GST_MAJORMINOR@.la \
$(LDADD)
......
......@@ -150,7 +150,10 @@ GST_START_TEST (test_seeking)
GstQuery *seeking_query;
gboolean seekable;
fail_if ((in_fd = open ("elements/fdsrc.c", O_RDONLY)) < 0);
#ifndef TESTFILE
#error TESTFILE not defined
#endif
fail_if ((in_fd = open (TESTFILE, O_RDONLY)) < 0);
src = setup_fdsrc ();
g_object_set (G_OBJECT (src), "fd", in_fd, NULL);
......
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