projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46766d0
)
evp_test: when function and reason strings aren't available, just skip
author
Richard Levitte
<levitte@openssl.org>
Fri, 16 Dec 2016 03:15:02 +0000
(
04:15
+0100)
committer
Richard Levitte
<levitte@openssl.org>
Fri, 16 Dec 2016 13:40:43 +0000
(14:40 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2093)
(cherry picked from commit
cd3fe0e09c97700005ed96c8113907cbdfc45edf
)
test/evp_test.c
patch
|
blob
|
history
diff --git
a/test/evp_test.c
b/test/evp_test.c
index e52ff0c947e0078434d5db7c3682bdb6df0f1059..b6a7c28e3bea3e5641fc2203ea93e6f778415e8c 100644
(file)
--- a/
test/evp_test.c
+++ b/
test/evp_test.c
@@
-372,6
+372,12
@@
static int check_test_error(struct evp_test *t)
func = ERR_func_error_string(err);
reason = ERR_reason_error_string(err);
+ if (func == NULL && reason == NULL) {
+ fprintf(stderr, "Test line %d: expected error \"%s:%s\", no strings available. Skipping...\n",
+ t->start_line, t->func, t->reason);
+ return 1;
+ }
+
if (strcmp(func, t->func) == 0 && strcmp(reason, t->reason) == 0)
return 1;