+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.
$(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)
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);
$(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)
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);