From cdad5bceee79afbf8b3440b39c72890d2e67448d Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Mon, 26 Aug 2013 14:48:59 +0200 Subject: Avoid multiple stat() calls for same file As a side effect we can also not use the dirent.d_type field https://bugs.freedesktop.org/show_bug.cgi?id=68525 --- p11-kit/tests/test-conf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'p11-kit/tests/test-conf.c') diff --git a/p11-kit/tests/test-conf.c b/p11-kit/tests/test-conf.c index 3a94c12..dc82da8 100644 --- a/p11-kit/tests/test-conf.c +++ b/p11-kit/tests/test-conf.c @@ -58,7 +58,7 @@ test_parse_conf_1 (void) p11_dict *map; const char *value; - map = _p11_conf_parse_file (SRCDIR "/files/test-1.conf", 0); + map = _p11_conf_parse_file (SRCDIR "/files/test-1.conf", NULL, 0); assert_ptr_not_null (map); value = p11_dict_get (map, "key1"); @@ -81,7 +81,7 @@ test_parse_ignore_missing (void) { p11_dict *map; - map = _p11_conf_parse_file (SRCDIR "/files/non-existant.conf", CONF_IGNORE_MISSING); + map = _p11_conf_parse_file (SRCDIR "/files/non-existant.conf", NULL, CONF_IGNORE_MISSING); assert_ptr_not_null (map); assert_num_eq (0, p11_dict_size (map)); @@ -94,7 +94,7 @@ test_parse_fail_missing (void) { p11_dict *map; - map = _p11_conf_parse_file (SRCDIR "/files/non-existant.conf", 0); + map = _p11_conf_parse_file (SRCDIR "/files/non-existant.conf", NULL, 0); assert (map == NULL); assert_ptr_not_null (p11_message_last ()); } -- cgit v1.1