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 --- trust/tests/test-module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'trust/tests/test-module.c') diff --git a/trust/tests/test-module.c b/trust/tests/test-module.c index 5920076..c272a88 100644 --- a/trust/tests/test-module.c +++ b/trust/tests/test-module.c @@ -1108,7 +1108,7 @@ test_create_and_write (void) /* The expected file name */ path = p11_path_build (test.directory, "yay.p11-kit", NULL); p11_parser_formats (test.parser, p11_parser_format_persist, NULL); - ret = p11_parse_file (test.parser, path, 0); + ret = p11_parse_file (test.parser, path, NULL, 0); assert_num_eq (ret, P11_PARSE_SUCCESS); free (path); @@ -1164,7 +1164,7 @@ test_modify_and_write (void) /* The expected file name */ path = p11_path_build (test.directory, "yay.p11-kit", NULL); - ret = p11_parse_file (test.parser, path, 0); + ret = p11_parse_file (test.parser, path, NULL, 0); assert_num_eq (ret, P11_PARSE_SUCCESS); free (path); -- cgit v1.1