mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-03 19:28:00 +02:00
trivial: egg updates
This commit is contained in:
parent
b7ac1cda00
commit
8bcc56ce4c
1 changed files with 10 additions and 15 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue