source: rtems/testsuites/libtests/stackchk/system.h @ 24d0ee57

5
Last change on this file since 24d0ee57 was 24d0ee57, checked in by Chris Johns <chrisj@…>, on 05/20/16 at 08:39:50

cpukit, testsuite: Add rtems_printf and rtems_printer support.

This change adds rtems_printf and related functions and wraps the
RTEMS print plugin support into a user API. All references to the
plugin are removed and replaced with the rtems_printer interface.

Printk and related functions are made to return a valid number of
characters formatted and output.

The function attribute to check printf functions has been added
to rtems_printf and printk. No changes to remove warrnings are part
of this patch set.

The testsuite has been moved over to the rtems_printer. The testsuite
has a mix of rtems_printer access and direct print control via the
tmacros.h header file. The support for begink/endk has been removed
as it served no purpose and only confused the code base. The testsuite
has not been refactored to use rtems_printf. This is future work.

  • Property mode set to 100644
File size: 1.4 KB
Line 
1/*  system.h
2 *
3 *  This include file contains information that is included in every
4 *  function in the test set.
5 *
6 *  COPYRIGHT (c) 1989-1999.
7 *  On-Line Applications Research Corporation (OAR).
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.rtems.org/license/LICENSE.
12 */
13
14#define TESTS_USE_PRINTK
15#include <tmacros.h>
16
17/* macros */
18
19/* functions */
20
21rtems_task Init(
22  rtems_task_argument argument
23);
24
25rtems_task Task_1_through_3(
26  rtems_task_argument argument
27);
28
29void blow_stack( void );
30
31/* configuration information */
32
33#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
34#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
35
36#define TASK_STACK_SIZE (RTEMS_MINIMUM_STACK_SIZE*3)
37
38#define CONFIGURE_MAXIMUM_TASKS               4
39#define CONFIGURE_EXTRA_TASK_STACKS (3 * (RTEMS_MINIMUM_STACK_SIZE * 2))
40
41#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
42
43#define CONFIGURE_STACK_CHECKER_ENABLED
44
45void Fatal_extension(
46  rtems_fatal_source source,
47  bool               is_internal,
48  rtems_fatal_code   error
49);
50
51#define CONFIGURE_INITIAL_EXTENSIONS \
52  { NULL, NULL, NULL, NULL, NULL, NULL, NULL, Fatal_extension }, \
53  RTEMS_TEST_INITIAL_EXTENSION
54
55#include <rtems/confdefs.h>
56
57/* global variables */
58
59TEST_EXTERN rtems_id   Task_id[ 4 ];         /* array of task ids */
60TEST_EXTERN rtems_name Task_name[ 4 ];       /* array of task names */
61
62/* end of include file */
Note: See TracBrowser for help on using the repository browser.