gpointing-device-settings r15 - trunk/test
- From: hiikezoe svn gnome org
- To: svn-commits-list gnome org
- Subject: gpointing-device-settings r15 - trunk/test
- Date: Thu, 26 Feb 2009 07:27:57 +0000 (UTC)
Author: hiikezoe
Date: Thu Feb 26 07:27:56 2009
New Revision: 15
URL: http://svn.gnome.org/viewvc/gpointing-device-settings?rev=15&view=rev
Log:
remove instantiate test.
add find test.
Modified:
trunk/test/test-module.c
Modified: trunk/test/test-module.c
==============================================================================
--- trunk/test/test-module.c (original)
+++ trunk/test/test-module.c Thu Feb 26 07:27:56 2009
@@ -4,7 +4,7 @@
void test_load_modules (void);
void test_collect_names (void);
-void test_instantiate (void);
+void test_find (void);
static GList *modules;
static GpdsModule *module;
@@ -58,24 +58,12 @@
}
void
-test_instantiate (void)
+test_find (void)
{
- GList *name;
-
- cut_trace(test_collect_names());
-
- for (name = names; name; name = g_list_next(name)) {
- module = gpds_module_find(modules, name->data);
- cut_assert(module);
-
- object = gpds_module_instantiate(module);
- cut_assert(object);
- g_object_unref(object);
- object = NULL;
- }
+ cut_assert(gpds_module_find(modules, "touchpad"));
+ cut_assert(gpds_module_find(modules, "trackpoint"));
}
-
/*
vi:ts=4:nowrap:ai:expandtab:sw=4
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]