summaryrefslogtreecommitdiffstats
path: root/test/cmp_ctx_test.c
diff options
context:
space:
mode:
authorShane Lontis <shane.lontis@oracle.com>2019-10-08 17:56:09 +1000
committerShane Lontis <shane.lontis@oracle.com>2019-10-08 17:56:09 +1000
commit18caaa2ec41246267fc3e59160dbc19301d988a1 (patch)
treead9d47816c7e60e44dba8f6afb5a9ede2152ae89 /test/cmp_ctx_test.c
parentf816aa47ac140c3d083416aa9c1c396096d9a92c (diff)
Fix CMP test error on platforms which set OPENSSL_FUNC to '(unknown function)'
Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/10119)
Diffstat (limited to 'test/cmp_ctx_test.c')
-rw-r--r--test/cmp_ctx_test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/cmp_ctx_test.c b/test/cmp_ctx_test.c
index 16ce9c5c7e..3c8d75f4e0 100644
--- a/test/cmp_ctx_test.c
+++ b/test/cmp_ctx_test.c
@@ -240,7 +240,8 @@ static int test_log_cb(const char *func, const char *file, int line,
{
test_log_cb_res =
# ifndef PEDANTIC
- strcmp(func, "execute_cmp_ctx_log_cb_test") == 0 &&
+ (strcmp(func, "execute_cmp_ctx_log_cb_test") == 0
+ || strcmp(func, "(unknown function)") == 0) &&
# endif
(strcmp(file, OPENSSL_FILE) == 0 || strcmp(file, "(no file)") == 0)
&& (line == test_log_line || line == 0)