[libmediaart] build: Fixed distcheck issues
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libmediaart] build: Fixed distcheck issues
- Date: Mon, 28 Jul 2014 08:51:06 +0000 (UTC)
commit ce504e0ec4b0c6e13e145f1b10ada7a7b328d812
Author: Martyn Russell <martyn lanedo com>
Date: Mon Jul 28 09:49:55 2014 +0100
build: Fixed distcheck issues
tests/Makefile.am | 4 ++++
tests/cover.png | Bin 0 -> 1560 bytes
tests/mediaarttest.c | 12 ++++--------
3 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index cb487dc..dedca14 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -17,3 +17,7 @@ LDADD = \
$(LIBMEDIAART_LIBS)
mediaarttest = mediaarttest.c
+
+EXTRA_DIST = \
+ 543249_King-Kilo---Radium.mp3 \
+ cover.png
diff --git a/tests/cover.png b/tests/cover.png
new file mode 100644
index 0000000..b5261a7
Binary files /dev/null and b/tests/cover.png differ
diff --git a/tests/mediaarttest.c b/tests/mediaarttest.c
index 09cc1ae..dc1806b 100644
--- a/tests/mediaarttest.c
+++ b/tests/mediaarttest.c
@@ -201,11 +201,10 @@ test_mediaart_embedded_mp3 (void)
MediaArtProcess *process;
GError *error = NULL;
GFile *file = NULL;
- gchar *dir, *path;
+ gchar *path;
gboolean retval;
- dir = g_get_current_dir ();
- path = g_build_filename (G_DIR_SEPARATOR_S, dir, "543249_King-Kilo---Radium.mp3", NULL);
+ path = g_build_filename (G_DIR_SEPARATOR_S, TOP_SRCDIR, "tests", "543249_King-Kilo---Radium.mp3",
NULL);
file = g_file_new_for_path (path);
g_free (path);
@@ -224,7 +223,6 @@ test_mediaart_embedded_mp3 (void)
g_assert_true (retval);
g_object_unref (file);
- g_free (dir);
g_object_unref (process);
}
@@ -235,16 +233,14 @@ test_mediaart_process_buffer (void)
MediaArtProcess *process;
GError *error = NULL;
GFile *file = NULL;
- gchar *dir, *path;
+ gchar *path;
gchar *out_path = NULL;
gchar *out_uri = NULL;
gchar *expected;
gboolean retval;
- dir = g_get_current_dir ();
- path = g_build_filename (G_DIR_SEPARATOR_S, dir, "cover.png", NULL);
+ path = g_build_filename (G_DIR_SEPARATOR_S, TOP_SRCDIR, "tests", "cover.png", NULL);
file = g_file_new_for_path (path);
- g_free (dir);
process = media_art_process_new (&error);
g_assert_no_error (error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]