diff options
author | Martyn Russell <martyn@lanedo.com> | 2014-07-28 09:49:55 +0100 |
---|---|---|
committer | Martyn Russell <martyn@lanedo.com> | 2014-07-28 09:49:55 +0100 |
commit | ce504e0ec4b0c6e13e145f1b10ada7a7b328d812 (patch) | |
tree | a1bd3f234c1de9f89f6b52f26e0f56cb22d8a20b /tests | |
parent | 4e1aa7895d92d5460a8329e5f8c6bac0aeb3d186 (diff) | |
download | libmediaart-ce504e0ec4b0c6e13e145f1b10ada7a7b328d812.tar.gz |
build: Fixed distcheck issues
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 4 | ||||
-rw-r--r-- | tests/cover.png | bin | 0 -> 1560 bytes | |||
-rw-r--r-- | 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 Binary files differnew file mode 100644 index 0000000..b5261a7 --- /dev/null +++ b/tests/cover.png 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); |