aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_queue_priority.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-08-25 10:24:34 +0200
committerMax Kellermann <max@duempel.org>2012-08-25 10:24:34 +0200
commit488c1eb87b1b484da67ea0ccbb360bf1a6968003 (patch)
tree4a7d600e8e807882a957e978b79b338b87681326 /test/test_queue_priority.c
parente8df7e8da5a075178224b130c0602b62c85508a9 (diff)
downloadmpd-488c1eb87b1b484da67ea0ccbb360bf1a6968003.tar.gz
mpd-488c1eb87b1b484da67ea0ccbb360bf1a6968003.tar.xz
mpd-488c1eb87b1b484da67ea0ccbb360bf1a6968003.zip
test/test_queue_priority: fix SIGABRT
Diffstat (limited to 'test/test_queue_priority.c')
-rw-r--r--test/test_queue_priority.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/test_queue_priority.c b/test/test_queue_priority.c
index a7106a8e9..2fc1a3706 100644
--- a/test/test_queue_priority.c
+++ b/test/test_queue_priority.c
@@ -1,5 +1,20 @@
+#include "config.h"
#include "queue.h"
#include "song.h"
+#include "directory.h"
+
+struct directory detached_root;
+
+struct song *
+song_dup_detached(const struct song *src)
+{
+ union {
+ const struct song *in;
+ struct song *out;
+ } u = { .in = src };
+
+ return u.out;
+}
void
song_free(G_GNUC_UNUSED struct song *song)