diff options
Diffstat (limited to 'tests/unittests')
-rw-r--r-- | tests/unittests/torture_pki.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unittests/torture_pki.c b/tests/unittests/torture_pki.c index 31618a4..20bf5c6 100644 --- a/tests/unittests/torture_pki.c +++ b/tests/unittests/torture_pki.c @@ -85,12 +85,14 @@ static char *read_file(const char *filename) { char *key; int fd; int size; + int rc; struct stat buf; assert_true(filename != NULL); assert_true(*filename != '\0'); - stat(filename, &buf); + rc = stat(filename, &buf); + assert_int_equal(rc, 0); key = malloc(buf.st_size + 1); assert_true(key != NULL); |