<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2010-08-09)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-08-09 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1661/testing
* psxchroot01/test.c, psximfs01/init.c, psximfs02/init.c,
psxpipe01/init.c: Eliminate most references to RTEMS_Malloc_Heap.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/ChangeLog.diff?r1=text&tr1=1.305&r2=text&tr2=1.306&diff_format=h">M</a></td><td width='1%'>1.306</td><td width='100%'>testsuites/psxtests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxchroot01/test.c.diff?r1=text&tr1=1.9&r2=text&tr2=1.10&diff_format=h">M</a></td><td width='1%'>1.10</td><td width='100%'>testsuites/psxtests/psxchroot01/test.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psximfs01/init.c.diff?r1=text&tr1=1.5&r2=text&tr2=1.6&diff_format=h">M</a></td><td width='1%'>1.6</td><td width='100%'>testsuites/psxtests/psximfs01/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psximfs02/init.c.diff?r1=text&tr1=1.3&r2=text&tr2=1.4&diff_format=h">M</a></td><td width='1%'>1.4</td><td width='100%'>testsuites/psxtests/psximfs02/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxpipe01/init.c.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>testsuites/psxtests/psxpipe01/init.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/psxtests/ChangeLog:1.305 rtems/testsuites/psxtests/ChangeLog:1.306
--- rtems/testsuites/psxtests/ChangeLog:1.305 Mon Aug 9 00:24:00 2010
+++ rtems/testsuites/psxtests/ChangeLog Mon Aug 9 09:29:33 2010
</font><font color='#997700'>@@ -1,3 +1,9 @@
</font><font color='#000088'>+2010-08-09 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ PR 1661/testing
+ * psxchroot01/test.c, psximfs01/init.c, psximfs02/init.c,
+ psxpipe01/init.c: Eliminate most references to RTEMS_Malloc_Heap.
+
</font> 2010-08-09 Ralf Corsépius <ralf.corsepius@rtems.org>
* psxpasswd02/init.c: Remove unused variable.
<font color='#006600'>diff -u rtems/testsuites/psxtests/psxchroot01/test.c:1.9 rtems/testsuites/psxtests/psxchroot01/test.c:1.10
--- rtems/testsuites/psxtests/psxchroot01/test.c:1.9 Fri Jul 16 14:19:09 2010
+++ rtems/testsuites/psxtests/psxchroot01/test.c Mon Aug 9 09:29:33 2010
</font><font color='#997700'>@@ -34,7 +34,7 @@
</font> #include <rtems/libio.h>
#include <rtems/userenv.h>
#include <pmacros.h>
<font color='#880000'>-#include <rtems/score/heap.h>
</font><font color='#000088'>+#include <rtems/libcsupport.h>
</font>
void touch( char *file )
{
<font color='#997700'>@@ -64,8 +64,6 @@
</font> }
#if defined(__rtems__)
<font color='#880000'>-extern Heap_Control *RTEMS_Malloc_Heap;
-
</font> int test_main(void)
#else
int main(
<font color='#997700'>@@ -76,7 +74,6 @@
</font> {
int status;
void *alloc_ptr = (void *)0;
<font color='#880000'>- Heap_Information_block Info;
</font> /*
* This test is the C equivalent of this sequence.
#mkdir /one
<font color='#997700'>@@ -108,8 +105,7 @@
</font> touch( "/one/two/two.test" );
puts( "allocate most of memory - attempt to fail chroot - expect ENOTSUP" );
<font color='#880000'>- _Heap_Get_information(RTEMS_Malloc_Heap, &Info);
- alloc_ptr = malloc( Info.Free.largest - 4 );
</font><font color='#000088'>+ alloc_ptr = malloc( malloc_free_space() - 4 );
</font> rtems_test_assert( alloc_ptr != NULL );
status = chroot( "/one" );
<font color='#006600'>diff -u rtems/testsuites/psxtests/psximfs01/init.c:1.5 rtems/testsuites/psxtests/psximfs01/init.c:1.6
--- rtems/testsuites/psxtests/psximfs01/init.c:1.5 Fri Aug 6 19:22:46 2010
+++ rtems/testsuites/psxtests/psximfs01/init.c Mon Aug 9 09:29:33 2010
</font><font color='#997700'>@@ -17,6 +17,7 @@
</font> #include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
<font color='#000088'>+#include <rtems/libcsupport.h>
</font>
int TestFd;
uint8_t Buffer[256];
<font color='#997700'>@@ -207,15 +208,12 @@
</font> rtems_test_assert( rc == 0 );
}
<font color='#880000'>-extern Heap_Control *RTEMS_Malloc_Heap;
-
</font> rtems_task Init(
rtems_task_argument argument
)
{
int i;
void *alloc_ptr = (void *)0;
<font color='#880000'>- Heap_Information_block Info;
</font> int position = 0;
int status = 0;
<font color='#997700'>@@ -240,8 +238,7 @@
</font> /*
* Allocate the heap, so that extend cannot be successful
*/
<font color='#880000'>- _Heap_Get_information( RTEMS_Malloc_Heap, &Info );
- alloc_ptr = malloc( Info.Free.largest-4 );
</font><font color='#000088'>+ alloc_ptr = malloc( malloc_free_space() - 4 );
</font>
extend_helper();
<font color='#006600'>diff -u rtems/testsuites/psxtests/psximfs02/init.c:1.3 rtems/testsuites/psxtests/psximfs02/init.c:1.4
--- rtems/testsuites/psxtests/psximfs02/init.c:1.3 Fri Aug 6 19:22:46 2010
+++ rtems/testsuites/psxtests/psximfs02/init.c Mon Aug 9 09:29:33 2010
</font><font color='#997700'>@@ -18,8 +18,8 @@
</font> #include <fcntl.h>
#include <errno.h>
#include <rtems/libio.h>
<font color='#000088'>+#include <rtems/libcsupport.h>
</font>
<font color='#880000'>-extern Heap_Control *RTEMS_Malloc_Heap;
</font> void IMFS_dump( void );
rtems_task Init(
rtems_task_argument argument
<font color='#997700'>@@ -85,8 +85,7 @@
</font> rtems_test_assert( errno == EACCES );
puts( "Allocate most of heap" );
<font color='#880000'>- _Heap_Get_information( RTEMS_Malloc_Heap, &Info );
- alloc_ptr = malloc( Info.Free.largest - 150 );
</font><font color='#000088'>+ alloc_ptr = malloc( malloc_free_space() - 150 );
</font>
puts( "Attempt to mount a fs at /dir01 -- expect ENOMEM" );
status = mount( NULL,
<font color='#997700'>@@ -101,8 +100,7 @@
</font> free( alloc_ptr );
puts( "Allocate most of heap" );
<font color='#880000'>- _Heap_Get_information( RTEMS_Malloc_Heap, &Info );
- alloc_ptr = malloc( Info.Free.largest - 4 );
</font><font color='#000088'>+ alloc_ptr = malloc( malloc_free_space() - 4 );
</font>
puts( "Changing directory to /" );
status = chdir( "/" );
<font color='#006600'>diff -u rtems/testsuites/psxtests/psxpipe01/init.c:1.2 rtems/testsuites/psxtests/psxpipe01/init.c:1.3
--- rtems/testsuites/psxtests/psxpipe01/init.c:1.2 Fri Aug 6 02:44:23 2010
+++ rtems/testsuites/psxtests/psxpipe01/init.c Mon Aug 9 09:29:33 2010
</font><font color='#997700'>@@ -16,10 +16,7 @@
</font> #include <fcntl.h>
#include <unistd.h>
#include <errno.h>
<font color='#880000'>-
-#include <rtems/score/heap.h>
-
-extern Heap_Control *RTEMS_Malloc_Heap;
</font><font color='#000088'>+#include <rtems/libcsupport.h>
</font>
rtems_task Init(
rtems_task_argument not_used
<font color='#997700'>@@ -29,7 +26,6 @@
</font> int dummy_fd[2] = {0,0};
int status = 0;
void *alloc_ptr = (void *)0;
<font color='#880000'>- Heap_Information_block Info;
</font>
puts( "*** TEST POSIX PIPE CREATION - 01 ***" );
<font color='#997700'>@@ -54,8 +50,7 @@
</font> status |= close( fd[1] );
rtems_test_assert( status == 0 );
<font color='#880000'>- _Heap_Get_information(RTEMS_Malloc_Heap, &Info);
- alloc_ptr = malloc(Info.Free.largest-4);
</font><font color='#000088'>+ alloc_ptr = malloc( malloc_free_space() - 4 );
</font>
/* case where mkfifo fails */
puts( "Init - attempt to create pipe -- expect ENOMEM" );
</pre>
<p> </p>
<a name='cs2'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-08-09 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1661/testing
* spfifo02/init.c, spmountmgr01/init.c, spprivenv01/init.c: Eliminate
most references to RTEMS_Malloc_Heap.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/ChangeLog.diff?r1=text&tr1=1.412&r2=text&tr2=1.413&diff_format=h">M</a></td><td width='1%'>1.413</td><td width='100%'>testsuites/sptests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfifo02/init.c.diff?r1=text&tr1=1.4&r2=text&tr2=1.5&diff_format=h">M</a></td><td width='1%'>1.5</td><td width='100%'>testsuites/sptests/spfifo02/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spmountmgr01/init.c.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>testsuites/sptests/spmountmgr01/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spprivenv01/init.c.diff?r1=text&tr1=1.1&r2=text&tr2=1.2&diff_format=h">M</a></td><td width='1%'>1.2</td><td width='100%'>testsuites/sptests/spprivenv01/init.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/sptests/ChangeLog:1.412 rtems/testsuites/sptests/ChangeLog:1.413
--- rtems/testsuites/sptests/ChangeLog:1.412 Mon Aug 9 03:46:56 2010
+++ rtems/testsuites/sptests/ChangeLog Mon Aug 9 09:29:36 2010
</font><font color='#997700'>@@ -1,3 +1,9 @@
</font><font color='#000088'>+2010-08-09 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ PR 1661/testing
+ * spfifo02/init.c, spmountmgr01/init.c, spprivenv01/init.c: Eliminate
+ most references to RTEMS_Malloc_Heap.
+
</font> 2010-08-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
* sp09/screen12.c: Update for rtems_region_create() changes.
<font color='#006600'>diff -u rtems/testsuites/sptests/spfifo02/init.c:1.4 rtems/testsuites/sptests/spfifo02/init.c:1.5
--- rtems/testsuites/sptests/spfifo02/init.c:1.4 Thu Jun 24 14:46:40 2010
+++ rtems/testsuites/sptests/spfifo02/init.c Mon Aug 9 09:29:36 2010
</font><font color='#997700'>@@ -17,7 +17,7 @@
</font> #include <fcntl.h>
#include <unistd.h>
#include <errno.h>
<font color='#880000'>-#include <rtems/score/heap.h>
</font><font color='#000088'>+#include <rtems/libcsupport.h>
</font>
#define MAXIMUM 10
#define NUM_OPEN_REQ 26
<font color='#997700'>@@ -28,8 +28,6 @@
</font> rtems_id Semaphores[MAXIMUM];
int SemaphoreCount;
<font color='#880000'>-extern Heap_Control *RTEMS_Malloc_Heap;
-
</font> void create_all_barriers(void)
{
rtems_status_code status;
<font color='#997700'>@@ -132,7 +130,6 @@
</font> void *alloc_ptr = (void *)0;
int num_opens = 0;
int index = 0;
<font color='#880000'>- Heap_Information_block Info;
</font>
puts( "\n\n*** TEST FIFO 08 ***" );
<font color='#997700'>@@ -154,8 +151,7 @@
</font>
delete_semaphore();
<font color='#880000'>- _Heap_Get_information(RTEMS_Malloc_Heap, &Info);
- alloc_ptr = malloc(Info.Free.largest-4);
</font><font color='#000088'>+ alloc_ptr = malloc( malloc_free_space() - 4 );
</font> puts("Opening FIFO.. expect ENOMEM since no memory is available");
open_fifo(ENOMEM, O_RDWR);
<font color='#006600'>diff -u rtems/testsuites/sptests/spmountmgr01/init.c:1.2 rtems/testsuites/sptests/spmountmgr01/init.c:1.3
--- rtems/testsuites/sptests/spmountmgr01/init.c:1.2 Fri Jul 16 10:01:11 2010
+++ rtems/testsuites/sptests/spmountmgr01/init.c Mon Aug 9 09:29:36 2010
</font><font color='#997700'>@@ -11,11 +11,9 @@
</font>
#include <tmacros.h>
#include "test_support.h"
<font color='#880000'>-#include <rtems/score/heap.h>
</font> #include <errno.h>
#include <rtems/libio_.h>
<font color='#880000'>-
-extern Heap_Control *RTEMS_Malloc_Heap;
</font><font color='#000088'>+#include <rtems/libcsupport.h>
</font>
int fs_mount( rtems_filesystem_mount_table_entry_t *mt_entry,
const void *data )
<font color='#997700'>@@ -29,13 +27,11 @@
</font> {
int status = 0;
void *alloc_ptr = (void *)0;
<font color='#880000'>- Heap_Information_block Info;
</font>
puts( "\n\n*** TEST MOUNT MANAGER ROUTINE - 01 ***" );
puts( "Init - allocating most of heap -- OK" );
<font color='#880000'>- _Heap_Get_information(RTEMS_Malloc_Heap, &Info);
- alloc_ptr = malloc( Info.Free.largest - 4 );
</font><font color='#000088'>+ alloc_ptr = malloc( malloc_free_space() - 4 );
</font> rtems_test_assert( alloc_ptr != NULL );
puts( "Init - attempt to register filesystem fs - expect ENOMEM" );
<font color='#006600'>diff -u rtems/testsuites/sptests/spprivenv01/init.c:1.1 rtems/testsuites/sptests/spprivenv01/init.c:1.2
--- rtems/testsuites/sptests/spprivenv01/init.c:1.1 Thu Jul 29 17:28:51 2010
+++ rtems/testsuites/sptests/spprivenv01/init.c Mon Aug 9 09:29:36 2010
</font><font color='#997700'>@@ -11,10 +11,8 @@
</font>
#include <tmacros.h>
#include "test_support.h"
<font color='#880000'>-#include <rtems/score/heap.h>
</font> #include <rtems/libio_.h>
<font color='#880000'>-
-extern Heap_Control *RTEMS_Malloc_Heap;
</font><font color='#000088'>+#include <rtems/libcsupport.h>
</font>
rtems_task task_routine( rtems_task_argument not_used )
{
<font color='#997700'>@@ -35,16 +33,15 @@
</font> int sc = 0;
bool status = 0;
void *alloc_ptr = (void *)0;
<font color='#880000'>- Heap_Information_block Info;
</font> rtems_id current_task_id;
rtems_id task_id;
rtems_name another_task_name;
<font color='#880000'>-
</font><font color='#000088'>+ Heap_Information_block Info;
+<span style="background-color: #FF0000"> </span>
</font> puts( "\n\n*** TEST USER ENVIRONMENT ROUTINE - 01 ***" );
puts( "Init - allocating most of heap -- OK" );
<font color='#880000'>- _Heap_Get_information(RTEMS_Malloc_Heap, &Info);
- alloc_ptr = malloc( Info.Free.largest - 4 );
</font><font color='#000088'>+ alloc_ptr = malloc( malloc_free_space() - 4 );
</font> rtems_test_assert( alloc_ptr != NULL );
puts( "Init - attempt to reset env - expect RTEMS_NO_MEMORY" );
</pre>
<p> </p>
<a name='cs3'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-08-09 Bharath Suri <bharath.s.jois@gmail.com>
PR 1661/testing
* termios01/init.c, termios01/termios_testdriver.c,
termios01/termios01.scn: Changes to improve coverage of
rtems_termios_open routine.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/ChangeLog.diff?r1=text&tr1=1.232&r2=text&tr2=1.233&diff_format=h">M</a></td><td width='1%'>1.233</td><td width='100%'>testsuites/libtests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/termios01/init.c.diff?r1=text&tr1=1.11&r2=text&tr2=1.12&diff_format=h">M</a></td><td width='1%'>1.12</td><td width='100%'>testsuites/libtests/termios01/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/termios01/termios01.scn.diff?r1=text&tr1=1.5&r2=text&tr2=1.6&diff_format=h">M</a></td><td width='1%'>1.6</td><td width='100%'>testsuites/libtests/termios01/termios01.scn</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/termios01/termios_testdriver.c.diff?r1=text&tr1=1.7&r2=text&tr2=1.8&diff_format=h">M</a></td><td width='1%'>1.8</td><td width='100%'>testsuites/libtests/termios01/termios_testdriver.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/libtests/ChangeLog:1.232 rtems/testsuites/libtests/ChangeLog:1.233
--- rtems/testsuites/libtests/ChangeLog:1.232 Fri Aug 6 19:24:47 2010
+++ rtems/testsuites/libtests/ChangeLog Mon Aug 9 09:36:47 2010
</font><font color='#997700'>@@ -1,3 +1,10 @@
</font><font color='#000088'>+2010-08-09 Bharath Suri <bharath.s.jois@gmail.com>
+
+ PR 1661/testing
+ * termios01/init.c, termios01/termios_testdriver.c,
+ termios01/termios01.scn: Changes to improve coverage of
+ rtems_termios_open routine.
+
</font> 2010-08-06 Bharath Suri <bharath.s.jois@gmail.com>
PR 1654/testing
<font color='#006600'>diff -u rtems/testsuites/libtests/termios01/init.c:1.11 rtems/testsuites/libtests/termios01/init.c:1.12
--- rtems/testsuites/libtests/termios01/init.c:1.11 Wed Jul 14 10:59:37 2010
+++ rtems/testsuites/libtests/termios01/init.c Mon Aug 9 09:36:47 2010
</font><font color='#997700'>@@ -469,21 +469,9 @@
</font> test_termios_baud2number();
test_termios_number_to_baud();
<font color='#880000'>- /*
- * tcsetattr - ERROR invalid operation
- */
- puts( "tcsetattr - invalid operation - ENOTSUP" );
- rc = tcsetattr( 0, 0x12345, &t );
- rtems_test_assert( rc == -1 );
- rtems_test_assert( errno == ENOTSUP );
-<span style="background-color: #FF0000"> </span>
- /*
- * tcsetattr - TCSADRAIN
- */
- puts( "\ntcsetattr - drain - OK" );
- rc = tcsetattr( 1, TCSADRAIN, &t );
- rtems_test_assert( rc == 0 );
-<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+ sc = rtems_termios_bufsize( 256, 138, 64 );
+ directive_failed( sc, "rtems_termios_bufsize" );
+
</font> /*
* Register a driver
*/
<font color='#997700'>@@ -505,6 +493,21 @@
</font> rtems_test_exit(0);
}
<font color='#000088'>+ /*
+ * tcsetattr - ERROR invalid operation
+ */
+ puts( "tcsetattr - invalid operation - ENOTSUP" );
+ rc = tcsetattr( test, 0x12345, &t );
+ rtems_test_assert( rc == -1 );
+ rtems_test_assert( errno == ENOTSUP );
+<span style="background-color: #FF0000"> </span>
+ /*
+ * tcsetattr - TCSADRAIN
+ */
+ puts( "\ntcsetattr - drain - OK" );
+ rc = tcsetattr( test, TCSADRAIN, &t );
+ rtems_test_assert( rc == 0 );
+
</font> test_termios_set_baud(test);
puts( "Init - close - " TERMIOS_TEST_DRIVER_DEVICE_NAME " - OK" );
<font color='#997700'>@@ -588,6 +591,22 @@
</font> rtems_test_exit(0);
}
<font color='#000088'>+ /*
+ TODO: This must be enabled, but is facing a strange problem<span style="background-color: #FF0000"> </span>
+ where the code dies off at rtems_termios_open.
+ */
+
+ /*
+ puts( "Multiple open of the device" );
+ for( ; index < 26; ++index ) {
+ printf( "...%d ", index );
+ test = open( TERMIOS_TEST_DRIVER_DEVICE_NAME, O_RDWR );
+ rtems_test_assert( test != -1 );
+ rc = close( test );
+ rtems_test_assert( rc == 0 );
+ }
+ puts( "" );
+ */
</font> puts( "*** END OF TEST TERMIOS 01 ***" );
rtems_test_exit(0);
}
<font color='#006600'>diff -u rtems/testsuites/libtests/termios01/termios01.scn:1.5 rtems/testsuites/libtests/termios01/termios01.scn:1.6
--- rtems/testsuites/libtests/termios01/termios01.scn:1.5 Wed Jul 14 10:59:37 2010
+++ rtems/testsuites/libtests/termios01/termios01.scn Mon Aug 9 09:36:47 2010
</font><font color='#997700'>@@ -32,7 +32,7 @@
</font> termios_baud_to_number(B110) - OK
termios_baud_to_number(B134) - OK
termios_baud_to_number(B150) - OK
<font color='#880000'>-termios_baud_to_number(B200) - O
</font><font color='#000088'>+termios_baud_to_number(B200) - OK
</font> termios_baud_to_number(B300) - OK
termios_baud_to_number(B600) - OK
termios_baud_to_number(B1200) - OK
<font color='#997700'>@@ -70,9 +70,6 @@
</font> termios_number_to_baud(B115200) - OK
termios_number_to_baud(B230400) - OK
termios_number_to_baud(B460800) - OK
<font color='#880000'>-tcsetattr - invalid operation - ENOTSUP
-
-tcsetattr - drain - OK<span style="background-color: #FF0000"><CR></span>
</font>
Init - rtems_io_register_driver - Termios Test Driver - OK
Termios_test_driver - rtems_io_register /dev/test - OK
<font color='#997700'>@@ -80,87 +77,91 @@
</font> Init - open - /dev/test - OK
Termios_test_driver - rtems_set_initial_baud - bad baud - OK
Termios_test_driver - rtems_set_initial_baud - 38400 - OK
<font color='#000088'>+tcsetattr - invalid operation - ENOTSUP
+
+tcsetattr - drain - OK
+set_attributes - B0 5-NONE-1
</font> Test termios setting device baud rate...
tcsetattr(TCSANOW, B0) - OK
<font color='#880000'>-set_attributes - B0 8-NONE-1
</font><font color='#000088'>+set_attributes - B0 5-NONE-1
</font> tcsetattr(TCSADRAIN, B0) - OK
<font color='#880000'>-set_attributes - B0 8-NONE-1
</font><font color='#000088'>+set_attributes - B0 5-NONE-1
</font> tcsetattr(TCSANOW, B50) - OK
<font color='#880000'>-set_attributes - B50 8-NONE-1
</font><font color='#000088'>+set_attributes - B50 5-NONE-1
</font> tcsetattr(TCSADRAIN, B50) - OK
<font color='#880000'>-set_attributes - B50 8-NONE-1
</font><font color='#000088'>+set_attributes - B50 5-NONE-1
</font> tcsetattr(TCSANOW, B75) - OK
<font color='#880000'>-set_attributes - B75 8-NONE-1
</font><font color='#000088'>+set_attributes - B75 5-NONE-1
</font> tcsetattr(TCSADRAIN, B75) - OK
<font color='#880000'>-set_attributes - B75 8-NONE-1
</font><font color='#000088'>+set_attributes - B75 5-NONE-1
</font> tcsetattr(TCSANOW, B110) - OK
<font color='#880000'>-set_attributes - B110 8-NONE-1
</font><font color='#000088'>+set_attributes - B110 5-NONE-1
</font> tcsetattr(TCSADRAIN, B110) - OK
<font color='#880000'>-set_attributes - B110 8-NONE-1
</font><font color='#000088'>+set_attributes - B110 5-NONE-1
</font> tcsetattr(TCSANOW, B134) - OK
<font color='#880000'>-set_attributes - B134 8-NONE-1
</font><font color='#000088'>+set_attributes - B134 5-NONE-1
</font> tcsetattr(TCSADRAIN, B134) - OK
<font color='#880000'>-set_attributes - B134 8-NONE-1
</font><font color='#000088'>+set_attributes - B134 5-NONE-1
</font> tcsetattr(TCSANOW, B150) - OK
<font color='#880000'>-set_attributes - B150 8-NONE-1
</font><font color='#000088'>+set_attributes - B150 5-NONE-1
</font> tcsetattr(TCSADRAIN, B150) - OK
<font color='#880000'>-set_attributes - B150 8-NONE-1
</font><font color='#000088'>+set_attributes - B150 5-NONE-1
</font> tcsetattr(TCSANOW, B200) - OK
<font color='#880000'>-set_attributes - B200 8-NONE-1
</font><font color='#000088'>+set_attributes - B200 5-NONE-1
</font> tcsetattr(TCSADRAIN, B200) - OK
<font color='#880000'>-set_attributes - B200 8-NONE-1
</font><font color='#000088'>+set_attributes - B200 5-NONE-1
</font> tcsetattr(TCSANOW, B300) - OK
<font color='#880000'>-set_attributes - B300 8-NONE-1
</font><font color='#000088'>+set_attributes - B300 5-NONE-1
</font> tcsetattr(TCSADRAIN, B300) - OK
<font color='#880000'>-set_attributes - B300 8-NONE-1
</font><font color='#000088'>+set_attributes - B300 5-NONE-1
</font> tcsetattr(TCSANOW, B600) - OK
<font color='#880000'>-set_attributes - B600 8-NONE-1
</font><font color='#000088'>+set_attributes - B600 5-NONE-1
</font> tcsetattr(TCSADRAIN, B600) - OK
<font color='#880000'>-set_attributes - B600 8-NONE-1
</font><font color='#000088'>+set_attributes - B600 5-NONE-1
</font> tcsetattr(TCSANOW, B1200) - OK
<font color='#880000'>-set_attributes - B1200 8-NONE-1
</font><font color='#000088'>+set_attributes - B1200 5-NONE-1
</font> tcsetattr(TCSADRAIN, B1200) - OK
<font color='#880000'>-set_attributes - B1200 8-NONE-1
</font><font color='#000088'>+set_attributes - B1200 5-NONE-1
</font> tcsetattr(TCSANOW, B1800) - OK
<font color='#880000'>-set_attributes - B1800 8-NONE-1
</font><font color='#000088'>+set_attributes - B1800 5-NONE-1
</font> tcsetattr(TCSADRAIN, B1800) - OK
<font color='#880000'>-set_attributes - B1800 8-NONE-1
</font><font color='#000088'>+set_attributes - B1800 5-NONE-1
</font> tcsetattr(TCSANOW, B2400) - OK
<font color='#880000'>-set_attributes - B2400 8-NONE-1
</font><font color='#000088'>+set_attributes - B2400 5-NONE-1
</font> tcsetattr(TCSADRAIN, B2400) - OK
<font color='#880000'>-set_attributes - B2400 8-NONE-1
</font><font color='#000088'>+set_attributes - B2400 5-NONE-1
</font> tcsetattr(TCSANOW, B4800) - OK
<font color='#880000'>-set_attributes - B4800 8-NONE-1
</font><font color='#000088'>+set_attributes - B4800 5-NONE-1
</font> tcsetattr(TCSADRAIN, B4800) - OK
<font color='#880000'>-set_attributes - B4800 8-NONE-1
</font><font color='#000088'>+set_attributes - B4800 5-NONE-1
</font> tcsetattr(TCSANOW, B9600) - OK
<font color='#880000'>-set_attributes - B9600 8-NONE-1
</font><font color='#000088'>+set_attributes - B9600 5-NONE-1
</font> tcsetattr(TCSADRAIN, B9600) - OK
<font color='#880000'>-set_attributes - B9600 8-NONE-1
</font><font color='#000088'>+set_attributes - B9600 5-NONE-1
</font> tcsetattr(TCSANOW, B19200) - OK
<font color='#880000'>-set_attributes - B19200 8-NONE-1
</font><font color='#000088'>+set_attributes - B19200 5-NONE-1
</font> tcsetattr(TCSADRAIN, B19200) - OK
<font color='#880000'>-set_attributes - B19200 8-NONE-1
</font><font color='#000088'>+set_attributes - B19200 5-NONE-1
</font> tcsetattr(TCSANOW, B38400) - OK
<font color='#880000'>-set_attributes - B38400 8-NONE-1
</font><font color='#000088'>+set_attributes - B38400 5-NONE-1
</font> tcsetattr(TCSADRAIN, B38400) - OK
<font color='#880000'>-set_attributes - B38400 8-NONE-1
</font><font color='#000088'>+set_attributes - B38400 5-NONE-1
</font> tcsetattr(TCSANOW, B57600) - OK
<font color='#880000'>-set_attributes - B57600 8-NONE-1
</font><font color='#000088'>+set_attributes - B57600 5-NONE-1
</font> tcsetattr(TCSADRAIN, B57600) - OK
<font color='#880000'>-set_attributes - B57600 8-NONE-1
</font><font color='#000088'>+set_attributes - B57600 5-NONE-1
</font> tcsetattr(TCSANOW, B115200) - OK
<font color='#880000'>-set_attributes - B115200 8-NONE-1
</font><font color='#000088'>+set_attributes - B115200 5-NONE-1
</font> tcsetattr(TCSADRAIN, B115200) - OK
<font color='#880000'>-set_attributes - B115200 8-NONE-1
</font><font color='#000088'>+set_attributes - B115200 5-NONE-1
</font> tcsetattr(TCSANOW, B230400) - OK
<font color='#880000'>-set_attributes - B230400 8-NONE-1
</font><font color='#000088'>+set_attributes - B230400 5-NONE-1
</font> tcsetattr(TCSADRAIN, B230400) - OK
<font color='#880000'>-set_attributes - B230400 8-NONE-1
</font><font color='#000088'>+set_attributes - B230400 5-NONE-1
</font> tcsetattr(TCSANOW, B460800) - OK
<font color='#880000'>-set_attributes - B460800 8-NONE-1
</font><font color='#000088'>+set_attributes - B460800 5-NONE-1
</font> tcsetattr(TCSADRAIN, B460800) - OK
<font color='#880000'>-set_attributes - B460800 8-NONE-1
</font><font color='#000088'>+set_attributes - B460800 5-NONE-1
</font> Init - close - /dev/test - OK
Init - open - /dev/test - OK
<font color='#006600'>diff -u rtems/testsuites/libtests/termios01/termios_testdriver.c:1.7 rtems/testsuites/libtests/termios01/termios_testdriver.c:1.8
--- rtems/testsuites/libtests/termios01/termios_testdriver.c:1.7 Thu Dec 10 08:26:32 2009
+++ rtems/testsuites/libtests/termios01/termios_testdriver.c Mon Aug 9 09:36:47 2010
</font><font color='#997700'>@@ -16,6 +16,7 @@
</font> #include <stdlib.h>
#include <termios.h>
#include <rtems/termiostypes.h>
<font color='#000088'>+#include <rtems/libcsupport.h>
</font> #include "termios_testdriver.h"
int termios_test_driver_inbyte_nonblocking( int port )
<font color='#997700'>@@ -138,6 +139,10 @@
</font> rtems_status_code sc;
int rc;
rtems_libio_open_close_args_t *args = arg;
<font color='#000088'>+ void *alloc_ptr = (void *)0;
+ static int test = 0;
+ size_t freeMemory;
+<span style="background-color: #FF0000"> </span>
</font> static const rtems_termios_callbacks Callbacks = {
NULL, /* firstOpen */
NULL, /* lastClose */
<font color='#997700'>@@ -154,6 +159,41 @@
</font> rtems_test_exit(0);
}
<font color='#000088'>+ freeMemory = malloc_free_space();
+ if( test == 0 ) {
+ alloc_ptr = malloc( freeMemory - 4 );
+<span style="background-color: #FF0000"> </span>
+ sc = rtems_termios_open (major, minor, arg, &Callbacks);
+ rtems_test_assert( sc == RTEMS_NO_MEMORY );
+<span style="background-color: #FF0000"> </span>
+ free( alloc_ptr );
+ alloc_ptr = malloc( freeMemory - 4 - 10 -
+ sizeof( struct rtems_termios_tty ) );
+<span style="background-color: #FF0000"> </span>
+ sc = rtems_termios_open (major, minor, arg, &Callbacks);
+ rtems_test_assert( sc == RTEMS_NO_MEMORY );
+<span style="background-color: #FF0000"> </span>
+ free( alloc_ptr );
+ alloc_ptr = malloc( freeMemory - 4 - 20 -
+ sizeof( struct rtems_termios_tty ) -
+ 128 );
+<span style="background-color: #FF0000"> </span>
+ sc = rtems_termios_open (major, minor, arg, &Callbacks);
+ rtems_test_assert( sc == RTEMS_NO_MEMORY );
+<span style="background-color: #FF0000"> </span>
+ free( alloc_ptr );
+ alloc_ptr = malloc( freeMemory - 4 - 20 -
+ sizeof( struct rtems_termios_tty ) -
+ 128 -
+ 80 );
+<span style="background-color: #FF0000"> </span>
+ sc = rtems_termios_open (major, minor, arg, &Callbacks);
+ rtems_test_assert( sc == RTEMS_NO_MEMORY );
+<span style="background-color: #FF0000"> </span>
+ free( alloc_ptr );
+ test = 1;
+ }
+<span style="background-color: #FF0000"> </span>
</font> sc = rtems_termios_open (major, minor, arg, &Callbacks);
directive_failed( sc, "rtems_termios_open" );
</pre>
<p> </p>
<a name='cs4'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-08-09 Bharath Suri <bharath.s.jois@gmail.com>
PR 1661/testing
* psximfs02/init.c: Changes to improve coverage of
imfs_initsupp.c, by using a bad value for
CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/ChangeLog.diff?r1=text&tr1=1.306&r2=text&tr2=1.307&diff_format=h">M</a></td><td width='1%'>1.307</td><td width='100%'>testsuites/psxtests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psximfs02/init.c.diff?r1=text&tr1=1.4&r2=text&tr2=1.5&diff_format=h">M</a></td><td width='1%'>1.5</td><td width='100%'>testsuites/psxtests/psximfs02/init.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/psxtests/ChangeLog:1.306 rtems/testsuites/psxtests/ChangeLog:1.307
--- rtems/testsuites/psxtests/ChangeLog:1.306 Mon Aug 9 09:29:33 2010
+++ rtems/testsuites/psxtests/ChangeLog Mon Aug 9 09:37:01 2010
</font><font color='#997700'>@@ -1,3 +1,10 @@
</font><font color='#000088'>+2010-08-09 Bharath Suri <bharath.s.jois@gmail.com>
+
+ PR 1661/testing
+ * psximfs02/init.c: Changes to improve coverage of
+ imfs_initsupp.c, by using a bad value for
+ CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK
+
</font> 2010-08-09 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1661/testing
<font color='#006600'>diff -u rtems/testsuites/psxtests/psximfs02/init.c:1.4 rtems/testsuites/psxtests/psximfs02/init.c:1.5
--- rtems/testsuites/psxtests/psximfs02/init.c:1.4 Mon Aug 9 09:29:33 2010
+++ rtems/testsuites/psxtests/psximfs02/init.c Mon Aug 9 09:37:01 2010
</font><font color='#997700'>@@ -185,6 +185,7 @@
</font> #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
#define CONFIGURE_MAXIMUM_TASKS 1
<font color='#000088'>+#define CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK 15
</font> #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 4
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
</pre>
<p> </p>
<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>