Code

t/unit/core/timeseries_test: Add minimalistic test for timeseries.
[sysdb.git] / t / unit / testutils.h
index a6989655e1c5d481426cab9ed83e750bf31bc8f6..a550be2af27b6529436db16e482c83747f39ea9a 100644 (file)
@@ -37,6 +37,7 @@
 #include <check.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <time.h>
 
 #define TEST_MAIN(name) \
        int main(void) \
@@ -45,6 +46,7 @@
                Suite *s; \
                int failed; \
                putenv("TZ=UTC"); \
+               tzset(); \
                s = suite_create(name); \
                sr = srunner_create(s); \
 
 int
 sdb_regmatches(const char *regex, const char *string);
 
+/*
+ * sdb_diff_strings:
+ * Compare two strings and fail the test if there's a difference.
+ */
+void
+sdb_diff_strings(const char *desc, const char *got, const char *expected);
+
 #endif /* T_LIBSYSDB_UTILS_H */
 
 /* vim: set tw=78 sw=4 ts=4 noexpandtab : */