[totem-pl-parser] tests: Fix "make check" without quvi support



commit 977d4b9746d86df139f819088bcbc861fc17fa5d
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Feb 26 16:27:09 2013 +0100

    tests: Fix "make check" without quvi support
    
    Those two tests were relying on quvi being present to work
    (as well as the guardian being a supported site in libquvi).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=694438

 plparse/tests/parser.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plparse/tests/parser.c b/plparse/tests/parser.c
index 93b70b2..35eee0c 100644
--- a/plparse/tests/parser.c
+++ b/plparse/tests/parser.c
@@ -806,6 +806,7 @@ test_parsing_xml_mixed_cdata (void)
        g_free (uri);
 }
 
+#ifdef HAVE_QUVI
 static void
 test_parsing_rss_id (void)
 {
@@ -823,6 +824,7 @@ test_parsing_rss_link (void)
        g_assert_cmpstr (parser_test_get_entry_field (uri, TOTEM_PL_PARSER_FIELD_URI), ==, 
"http://www.guardian.co.uk/technology/audio/2011/may/03/tech-weekly-art-love-bin-laden";);
        g_free (uri);
 }
+#endif /* HAVE_QUVI */
 
 static void
 test_parsing_not_asx_playlist (void)
@@ -1166,8 +1168,10 @@ main (int argc, char *argv[])
                g_test_add_func ("/parser/parsing/podcast_content_type", test_parsing_content_type);
                g_test_add_func ("/parser/parsing/live_streaming", test_parsing_live_streaming);
                g_test_add_func ("/parser/parsing/xml_mixed_cdata", test_parsing_xml_mixed_cdata);
+#ifdef HAVE_QUVI
                g_test_add_func ("/parser/parsing/rss_id", test_parsing_rss_id);
                g_test_add_func ("/parser/parsing/rss_link", test_parsing_rss_link);
+#endif /* HAVE_QUVI */
                g_test_add_func ("/parser/parsing/not_asx_playlist", test_parsing_not_asx_playlist);
                g_test_add_func ("/parser/parsing/not_really_php", test_parsing_not_really_php);
                g_test_add_func ("/parser/parsing/not_really_php_but_html_instead", 
test_parsing_not_really_php_but_html_instead);


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