index 5ae771f5951bd1d82a1fb4cb67ac512d0d20a38f..d6869fa946c1b486f491a467308dc9151cc41de5 100644 (file)
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#if HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include "utils/llist.h"
-#include "libsysdb_test.h"
+#include "testutils.h"
#include <check.h>
*/
static sdb_object_t golden_data[] = {
- SSTRING_OBJ("abc"),
- SSTRING_OBJ("bcd"),
- SSTRING_OBJ("cde"),
- SSTRING_OBJ("def"),
- SSTRING_OBJ("efg"),
- SSTRING_OBJ("fgh"),
- SSTRING_OBJ("ghi")
+ SDB_OBJECT_STATIC("abc"),
+ SDB_OBJECT_STATIC("bcd"),
+ SDB_OBJECT_STATIC("cde"),
+ SDB_OBJECT_STATIC("def"),
+ SDB_OBJECT_STATIC("efg"),
+ SDB_OBJECT_STATIC("fgh"),
+ SDB_OBJECT_STATIC("ghi")
};
static char *unused_names[] = {
}
END_TEST
-Suite *
-util_llist_suite(void)
+TEST_MAIN("utils::llist")
{
- Suite *s = suite_create("utils::llist");
- TCase *tc;
-
- tc = tcase_create("core");
+ TCase *tc = tcase_create("core");
tcase_add_checked_fixture(tc, setup, teardown);
tcase_add_test(tc, test_clone);
tcase_add_test(tc, test_destroy);
tcase_add_test(tc, test_shift);
tcase_add_test(tc, test_iter);
tcase_add_test(tc, test_iter_remove);
- suite_add_tcase(s, tc);
-
- return s;
-} /* util_llist_suite */
+ ADD_TCASE(tc);
+}
+TEST_MAIN_END
/* vim: set tw=78 sw=4 ts=4 noexpandtab : */