source: rtems/testsuites/psxtests/psxmmap01/test_helper.c @ 1549beb

5
Last change on this file since 1549beb was 1549beb, checked in by Kevin Kirspel <kevin-kirspel@…>, on 06/29/17 at 14:36:44

psxtests: Add a mmap dedicated test case

Updates #2859

  • Property mode set to 100644
File size: 525 bytes
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
18void 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.