chiark / gitweb /
hashmap: hashmap_move_one() should return -ENOENT when 'other' is NULL
[elogind.git] / src / journal / test-catalog.c
index b087a8b81cacabb6a658b1ea28de270d753f3d57..5fe2f6a2697e6bb65ba264b2c274e297a013293a 100644 (file)
@@ -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();