4.115
Last change
on this file since 0308c028 was
0308c028,
checked in by Joel Sherrill <joel.sherrill@…>, on 06/28/10 at 14:03:45
|
2010-06-26 Bharath Suri <bharath.s.jois@…>
PR 1592/testing
- Makefile.am, configure.ac: Changes to incorporate sperror01,
sperror02, sperror03
- sperror01/init.c, sperror02/init.c: New tests to exercise
rtems_error routine
- sperror03/init.c: New test to exercise rtems_panic routine
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | /* |
---|
2 | * COPYRIGHT (c) 1989-2010. |
---|
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.com/license/LICENSE. |
---|
8 | * |
---|
9 | * $Id$ |
---|
10 | */ |
---|
11 | |
---|
12 | #include <tmacros.h> |
---|
13 | #include "test_support.h" |
---|
14 | #include "rtems/error.h" |
---|
15 | #include <errno.h> |
---|
16 | |
---|
17 | rtems_task Init( |
---|
18 | rtems_task_argument argument |
---|
19 | ) |
---|
20 | { |
---|
21 | puts( "\n\n*** TEST Tests for error reporting routines - 01 ***" ); |
---|
22 | |
---|
23 | errno = -1; |
---|
24 | rtems_error(RTEMS_ERROR_ERRNO, "Dummy: Resources unavailable"); |
---|
25 | |
---|
26 | errno = ENOMEM; |
---|
27 | rtems_error( |
---|
28 | RTEMS_NO_MEMORY | RTEMS_ERROR_ERRNO, |
---|
29 | "Dummy: Resources unavailable" |
---|
30 | ); |
---|
31 | |
---|
32 | puts( "Dummy: causing panic.. will print test end message, then..." ); |
---|
33 | puts( " print various error messages" ); |
---|
34 | rtems_error( |
---|
35 | RTEMS_NO_MEMORY | RTEMS_ERROR_PANIC, |
---|
36 | "Dummy: Resources unavailable\n" |
---|
37 | "*** END OF TEST Tests for error reporting routines - 01 ***\n" |
---|
38 | ); |
---|
39 | |
---|
40 | rtems_test_exit(0); |
---|
41 | } |
---|
42 | |
---|
43 | /* configuration information */ |
---|
44 | |
---|
45 | #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER |
---|
46 | #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER |
---|
47 | |
---|
48 | #define CONFIGURE_MAXIMUM_TASKS 1 |
---|
49 | #define CONFIGURE_RTEMS_INIT_TASKS_TABLE |
---|
50 | |
---|
51 | #define CONFIGURE_INIT |
---|
52 | |
---|
53 | #include <rtems/confdefs.h> |
---|
54 | /* end of file */ |
---|
Note: See
TracBrowser
for help on using the repository browser.