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