summaryrefslogtreecommitdiffstats
path: root/test/evp_test.c
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/evp_test.c
parent80a2fc4100daf6f1001eee33ef2f9b9eee05bedf (diff)
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/evp_test.c')
-rw-r--r--test/evp_test.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/evp_test.c b/test/evp_test.c
index 685db4eebb..d042a4e8ae 100644
--- a/test/evp_test.c
+++ b/test/evp_test.c
@@ -564,8 +564,11 @@ static int parse_test_line(EVP_TEST *t, char *buf)
}
if (t->skip)
return 1;
- if (strcmp(keyword, "Result") == 0) {
- if (t->expected_err) {
+ if (strcmp(keyword, "Title") == 0) {
+ TEST_info("Starting %s tests", value);
+ set_test_title(value);
+ } else if (strcmp(keyword, "Result") == 0) {
+ if (t->expected_err != NULL) {
TEST_info("Line %d: multiple result lines", t->line);
return 0;
}