Blame test/testutil/output.h
|
Packit |
c4476c |
/*
|
|
Packit |
c4476c |
* Copyright 2014-2016 The OpenSSL Project Authors. All Rights Reserved.
|
|
Packit |
c4476c |
*
|
|
Packit |
c4476c |
* Licensed under the OpenSSL license (the "License"). You may not use
|
|
Packit |
c4476c |
* this file except in compliance with the License. You can obtain a copy
|
|
Packit |
c4476c |
* in the file LICENSE in the source distribution or at
|
|
Packit |
c4476c |
* https://www.openssl.org/source/license.html
|
|
Packit |
c4476c |
*/
|
|
Packit |
c4476c |
|
|
Packit |
c4476c |
#ifndef OSSL_TESTUTIL_OUTPUT_H
|
|
Packit |
c4476c |
# define OSSL_TESTUTIL_OUTPUT_H
|
|
Packit |
c4476c |
|
|
Packit |
c4476c |
#include <stdarg.h>
|
|
Packit |
c4476c |
|
|
Packit |
c4476c |
/*
|
|
Packit |
c4476c |
* The basic I/O functions used internally by the test framework. These
|
|
Packit |
c4476c |
* can be overridden when needed. Note that if one is, then all must be.
|
|
Packit |
c4476c |
*/
|
|
Packit |
c4476c |
void test_open_streams(void);
|
|
Packit |
c4476c |
void test_close_streams(void);
|
|
Packit |
c4476c |
/* The following ALL return the number of characters written */
|
|
Packit |
c4476c |
int test_vprintf_stdout(const char *fmt, va_list ap);
|
|
Packit |
c4476c |
int test_vprintf_stderr(const char *fmt, va_list ap);
|
|
Packit |
c4476c |
/* These return failure or success */
|
|
Packit |
c4476c |
int test_flush_stdout(void);
|
|
Packit |
c4476c |
int test_flush_stderr(void);
|
|
Packit |
c4476c |
|
|
Packit |
c4476c |
/* Commodity functions. There's no need to override these */
|
|
Packit |
c4476c |
int test_printf_stdout(const char *fmt, ...);
|
|
Packit |
c4476c |
int test_printf_stderr(const char *fmt, ...);
|
|
Packit |
c4476c |
|
|
Packit |
c4476c |
#endif /* OSSL_TESTUTIL_OUTPUT_H */
|