4.115
Last change
on this file since 7d01d244 was
500fcd5,
checked in by Joel Sherrill <joel.sherrill@…>, on 12/08/09 at 17:52:49
|
2009-12-08 Joel Sherrill <joel.sherrill@…>
- block01/init.c, block02/init.c, block03/init.c, block04/init.c,
block05/init.c, block07/init.c, bspcmdline01/init.c,
stringto01/init.c, stringto01/stringto_test_template.h,
termios01/init.c, termios01/termios_testdriver.c, termios02/init.c:
Use rtems_test_assert() consistently instead of system assert().
rtems_test_assert() is designed to integrate into the RTEMS test
suite infrastructure.
|
-
Property mode set to
100644
|
File size:
1.2 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.com/license/LICENSE. |
---|
8 | * |
---|
9 | * $Id$ |
---|
10 | */ |
---|
11 | |
---|
12 | #include "tmacros.h" |
---|
13 | #include <termios.h> |
---|
14 | #include <errno.h> |
---|
15 | |
---|
16 | rtems_task Init( |
---|
17 | rtems_task_argument ignored |
---|
18 | ) |
---|
19 | { |
---|
20 | int sc; |
---|
21 | |
---|
22 | printf( "\n\n*** TERMIOS 02 TEST ***\n" ); |
---|
23 | |
---|
24 | printf( "tcdrain(12) - EBADF\n" ); |
---|
25 | sc = tcdrain(12); |
---|
26 | rtems_test_assert( sc == -1 ); |
---|
27 | rtems_test_assert( errno == EBADF ); |
---|
28 | |
---|
29 | printf( "tcdrain(stdin) - OK\n" ); |
---|
30 | sc = tcdrain(0); |
---|
31 | rtems_test_assert( !sc ); |
---|
32 | |
---|
33 | printf( "tcdrain(stdout) - OK\n" ); |
---|
34 | tcdrain(1); |
---|
35 | rtems_test_assert( !sc ); |
---|
36 | |
---|
37 | printf( "tcdrain(stderr) - OK\n" ); |
---|
38 | tcdrain(2); |
---|
39 | rtems_test_assert( !sc ); |
---|
40 | |
---|
41 | printf( "*** END OF TERMIOS 02 TEST ***\n" ); |
---|
42 | exit( 0 ); |
---|
43 | } |
---|
44 | |
---|
45 | |
---|
46 | /* NOTICE: the clock driver is explicitly disabled */ |
---|
47 | #define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER |
---|
48 | #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER |
---|
49 | |
---|
50 | #define CONFIGURE_MAXIMUM_TASKS 1 |
---|
51 | #define CONFIGURE_USE_DEVFS_AS_BASE_FILESYSTEM |
---|
52 | |
---|
53 | #define CONFIGURE_RTEMS_INIT_TASKS_TABLE |
---|
54 | |
---|
55 | #define CONFIGURE_INIT |
---|
56 | #include <rtems/confdefs.h> |
---|
Note: See
TracBrowser
for help on using the repository browser.