X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fjournal%2Ftest-catalog.c;h=5fe2f6a2697e6bb65ba264b2c274e297a013293a;hb=cc821d02a37c8c76aaf15bae2d33fee1bdc4b2e0;hp=b087a8b81cacabb6a658b1ea28de270d753f3d57;hpb=2d5bdf5bc0e4714d42e5999a4e37553a6bf83575;p=elogind.git diff --git a/src/journal/test-catalog.c b/src/journal/test-catalog.c index b087a8b81..5fe2f6a26 100644 --- a/src/journal/test-catalog.c +++ b/src/journal/test-catalog.c @@ -62,7 +62,7 @@ static void test_catalog_importing(void) { Hashmap *h; struct strbuf *sb; - assert_se(h = hashmap_new(catalog_hash_func, catalog_compare_func)); + assert_se(h = hashmap_new(&catalog_hash_ops)); assert_se(sb = strbuf_new()); #define BUF "xxx" @@ -157,7 +157,8 @@ int main(int argc, char *argv[]) { setlocale(LC_ALL, "de_DE.UTF-8"); - log_set_max_level(LOG_DEBUG); + log_parse_environment(); + log_open(); test_catalog_file_lang();