From ea60b1b08015060a08b1ead38e4e81c44a88017f Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 5 Apr 2024 16:07:39 -0300 Subject: Move unit tests out of src/*.c into tests/ --- src/i18n.c | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'src/i18n.c') diff --git a/src/i18n.c b/src/i18n.c index 0711389..0a9d3be 100644 --- a/src/i18n.c +++ b/src/i18n.c @@ -47,29 +47,3 @@ MSGS[] = { [MSG_ERR_VECTOR_OUT_OF_BOUNDS]= "idx (%ld) is beyond bounds (%ld)\n", NULL }; - - - -#ifdef TEST -#include - -#include "logerr.h" -#include "catalog.h" - - -int -main(void) { - int rc = 0; - - if (getenv("DUMP_TRANSLATABLE_STRINGS")) { - if (dump_translatable_strings(MSGS)) { - logerr("dump_translatable_strings(MSGS)\n"); - rc = -1; - goto out; - } - } - -out: - return !!rc; -} -#endif -- cgit v1.2.3