diff options
author | Richard Levitte <levitte@openssl.org> | 2018-01-28 09:49:46 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2018-02-01 07:10:48 +0100 |
commit | 71bb86f0dc72c49d9efc098a71a6654004a2035a (patch) | |
tree | 49c531123f5e7a05775a008390c987478a05389a /apps/openssl.c | |
parent | 39556e63ef6c079d144b07d7f492152abf9efe77 (diff) |
Make sure that apps/openssl prefixes its output with '# ' during tests
The reason to do this is that some output might start with an 'ok',
which TAP catches and takes for TAP output. The TAP compatible way is
to make all output it shouldn't catch look like comments.
We do this by setting the environment variable HARNESS_OSSL_PREFIX
during tests. When that is set, apps/openssl uses BIO_f_linebuffer
and sets its prefix to the content of that environment variable.
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5224)
Diffstat (limited to 'apps/openssl.c')
-rw-r--r-- | apps/openssl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/openssl.c b/apps/openssl.c index fe1eabdede..fffa05e1c7 100644 --- a/apps/openssl.c +++ b/apps/openssl.c @@ -93,6 +93,7 @@ static int apps_startup() static void apps_shutdown() { destroy_ui_method(); + destroy_prefix_method(); } static char *make_config_name() |