source: rtems/testsuites/sptests/spnotepad01/init.c @ b05549fc

4.115
Last change on this file since b05549fc was 6c0301d, checked in by Sebastian Huber <sebastian.huber@…>, on 03/25/14 at 07:06:21

tests/sptests: Use <rtems/test.h>

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/*
2 *  COPYRIGHT (c) 1989-2009.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.org/license/LICENSE.
8 */
9
10#ifdef HAVE_CONFIG_H
11#include "config.h"
12#endif
13
14#include "tmacros.h"
15
16const char rtems_test_name[] = "SPNOTEPAD 1";
17
18/* forward declarations to avoid warnings */
19rtems_task Init(rtems_task_argument argument);
20
21rtems_task Init(
22  rtems_task_argument ignored
23)
24{
25  rtems_status_code status;
26  uint32_t          note;
27
28  TEST_BEGIN();
29
30  puts( "Init - rtems_task_get_note - RTEMS_NOT_CONFIGURED" );
31  status = rtems_task_get_note( rtems_task_self(), 0, &note );
32  fatal_directive_status(
33    status,
34    RTEMS_NOT_CONFIGURED,
35    "rtems_task_get_note not configured"
36  );
37
38  puts( "Init - rtems_task_set_note - RTEMS_NOT_CONFIGURED" );
39  status = rtems_task_set_note( rtems_task_self(), 0, 1 );
40  fatal_directive_status(
41    status,
42    RTEMS_NOT_CONFIGURED,
43    "rtems_task_set_note not configured"
44  );
45
46  TEST_END();
47
48  rtems_test_exit(0);
49}
50
51/* configuration information */
52
53#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
54#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
55
56#define CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS
57#define CONFIGURE_MAXIMUM_TASKS         1
58#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
59
60#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
61
62#define CONFIGURE_INIT
63
64#include <rtems/confdefs.h>
65
66/* global variables */
Note: See TracBrowser for help on using the repository browser.