diff options
author | Richard Levitte <levitte@openssl.org> | 2017-04-28 15:40:55 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2017-04-28 15:59:46 +0200 |
commit | 0918b94c9c01307a1cc4cfc347d458827e30ffea (patch) | |
tree | ca2db045ffbfa71b877b2e2ad6086c6f54123258 /test/bioprinttest.c | |
parent | 68e49bf22384c33494886eb95d78f1f69f433781 (diff) |
testutil: Remove test_puts_std{out,err}, they are superfluous
Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3345)
Diffstat (limited to 'test/bioprinttest.c')
-rw-r--r-- | test/bioprinttest.c | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/test/bioprinttest.c b/test/bioprinttest.c index 8ae0a5a04b..3034cda6ec 100644 --- a/test/bioprinttest.c +++ b/test/bioprinttest.c @@ -261,18 +261,6 @@ void test_close_streams(void) { } -int test_puts_stdout(const char *str) -{ - return fputs(str, stdout); -} - -int test_puts_stderr(const char *str) -{ - return fputs(str, stderr); -} - -static char vprint_buf[10240]; - /* * This works out as long as caller doesn't use any "fancy" formats. * But we are caller's caller, and test_str_eq is the only one called, @@ -280,20 +268,12 @@ static char vprint_buf[10240]; */ int test_vprintf_stdout(const char *fmt, va_list ap) { - size_t len = vsnprintf(vprint_buf, sizeof(vprint_buf), fmt, ap); - - if (len >= sizeof(vprint_buf)) - return -1; - return test_puts_stdout(vprint_buf); + return vfprintf(stdout, fmt, ap); } int test_vprintf_stderr(const char *fmt, va_list ap) { - size_t len = vsnprintf(vprint_buf, sizeof(vprint_buf), fmt, ap); - - if (len >= sizeof(vprint_buf)) - return -1; - return test_puts_stderr(vprint_buf); + return vfprintf(stderr, fmt, ap); } int test_flush_stdout(void) |