blob: cf68e8f6cdf24f81fc38799d675e38b74db19294 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/*
* Copyright (c) 2017 Kevin Kirspel.
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.org/license/LICENSE.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "test_helper.h"
#include <stdio.h>
#include <stdarg.h>
void fail_check(
const char *file,
const size_t line,
const char *fmt,
...
)
{
va_list ap;
printf( "%s: %zd: ", file, line );
va_start(ap, fmt);
vprintf(fmt, ap);
va_end(ap);
}
|