aboutsummaryrefslogtreecommitdiffstats
path: root/test/testutil
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2017-05-12 10:03:09 -0400
committerRich Salz <rsalz@openssl.org>2017-05-12 14:20:01 -0400
commit1d0f116e47664abd95b20aaff629e41ae7a85e76 (patch)
treeba8c32310aa892f8aa4086a02fbb330146ab5b8b /test/testutil
parent80a2fc4100daf6f1001eee33ef2f9b9eee05bedf (diff)
downloadopenssl-1d0f116e47664abd95b20aaff629e41ae7a85e76.tar.gz
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)