[libpeas] Avoid creating the fixture when not needed in the plugin-manager tests
- From: Steve Frécinaux <sfre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Avoid creating the fixture when not needed in the plugin-manager tests
- Date: Wed, 23 Mar 2011 21:42:35 +0000 (UTC)
commit 90dcb0b840b1088e51eb41402de45266095a2443
Author: Garrett Regier <alias301 gmail com>
Date: Sat Mar 19 14:05:21 2011 -0700
Avoid creating the fixture when not needed in the plugin-manager tests
tests/libpeas-gtk/plugin-manager.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/tests/libpeas-gtk/plugin-manager.c b/tests/libpeas-gtk/plugin-manager.c
index ab52034..20964f6 100644
--- a/tests/libpeas-gtk/plugin-manager.c
+++ b/tests/libpeas-gtk/plugin-manager.c
@@ -394,7 +394,7 @@ test_gtk_plugin_manager_configure_dialog (TestFixture *fixture)
}
static void
-test_gtk_plugin_manager_gtkbuilder (TestFixture *fixture)
+test_gtk_plugin_manager_gtkbuilder (void)
{
GtkBuilder *builder;
GError *error = NULL;
@@ -442,6 +442,10 @@ main (int argc,
(gpointer) test_gtk_plugin_manager_##ftest, \
test_setup, test_runner, test_teardown)
+#define TEST_FUNC(path, ftest) \
+ g_test_add_func ("/gtk/plugin-manager/" path, \
+ test_gtk_plugin_manager_##ftest)
+
TEST ("about-button-sensitivity", about_button_sensitivity);
TEST ("configure-button-sensitivity", configure_button_sensitivity);
@@ -451,7 +455,7 @@ main (int argc,
TEST ("about-dialog", about_dialog);
TEST ("configure-dialog", configure_dialog);
- TEST ("gtkbuilder", gtkbuilder);
+ TEST_FUNC ("gtkbuilder", gtkbuilder);
#undef TEST
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]