diff options
author | Stef Walter <stef@thewalter.net> | 2013-08-26 14:48:59 +0200 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2013-08-28 10:59:10 +0200 |
commit | cdad5bceee79afbf8b3440b39c72890d2e67448d (patch) | |
tree | f07a8a45fd549a70277e4df9ae783fb996198c7d /trust/tests/test-module.c | |
parent | e1042e93488f2b38abeea58b65440111df69afdc (diff) |
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
Diffstat (limited to 'trust/tests/test-module.c')
-rw-r--r-- | trust/tests/test-module.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |