summaryrefslogtreecommitdiff
path: root/libdevkit-power
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2008-09-06 11:12:47 +0100
committerRichard Hughes <richard@hughsie.com>2008-09-06 11:12:47 +0100
commit8bcc56ce4cc67c3a9789c4db40bfdfb7d36eb9f3 (patch)
treef9770d561a1c7742c9d7e49d7de357bd9b9c4ab1 /libdevkit-power
parentb7ac1cda0077f295d37096b73c9456ce10d14d92 (diff)
trivial: egg updates
Diffstat (limited to 'libdevkit-power')
-rw-r--r--libdevkit-power/egg-obj-list.c25
1 files changed, 10 insertions, 15 deletions
diff --git a/libdevkit-power/egg-obj-list.c b/libdevkit-power/egg-obj-list.c
index 155ea08..6acceb3 100644
--- a/libdevkit-power/egg-obj-list.c
+++ b/libdevkit-power/egg-obj-list.c
@@ -463,32 +463,27 @@ egg_obj_list_new (void)
/***************************************************************************
*** MAKE CHECK TESTS ***
***************************************************************************/
-#ifdef EGG_BUILD_TESTS
-#include <libselftest.h>
+#ifdef EGG_TEST
+#include "egg-test.h"
void
-libst_obj_list (LibSelfTest *test)
+egg_obj_list_test (EggTest *test)
{
EggObjList *list;
- gchar *text;
- gint value;
- if (libst_start (test, "EggObjList", CLASS_AUTO) == FALSE) {
+ if (!egg_test_start (test, "EggObjList"))
return;
- }
/************************************************************/
- libst_title (test, "get an instance");
+ egg_test_title (test, "get an instance");
list = egg_obj_list_new ();
- if (list != NULL) {
- libst_success (test, NULL);
- } else {
- libst_failed (test, NULL);
- }
+ if (list != NULL)
+ egg_test_success (test, NULL);
+ else
+ egg_test_failed (test, NULL);
g_object_unref (list);
- libst_end (test);
+ egg_test_end (test);
}
#endif
-