mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
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.
This commit is contained in:
parent
3cf09efb92
commit
6710452e44
5 changed files with 19 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
|||
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);
|
||||
|
|
Loading…
Reference in a new issue