summaryrefslogtreecommitdiffstats
path: root/tests/check/elements/id3demux.c
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2009-05-15 17:11:27 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2009-05-15 17:17:20 +0100
commitc014c4a621e1119ef8e2ca564de97878529b7197 (patch)
tree1d46c03f2b0e4a79d0806c116a578d905a05d3e5 /tests/check/elements/id3demux.c
parentad9b02b881e2f6dca0133a4831ee640d92701f41 (diff)
checks: move files required by unit tests into tests/files and make sure they're disted
Move unit test data into the directory where it belongs and make in particular the flacdec unit test cd into the directory with the test files instead of making assumptions about the current working directory in that unit test. As a side effect of movng those files, there's only one EXTRA_DIST in tests/check/Makefile.am now, which is likely to work better than having two. Hopefully fixes #582753.
Diffstat (limited to 'tests/check/elements/id3demux.c')
-rw-r--r--tests/check/elements/id3demux.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/check/elements/id3demux.c b/tests/check/elements/id3demux.c
index a3eb77b4..ef1d4538 100644
--- a/tests/check/elements/id3demux.c
+++ b/tests/check/elements/id3demux.c
@@ -59,7 +59,6 @@ read_tags_from_file (const gchar * file, gboolean push_mode)
GstMessage *msg;
GstElement *src, *sep, *sink, *id3demux, *pipeline;
GstBus *bus;
- const gchar *dir;
gchar *path;
pipeline = gst_pipeline_new ("pipeline");
@@ -96,10 +95,7 @@ read_tags_from_file (const gchar * file, gboolean push_mode)
/* can't link id3demux and sink yet, do that later */
g_signal_connect (id3demux, "pad-added", G_CALLBACK (pad_added_cb), pipeline);
- dir = g_getenv ("GST_TEST_FILES_PATH");
- fail_unless (dir != NULL, "GST_TEST_FILES_PATH environment variable not set");
-
- path = g_build_filename (dir, file, NULL);
+ path = g_build_filename (GST_TEST_FILES_PATH, file, NULL);
GST_LOG ("reading file '%s'", path);
g_object_set (src, "location", path, NULL);