X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=t%2Funit%2Ftestutils.h;fp=t%2Funit%2Ftestutils.h;h=a550be2af27b6529436db16e482c83747f39ea9a;hp=5e0cc853d101b06c9aca1268665cc5807517d44b;hb=552e172997899745a55b081a3198ba1c6b85a765;hpb=d33a86692200478f29b8f46a63e8ec3b54a35691 diff --git a/t/unit/testutils.h b/t/unit/testutils.h index 5e0cc85..a550be2 100644 --- a/t/unit/testutils.h +++ b/t/unit/testutils.h @@ -74,6 +74,13 @@ 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 : */