summaryrefslogtreecommitdiffstats
path: root/test/testutil
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2017-05-12 16:03:09 +0200
committerRich Salz <rsalz@openssl.org>2017-05-12 20:20:01 +0200
commit1d0f116e47664abd95b20aaff629e41ae7a85e76 (patch)
treeba8c32310aa892f8aa4086a02fbb330146ab5b8b /test/testutil
parentClean up SSL_OP_* a bit (diff)
downloadopenssl-1d0f116e47664abd95b20aaff629e41ae7a85e76.tar.xz
openssl-1d0f116e47664abd95b20aaff629e41ae7a85e76.zip
Add "Title" directive to evp_test
Reviewed-by: Stephen Henson <steve@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3454)
Diffstat (limited to 'test/testutil')
-rw-r--r--test/testutil/driver.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/testutil/driver.c b/test/testutil/driver.c
index 7be6d2f664..8587304a7f 100644
--- a/test/testutil/driver.c
+++ b/test/testutil/driver.c
@@ -121,11 +121,12 @@ static void finalize(int success)
ERR_print_errors_cb(openssl_error_cb, NULL);
}
-static const char *test_title = NULL;
+static char *test_title = NULL;
void set_test_title(const char *title)
{
- test_title = title;
+ free(test_title);
+ test_title = title == NULL ? NULL : strdup(title);
}
int run_tests(const char *test_prog_name)