<!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-06-28)</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-06-28 Joel Sherrill <joel.sherrill@oarcorp.com>

        * Makefile.am, configure.ac, malloctest/init.c, termios03/init.c,
        termios03/termios03.scn: Handle some of the VKILL and VERASE cases.
</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.191&r2=text&tr2=1.192&diff_format=h">M</a></td><td width='1%'>1.192</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/Makefile.am.diff?r1=text&tr1=1.30&r2=text&tr2=1.31&diff_format=h">M</a></td><td width='1%'>1.31</td><td width='100%'>testsuites/libtests/Makefile.am</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/configure.ac.diff?r1=text&tr1=1.37&r2=text&tr2=1.38&diff_format=h">M</a></td><td width='1%'>1.38</td><td width='100%'>testsuites/libtests/configure.ac</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/malloctest/init.c.diff?r1=text&tr1=1.39&r2=text&tr2=1.40&diff_format=h">M</a></td><td width='1%'>1.40</td><td width='100%'>testsuites/libtests/malloctest/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/termios03/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/libtests/termios03/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/termios03/termios03.scn.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/libtests/termios03/termios03.scn</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/libtests/ChangeLog:1.191 rtems/testsuites/libtests/ChangeLog:1.192
--- rtems/testsuites/libtests/ChangeLog:1.191   Mon Jun 28 09:23:19 2010
+++ rtems/testsuites/libtests/ChangeLog Mon Jun 28 12:05:21 2010
</font><font color='#997700'>@@ -1,5 +1,10 @@
</font> 2010-06-28        Joel Sherrill <joel.sherrill@oarcorp.com>
 
<font color='#000088'>+   * Makefile.am, configure.ac, malloctest/init.c, termios03/init.c,
+       termios03/termios03.scn: Handle some of the VKILL and VERASE cases.
+
+2010-06-28     Joel Sherrill <joel.sherrill@oarcorp.com>
+
</font>   * Makefile.am, configure.ac: Add new test to exercise termios RX and TX
        interrupt driven IO support.
        * termios04/.cvsignore, termios04/Makefile.am, termios04/init.c,

<font color='#006600'>diff -u rtems/testsuites/libtests/Makefile.am:1.30 rtems/testsuites/libtests/Makefile.am:1.31
--- rtems/testsuites/libtests/Makefile.am:1.30  Mon Jun 28 09:23:19 2010
+++ rtems/testsuites/libtests/Makefile.am       Mon Jun 28 12:05:23 2010
</font><font color='#997700'>@@ -8,6 +8,7 @@
</font> 
 SUBDIRS += bspcmdline01 cpuuse malloctest malloc02 malloc03 heapwalk \
     putenvtest monitor monitor02 rtmonuse stackchk stackchk01 \
<font color='#000088'>+    termios termios01 termios02 termios03 termios04 termios05 \
</font>     termios termios01 termios02 termios03 termios04 \
     rtems++ tztest block01 block02 block03 block04 block05 block06 block07 \
     block08 block09 block10 stringto01

<font color='#006600'>diff -u rtems/testsuites/libtests/configure.ac:1.37 rtems/testsuites/libtests/configure.ac:1.38
--- rtems/testsuites/libtests/configure.ac:1.37 Mon Jun 28 09:23:19 2010
+++ rtems/testsuites/libtests/configure.ac      Mon Jun 28 12:05:24 2010
</font><font color='#997700'>@@ -62,6 +62,7 @@
</font> termios02/Makefile
 termios03/Makefile
 termios04/Makefile
<font color='#000088'>+termios05/Makefile
</font> tztest/Makefile
 POSIX/Makefile
 ])

<font color='#006600'>diff -u rtems/testsuites/libtests/malloctest/init.c:1.39 rtems/testsuites/libtests/malloctest/init.c:1.40
--- rtems/testsuites/libtests/malloctest/init.c:1.39    Tue Jun 22 13:20:47 2010
+++ rtems/testsuites/libtests/malloctest/init.c Mon Jun 28 12:05:25 2010
</font><font color='#997700'>@@ -1045,20 +1045,13 @@
</font>   sc = posix_memalign( &p1, 2, 8 );
   fatal_posix_service_status( sc, EINVAL, "posix_memalign alignment of 2" );
 
<font color='#880000'>-  if ( sizeof(int) == 4 )
-    maximumShift = 31;
-  else if ( sizeof(int) == 2 )
-    maximumShift = 15;
-  else {
-    printf( "Unsupported int size == %zu\n", sizeof(int) );
-    rtems_test_exit(0);
-  }
-  for ( i=2 ; i<maximumShift ; i++ ) {
-    printf( "posix_memalign - alignment of %" PRId32 " -- OK\n",
-      (int32_t) 1 << i );
-    sc = posix_memalign( &p1, 1 << i, 8 );
</font><font color='#000088'>+  maximumShift = (sizeof(size_t) * CHAR_BIT) - 1;
+  for ( i=sizeof(void *) ; i<maximumShift ; i++ ) {
+    size_t alignment = 1 << i;
+    printf( "posix_memalign - alignment of %zd -- OK\n", alignment);
+    sc = posix_memalign( &p1, alignment, 8 );
</font>     if ( sc == ENOMEM ) {
<font color='#880000'>-      printf( "posix_memalign - ran out of memory trying %d\n", 1<<i );
</font><font color='#000088'>+      printf( "posix_memalign - ran out of memory trying %zd\n", alignment );
</font>       break;
     }
     posix_service_failed( sc, "posix_memalign alignment OK" );
<font color='#997700'>@@ -1066,8 +1059,8 @@
</font>     free( p1 );
   }
   for ( ; i<maximumShift ; i++ ) {
<font color='#880000'>-    printf( "posix_memalign - alignment of %" PRId32 " -- SKIPPED\n",
-      (int32_t) 1 << i );
</font><font color='#000088'>+    size_t alignment = 1 << i;
+    printf( "posix_memalign - alignment of %zd -- SKIPPED\n", alignment);
</font>   }
 
 }

<font color='#006600'>diff -u rtems/testsuites/libtests/termios03/init.c:1.2 rtems/testsuites/libtests/termios03/init.c:1.3
--- rtems/testsuites/libtests/termios03/init.c:1.2      Mon Jun 28 08:42:25 2010
+++ rtems/testsuites/libtests/termios03/init.c  Mon Jun 28 12:05:25 2010
</font><font color='#997700'>@@ -103,6 +103,10 @@
</font> const char ExpectedInput_3[] = "tab\ttab.\n";
 const char ExpectedInput_4[] = "cr\r.";
 const char ExpectedInput_5[] = "aBcDeFgH.\n";
<font color='#000088'>+const char ExpectedInput_6[] = "Testing VERASE\177.\n";
+const char ExpectedInput_7[] = "Testing VKILL\025.\n";
+const char ExpectedInput_8[] = "\177Testing VERASE in column 1.\n";
+const char ExpectedInput_9[] = "\t tab \tTesting VKILL after tab.\025\n";
</font> 
 rtems_task Init(
   rtems_task_argument argument
<font color='#997700'>@@ -125,6 +129,12 @@
</font>   read_helper( Test_fd, ExpectedInput_5 );
   change_iflag( "Disable to lower case mapping on input", IUCLC, 0 );
 
<font color='#000088'>+  read_helper( Test_fd, ExpectedInput_6 );
+  read_helper( Test_fd, ExpectedInput_7 );
+  read_helper( Test_fd, ExpectedInput_8 );
+  read_helper( Test_fd, ExpectedInput_9 );
+
+  puts( "" );
</font>   close_it();
 
   puts( "*** END OF TEST TERMIOS03 ***" );

<font color='#006600'>diff -u rtems/testsuites/libtests/termios03/termios03.scn:1.2 rtems/testsuites/libtests/termios03/termios03.scn:1.3
--- rtems/testsuites/libtests/termios03/termios03.scn:1.2       Mon Jun 28 08:42:25 2010
+++ rtems/testsuites/libtests/termios03/termios03.scn   Mon Jun 28 12:05:25 2010
</font><font color='#997700'>@@ -14,7 +14,7 @@
</font> Echoed 21 characters
 54 65 73 74 20 69 6e 70 75 74 20 74 68 69 73 20 |Test input this |
 69 73 2e 0d 0a                                  |is...           |
<font color='#880000'>-<span style="background-color: #FF0000"><CR></span>
</font><font color='#000088'>+
</font> Reading (expected):
 31 32 33 35 08 34 35 36 2e                      |1235.456.       |
 Read 10 bytes from read(2)
<font color='#997700'>@@ -51,5 +51,50 @@
</font> Echoed 11 characters
 61 62 63 64 65 66 67 68 2e 0d 0a                |abcdefgh...     |
 Changing c_iflag to: Disable to lower case mapping on input
<font color='#880000'>-close(/dev/test) - OK<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+
+Reading (expected):
+54 65 73 74 69 6e 67 20 56 45 52 41 53 45 7f 2e |Testing VERASE..|
+Read 15 bytes from read(2)
+54 65 73 74 69 6e 67 20 56 45 52 41 53 2e 0a    |Testing VERAS.. |
+Echoed 20 characters
+54 65 73 74 69 6e 67 20 56 45 52 41 53 45 08 20 |Testing VERASE. |
+08 2e 0d 0a                                     |....            |
+
+Reading (expected):
+54 65 73 74 69 6e 67 20 56 4b 49 4c 4c 15 2e    |Testing VKILL.. |
+Read 2 bytes from read(2)
+2e 0a                                           |..              |
+Echoed 55 characters
+54 65 73 74 69 6e 67 20 56 4b 49 4c 4c 08 20 08 |Testing VKILL. .|
+08 20 08 08 20 08 08 20 08 08 20 08 08 20 08 08 |. .. .. .. .. ..|
+20 08 08 20 08 08 20 08 08 20 08 08 20 08 08 20 | .. .. .. .. .. |
+08 08 20 08 2e 0d 0a
+
+Reading (expected):
+7f 54 65 73 74 69 6e 67 20 56 45 52 41 53 45 20 |.Testing VERASE |
+69 6e 20 63 6f 6c 75 6d 6e 20 31 2e             |in column 1.    |
+Read 28 bytes from read(2)
+54 65 73 74 69 6e 67 20 56 45 52 41 53 45 20 69 |Testing VERASE i|
+6e 20 63 6f 6c 75 6d 6e 20 31 2e 0a             |n column 1..    |
+Echoed 29 characters
+54 65 73 74 69 6e 67 20 56 45 52 41 53 45 20 69 |Testing VERASE i|
+6e 20 63 6f 6c 75 6d 6e 20 31 2e 0d 0a          |n column 1...   |
+
+Reading (expected):
+09 20 74 61 62 20 09 54 65 73 74 69 6e 67 20 56 |. tab .Testing V|
+4b 49 4c 4c 20 61 66 74 65 72 20 74 61 62 2e 15 |KILL after tab..|
+Read 1 bytes from read(2)
+0a                                              |.               |
+Echoed 140 characters
+20 20 20 20 20 20 20 20 20 74 61 62 20 20 20 20 |         tab    |
+54 65 73 74 69 6e 67 20 56 4b 49 4c 4c 20 61 66 |Testing VKILL af|
+74 65 72 20 74 61 62 2e 08 20 08 08 20 08 08 20 |ter tab.. .. .. |
+08 08 20 08 08 20 08 08 20 08 08 20 08 08 20 08 |.. .. .. .. .. .|
+08 20 08 08 20 08 08 20 08 08 20 08 08 20 08 08 |. .. .. .. .. ..|
+20 08 08 20 08 08 20 08 08 20 08 08 20 08 08 20 | .. .. .. .. .. |
+08 08 20 08 08 20 08 08 20 08 08 20 08 08 20 08 |.. .. .. .. .. .|
+08 08 08 08 20 08 08 20 08 08 20 08 08 20 08 08 |.... .. .. .. ..|
+20 08 08 08 08 08 08 08 08 08 0d 0a             | ...........    |
+
+close(/dev/test) - OK
</font> *** END OF TEST TERMIOS03 ***
</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>