[libpeas] Add a test to check that plugin loaders are loaded lazily



commit e576e208583ed4a74e1f6d063b8c734ea2358b33
Author: Garrett Regier <alias301 gmail com>
Date:   Thu Jun 9 19:27:48 2011 -0700

    Add a test to check that plugin loaders are loaded lazily

 tests/libpeas/testing/testing-extension.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tests/libpeas/testing/testing-extension.h b/tests/libpeas/testing/testing-extension.h
index 1f8ad56..726ce95 100644
--- a/tests/libpeas/testing/testing-extension.h
+++ b/tests/libpeas/testing/testing-extension.h
@@ -58,9 +58,11 @@ void testing_extension_properties_read_only_      (PeasEngine *engine);
 void testing_extension_properties_write_only_     (PeasEngine *engine);
 void testing_extension_properties_readwrite_      (PeasEngine *engine);
 
+/* This also tests that loaders are loaded lazily */
 #define _EXTENSION_TESTS_INIT(loader) \
   testing_init (); \
   peas_engine_enable_loader (peas_engine_get_default (), #loader); \
+  g_assert (g_type_from_name ("PeasPluginLoader") == G_TYPE_INVALID); \
   g_object_unref (peas_engine_get_default ()); \
   testing_extension_set_plugin_ ("extension-" #loader)
 



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