diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-06-23 23:24:11 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-06-23 23:24:11 +0000 |
commit | ab59de4542cd9ee505b573c809234287edb1f7a9 (patch) | |
tree | 55c948e609788cba8f5a114fe1e2ea0a001f2d8b /testsuites/libtests/termios01 | |
parent | 2010-06-23 Joel Sherrill <joel.sherrilL@OARcorp.com> (diff) | |
download | rtems-ab59de4542cd9ee505b573c809234287edb1f7a9.tar.bz2 |
2010-06-23 Joel Sherrill <joel.sherrilL@OARcorp.com>
* block01/Makefile.am, block02/Makefile.am, block03/Makefile.am,
block04/Makefile.am, block05/Makefile.am, block06/Makefile.am,
block07/Makefile.am, block08/Makefile.am, block09/Makefile.am,
block10/Makefile.am, bspcmdline01/Makefile.am, cpuuse/Makefile.am,
heapwalk/Makefile.am, malloctest/Makefile.am, monitor/Makefile.am,
monitor02/Makefile.am, putenvtest/Makefile.am, rtems++/Makefile.am,
rtmonuse/Makefile.am, stackchk/Makefile.am, stackchk01/Makefile.am,
stringto01/Makefile.am, termios/Makefile.am, termios01/Makefile.am,
termios01/init.c, termios02/Makefile.am: Fix bug so existing test
code for rtems_termios_baud_to_index() is executed.
Diffstat (limited to 'testsuites/libtests/termios01')
-rw-r--r-- | testsuites/libtests/termios01/Makefile.am | 1 | ||||
-rw-r--r-- | testsuites/libtests/termios01/init.c | 21 |
2 files changed, 10 insertions, 12 deletions
diff --git a/testsuites/libtests/termios01/Makefile.am b/testsuites/libtests/termios01/Makefile.am index 3d4d5156c4..f10b3f5054 100644 --- a/testsuites/libtests/termios01/Makefile.am +++ b/testsuites/libtests/termios01/Makefile.am @@ -14,7 +14,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg include $(top_srcdir)/../automake/compile.am include $(top_srcdir)/../automake/leaf.am -termios01_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel) AM_CPPFLAGS += -I$(top_srcdir)/include AM_CPPFLAGS += -I$(top_srcdir)/../support/include diff --git a/testsuites/libtests/termios01/init.c b/testsuites/libtests/termios01/init.c index 206d676b51..c73e5f3bf8 100644 --- a/testsuites/libtests/termios01/init.c +++ b/testsuites/libtests/termios01/init.c @@ -134,18 +134,17 @@ void test_termios_baud2index(void) i = rtems_termios_baud_to_index( -2 ); rtems_test_assert( i == -1 ); - if ( i != -1 ) - for (i=0 ; baud_table[i].constant != -1 ; i++ ) { - printf( - "termios_baud_to_index(B%" PRIdrtems_termios_baud_t ") - OK\n", - baud_table[i].baud - ); - index = rtems_termios_baud_to_index( baud_table[i].constant ); - if ( index != i ) { - printf( "ERROR - returned %d should be %d\n", index, i ); - rtems_test_exit(0); - } + for (i=0 ; baud_table[i].constant != -1 ; i++ ) { + printf( + "termios_baud_to_index(B%" PRIdrtems_termios_baud_t ") - OK\n", + baud_table[i].baud + ); + index = rtems_termios_baud_to_index( baud_table[i].constant ); + if ( index != i ) { + printf( "ERROR - returned %d should be %d\n", index, i ); + rtems_test_exit(0); } + } } /* |