blob: 7f09fbfc7e0d40fba0189aaf9ca1282c7a856742 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include <openssl/err.h>
#include "test_err.h"
/* Simple error test routine */
void a_test_function(void)
{
TESTerr(TEST_F_A_TEST_FUNCTION, TEST_R_TEST_REASON_CODE);
TESTerr(TEST_F_A_TEST_FUNCTION, TEST_R_ANOTHER_TEST_REASON_CODE);
ERR_add_error_data(1, "some additional error data");
}
int main(int argc, char **argv)
{
ERR_load_TEST_strings();
a_test_function();
ERR_print_errors_fp(stderr);
}
|