[libpeas] Revert "Free PeasEngine after all tests have run"



commit 240826e0f9bf1465721228c015f13d106ba8c8d4
Author: Garrett Regier <alias301 gmail com>
Date:   Tue Jan 25 09:17:25 2011 -0800

    Revert "Free PeasEngine after all tests have run"
    
    This reverts commit b95e82e46c3b1f8445b95f87488fc3e1e6c64f77.
    The engine was freed before the tests which is pointless.
    
    Conflicts:
    
    	tests/libpeas/extension.c

 tests/libpeas-gtk/plugin-manager-store.c  |    2 --
 tests/libpeas-gtk/plugin-manager-view.c   |    2 --
 tests/libpeas-gtk/plugin-manager.c        |    2 --
 tests/libpeas/engine.c                    |    2 --
 tests/libpeas/extension-set.c             |    2 --
 tests/libpeas/plugin-info.c               |    2 --
 tests/libpeas/testing/testing-extension.h |    2 --
 7 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/tests/libpeas-gtk/plugin-manager-store.c b/tests/libpeas-gtk/plugin-manager-store.c
index 63b5982..006bbed 100644
--- a/tests/libpeas-gtk/plugin-manager-store.c
+++ b/tests/libpeas-gtk/plugin-manager-store.c
@@ -345,7 +345,5 @@ main (int    argc,
 
 #undef TEST
 
-  g_object_unref (peas_engine_get_default ());
-
   return g_test_run ();
 }
diff --git a/tests/libpeas-gtk/plugin-manager-view.c b/tests/libpeas-gtk/plugin-manager-view.c
index dca23ef..2c64bbd 100644
--- a/tests/libpeas-gtk/plugin-manager-view.c
+++ b/tests/libpeas-gtk/plugin-manager-view.c
@@ -260,7 +260,5 @@ main (int    argc,
 
 #undef TEST
 
-  g_object_unref (peas_engine_get_default ());
-
   return g_test_run ();
 }
diff --git a/tests/libpeas-gtk/plugin-manager.c b/tests/libpeas-gtk/plugin-manager.c
index d5a87c3..df6e38c 100644
--- a/tests/libpeas-gtk/plugin-manager.c
+++ b/tests/libpeas-gtk/plugin-manager.c
@@ -404,7 +404,5 @@ main (int    argc,
 
 #undef TEST
 
-  g_object_unref (peas_engine_get_default ());
-
   return g_test_run ();
 }
diff --git a/tests/libpeas/engine.c b/tests/libpeas/engine.c
index 0ad8bce..8784a54 100644
--- a/tests/libpeas/engine.c
+++ b/tests/libpeas/engine.c
@@ -298,7 +298,5 @@ main (int    argc,
 
 #undef TEST
 
-  g_object_unref (peas_engine_get_default ());
-
   return g_test_run ();
 }
diff --git a/tests/libpeas/extension-set.c b/tests/libpeas/extension-set.c
index f78ac04..77b73c0 100644
--- a/tests/libpeas/extension-set.c
+++ b/tests/libpeas/extension-set.c
@@ -214,7 +214,5 @@ main (int    argc,
 
 #undef TEST
 
-  g_object_unref (peas_engine_get_default ());
-
   return g_test_run ();
 }
diff --git a/tests/libpeas/plugin-info.c b/tests/libpeas/plugin-info.c
index 1d2f81a..88d6a2d 100644
--- a/tests/libpeas/plugin-info.c
+++ b/tests/libpeas/plugin-info.c
@@ -208,7 +208,5 @@ main (int    argc,
 
 #undef TEST
 
-  g_object_unref (peas_engine_get_default ());
-
   return g_test_run ();
 }
diff --git a/tests/libpeas/testing/testing-extension.h b/tests/libpeas/testing/testing-extension.h
index 27138f8..35b13ef 100644
--- a/tests/libpeas/testing/testing-extension.h
+++ b/tests/libpeas/testing/testing-extension.h
@@ -86,8 +86,6 @@ main (int   argc, \
   _EXTENSION_TEST (loader, "properties-write-only", properties_write_only); \
   _EXTENSION_TEST (loader, "properties-readwrite", properties_readwrite); \
 \
-  g_object_unref (peas_engine_get_default ()); \
-\
   return g_test_run (); \
 }
 



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