1*e0c4386eSCy Schubert /*
2*e0c4386eSCy Schubert * Copyright 2017-2020 The OpenSSL Project Authors. All Rights Reserved.
3*e0c4386eSCy Schubert *
4*e0c4386eSCy Schubert * Licensed under the Apache License 2.0 (the "License"). You may not use
5*e0c4386eSCy Schubert * this file except in compliance with the License. You can obtain a copy
6*e0c4386eSCy Schubert * in the file LICENSE in the source distribution or at
7*e0c4386eSCy Schubert * https://www.openssl.org/source/license.html
8*e0c4386eSCy Schubert */
9*e0c4386eSCy Schubert
10*e0c4386eSCy Schubert #include "output.h"
11*e0c4386eSCy Schubert
test_printf_stdout(const char * fmt,...)12*e0c4386eSCy Schubert int test_printf_stdout(const char *fmt, ...)
13*e0c4386eSCy Schubert {
14*e0c4386eSCy Schubert va_list ap;
15*e0c4386eSCy Schubert int ret;
16*e0c4386eSCy Schubert
17*e0c4386eSCy Schubert va_start(ap, fmt);
18*e0c4386eSCy Schubert ret = test_vprintf_stdout(fmt, ap);
19*e0c4386eSCy Schubert va_end(ap);
20*e0c4386eSCy Schubert
21*e0c4386eSCy Schubert return ret;
22*e0c4386eSCy Schubert }
23*e0c4386eSCy Schubert
test_printf_stderr(const char * fmt,...)24*e0c4386eSCy Schubert int test_printf_stderr(const char *fmt, ...)
25*e0c4386eSCy Schubert {
26*e0c4386eSCy Schubert va_list ap;
27*e0c4386eSCy Schubert int ret;
28*e0c4386eSCy Schubert
29*e0c4386eSCy Schubert va_start(ap, fmt);
30*e0c4386eSCy Schubert ret = test_vprintf_stderr(fmt, ap);
31*e0c4386eSCy Schubert va_end(ap);
32*e0c4386eSCy Schubert
33*e0c4386eSCy Schubert return ret;
34*e0c4386eSCy Schubert }
35*e0c4386eSCy Schubert
test_printf_tapout(const char * fmt,...)36*e0c4386eSCy Schubert int test_printf_tapout(const char *fmt, ...)
37*e0c4386eSCy Schubert {
38*e0c4386eSCy Schubert va_list ap;
39*e0c4386eSCy Schubert int ret;
40*e0c4386eSCy Schubert
41*e0c4386eSCy Schubert va_start(ap, fmt);
42*e0c4386eSCy Schubert ret = test_vprintf_tapout(fmt, ap);
43*e0c4386eSCy Schubert va_end(ap);
44*e0c4386eSCy Schubert
45*e0c4386eSCy Schubert return ret;
46*e0c4386eSCy Schubert }
47*e0c4386eSCy Schubert
test_printf_taperr(const char * fmt,...)48*e0c4386eSCy Schubert int test_printf_taperr(const char *fmt, ...)
49*e0c4386eSCy Schubert {
50*e0c4386eSCy Schubert va_list ap;
51*e0c4386eSCy Schubert int ret;
52*e0c4386eSCy Schubert
53*e0c4386eSCy Schubert va_start(ap, fmt);
54*e0c4386eSCy Schubert ret = test_vprintf_taperr(fmt, ap);
55*e0c4386eSCy Schubert va_end(ap);
56*e0c4386eSCy Schubert
57*e0c4386eSCy Schubert return ret;
58*e0c4386eSCy Schubert }
59