source: rtems/cpukit/libmisc/testsupport/testbeginend.c @ 18d0a49

4.115
Last change on this file since 18d0a49 was 18d0a49, checked in by Sebastian Huber <sebastian.huber@…>, on 03/05/15 at 07:44:59

Move test support from sapi to libmisc/testsupport

  • Property mode set to 100644
File size: 810 bytes
Line 
1/*
2 * Copyright (c) 2014 embedded brains GmbH.  All rights reserved.
3 *
4 *  embedded brains GmbH
5 *  Dornierstr. 4
6 *  82178 Puchheim
7 *  Germany
8 *  <rtems@embedded-brains.de>
9 *
10 * The license and distribution terms for this file may be
11 * found in the file LICENSE in this distribution or at
12 * http://www.rtems.org/license/LICENSE.
13 */
14
15#ifdef HAVE_CONFIG_H
16  #include "config.h"
17#endif
18
19#include <rtems/test.h>
20
21int rtems_test_begin_with_plugin(
22  rtems_printk_plugin_t printf_func,
23  void *printf_arg
24)
25{
26  return (*printf_func)(
27    printf_arg,
28    "\n\n*** BEGIN OF TEST %s ***\n",
29    rtems_test_name
30  );
31}
32
33int rtems_test_end_with_plugin(
34  rtems_printk_plugin_t printf_func,
35  void *printf_arg
36)
37{
38  return (*printf_func)(
39    printf_arg,
40    "*** END OF TEST %s ***\n",
41    rtems_test_name
42  );
43}
Note: See TracBrowser for help on using the repository browser.