[grilo-plugins] tests: Fix plugin unload



commit d1f1eb9f06c4b2b4bee72f2415efe9765d248d95
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Mon Sep 30 10:47:19 2013 +0000

    tests: Fix plugin unload
    
    Plugin unload must happen before ending the test.

 tests/apple-trailers/test_apple_trailers.c |    4 +++-
 tests/bliptv/test_bliptv.c                 |    4 +++-
 tests/vimeo/test_vimeo.c                   |    4 +++-
 3 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/tests/apple-trailers/test_apple_trailers.c b/tests/apple-trailers/test_apple_trailers.c
index 33be3a0..0c07b70 100644
--- a/tests/apple-trailers/test_apple_trailers.c
+++ b/tests/apple-trailers/test_apple_trailers.c
@@ -167,7 +167,9 @@ main(int argc, char **argv)
   g_test_add_func ("/apple-trailers/browse/count", test_browse_count);
   g_test_add_func ("/apple-trailers/browse/skip", test_browse_skip);
 
-  return g_test_run ();
+  gint result = g_test_run ();
 
   test_unload (APPLE_TRAILERS_ID);
+
+  return result;
 }
diff --git a/tests/bliptv/test_bliptv.c b/tests/bliptv/test_bliptv.c
index 15dddfa..d3fff9d 100644
--- a/tests/bliptv/test_bliptv.c
+++ b/tests/bliptv/test_bliptv.c
@@ -284,7 +284,9 @@ main(int argc, char **argv)
   g_test_add_func ("/bliptv/search/no-results", test_search_no_results);
   g_test_add_func ("/bliptv/autosplit", test_autosplit);
 
-  return g_test_run ();
+  gint result = g_test_run ();
 
   test_unload (BLIPTV_ID);
+
+  return result;
 }
diff --git a/tests/vimeo/test_vimeo.c b/tests/vimeo/test_vimeo.c
index 611f884..29d2345 100644
--- a/tests/vimeo/test_vimeo.c
+++ b/tests/vimeo/test_vimeo.c
@@ -260,7 +260,9 @@ main (int argc, char **argv)
   g_test_add_func ("/vimeo/search/empty", test_search_empty);
   g_test_add_func ("/vimeo/cancel", test_cancel);
 
-  return g_test_run ();
+  gint result = g_test_run ();
 
   test_unload (VIMEO_ID);
+
+  return result;
 }


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