test: don't make it more complicated than necessary.
authorAndy Polyakov <appro@openssl.org>
Mon, 24 Apr 2017 22:21:28 +0000 (00:21 +0200)
committerAndy Polyakov <appro@openssl.org>
Tue, 25 Apr 2017 21:26:51 +0000 (23:26 +0200)
commitdd05be5d7809cb831718820eedd86269b2504180
tree02ce291863551e70434453b535676f927f471f3b
parentb69ae442a3b3e168d73c53dcd04bacf33eee8569
test: don't make it more complicated than necessary.

Original rationale behind using write in testutil was to accommodate
no-stdio builds. But is there evidence that no-stdio users would have
write or pre-defined meaning for file descriptors 1 and 2? Correct
answer is to provide way for no-stdio users who want to exercise
tests to plug in own BIO, not to make assumption that they have write.
And since we don't have to make such assumption, we can as well go
for simplest that works with standard library as specified by C
language standard.

Reviewed-by: Richard Levitte <levitte@openssl.org>
test/bioprinttest.c
test/testutil/basic_output.c