[libpeas] Cleanup test for peas_plugin_info_has_dependency()



commit 5455402ac012d73c1497901e8092d83175d1a82a
Author: Garrett Regier <alias301 gmail com>
Date:   Fri Mar 18 06:44:18 2011 -0700

    Cleanup test for peas_plugin_info_has_dependency()

 tests/libpeas/plugin-info.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/tests/libpeas/plugin-info.c b/tests/libpeas/plugin-info.c
index 7a2c837..fb636a1 100644
--- a/tests/libpeas/plugin-info.c
+++ b/tests/libpeas/plugin-info.c
@@ -129,8 +129,6 @@ test_plugin_info_has_dep (PeasEngine *engine)
 {
   PeasPluginInfo *info;
 
-  testing_util_push_log_hook ("*assertion `module_name != NULL' failed");
-
   info = peas_engine_get_plugin_info (engine, "full-info");
 
   g_assert (peas_plugin_info_has_dependency (info, "something"));
@@ -138,11 +136,9 @@ test_plugin_info_has_dep (PeasEngine *engine)
   g_assert (!peas_plugin_info_has_dependency (info, "does-not-exist"));
 
 
-  peas_plugin_info_has_dependency (info, NULL);
-
-
   info = peas_engine_get_plugin_info (engine, "min-info");
 
+  g_assert_cmpstr (peas_plugin_info_get_dependencies (info)[0], ==, NULL);
   g_assert (!peas_plugin_info_has_dependency (info, "does-not-exist"));
 }
 



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