[rhythmbox: 4/5] podcast: make tests work with new podcast changes




commit 019c324b3e17c8f15de19297fb5b48712cd4950f
Author: crvi <crvisqr gmail com>
Date:   Thu Mar 4 02:34:38 2021 +0530

    podcast: make tests work with new podcast changes

 podcast/test-podcast-parse.c  | 4 ++++
 podcast/test-podcast-search.c | 3 +++
 2 files changed, 7 insertions(+)
---
diff --git a/podcast/test-podcast-parse.c b/podcast/test-podcast-parse.c
index 709a17e0c..f6c847a00 100644
--- a/podcast/test-podcast-parse.c
+++ b/podcast/test-podcast-parse.c
@@ -32,6 +32,7 @@
 #include <glib-object.h>
 #include <glib/gi18n.h>
 
+#include "rb-util.h"
 #include "rb-podcast-parse.h"
 
 #include <string.h>
@@ -103,6 +104,7 @@ parse_cb (RBPodcastChannel *channel, GError *error, gpointer user_data)
                g_print ("\n");
        }
 
+       rb_podcast_parse_channel_unref (channel);
        g_main_loop_quit (ml);
 }
 
@@ -116,6 +118,8 @@ main (int argc, char **argv)
        bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
        bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
 
+       rb_threads_init ();
+
        if (argv[2] != NULL && strcmp (argv[2], "--debug") == 0) {
                debug = TRUE;
        }
diff --git a/podcast/test-podcast-search.c b/podcast/test-podcast-search.c
index 279cf9f67..6c37bf009 100644
--- a/podcast/test-podcast-search.c
+++ b/podcast/test-podcast-search.c
@@ -32,6 +32,7 @@
 #include <glib-object.h>
 #include <glib/gi18n.h>
 
+#include "rb-util.h"
 #include "rb-podcast-search.h"
 
 #include <string.h>
@@ -126,6 +127,8 @@ int main (int argc, char **argv)
        bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
        bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
 
+       rb_threads_init ();
+
        text = argv[1];
        if (argv[2] != NULL && strcmp (argv[2], "--debug") == 0) {
                debug = TRUE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]