aboutsummaryrefslogtreecommitdiff
path: root/test/bntest.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2015-09-04 14:07:57 +0200
committerRichard Levitte <levitte@openssl.org>2015-09-06 01:35:54 +0200
commit0f81f5f78c06bd69a96deb66cd30e50a67310ef2 (patch)
tree1300b7ffd0ac4003bc4248df06df4c31e260bd7a /test/bntest.c
parentbdd58d98467e9f0f6635c1628e1eae304383afb1 (diff)
downloadopenssl-0f81f5f78c06bd69a96deb66cd30e50a67310ef2.zip
openssl-0f81f5f78c06bd69a96deb66cd30e50a67310ef2.tar.gz
openssl-0f81f5f78c06bd69a96deb66cd30e50a67310ef2.tar.bz2
Have the test executables output in text mode
The test executables use standard output and standard error for text output, so let's open the corresponding BIOs in text mode. Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'test/bntest.c')
-rw-r--r--test/bntest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/bntest.c b/test/bntest.c
index effbd75..675d0eb 100644
--- a/test/bntest.c
+++ b/test/bntest.c
@@ -168,7 +168,7 @@ int main(int argc, char *argv[])
if (out == NULL)
EXIT(1);
if (outfile == NULL) {
- BIO_set_fp(out, stdout, BIO_NOCLOSE);
+ BIO_set_fp(out, stdout, BIO_NOCLOSE | BIO_FP_TEXT);
} else {
if (!BIO_write_filename(out, outfile)) {
perror(outfile);