index 19b2cc081e4027665ef9310b06d6df1d148a2409..9fee9dbd46303987b02b3a814010f80d59612296 100644 (file)
--- a/t/unit/core/time_test.c
+++ b/t/unit/core/time_test.c
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#if HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include "core/time.h"
-#include "libsysdb_test.h"
+#include "testutils.h"
#include <check.h>
}
END_TEST
-Suite *
-core_time_suite(void)
+TEST_MAIN("core::time")
{
- Suite *s = suite_create("core::time");
- TCase *tc;
-
- tc = tcase_create("core");
+ TCase *tc = tcase_create("core");
TC_ADD_LOOP_TEST(tc, strfinterval);
TC_ADD_LOOP_TEST(tc, strpunit);
- suite_add_tcase(s, tc);
-
- return s;
-} /* core_time_suite */
+ ADD_TCASE(tc);
+}
+TEST_MAIN_END
/* vim: set tw=78 sw=4 ts=4 noexpandtab : */