<!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 (2011-01-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>2011-01-28 Bharath Suri <bharath.s.jois@gmail.com>

        PR 1661/testing
        * termios06/init.c: Extend the test to cover sections related to
        flow control in termios.c
        * termios06/termios06.doc: Updated test concept
        * termios06/termios06.scn: Updated test run log
</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.245&r2=text&tr2=1.246&diff_format=h">M</a></td><td width='1%'>1.246</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/termios06/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/libtests/termios06/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/termios06/termios06.doc.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/libtests/termios06/termios06.doc</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/termios06/termios06.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/termios06/termios06.scn</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/libtests/ChangeLog:1.245 rtems/testsuites/libtests/ChangeLog:1.246
--- rtems/testsuites/libtests/ChangeLog:1.245   Mon Jan 10 00:07:18 2011
+++ rtems/testsuites/libtests/ChangeLog Fri Jan 28 09:39:46 2011
</font><font color='#997700'>@@ -1,3 +1,11 @@
</font><font color='#000088'>+2011-01-28    Bharath Suri <bharath.s.jois@gmail.com>
+
+       PR 1661/testing
+       * termios06/init.c: Extend the test to cover sections related to
+       flow control in termios.c
+       * termios06/termios06.doc: Updated test concept
+       * termios06/termios06.scn: Updated test run log
+
</font> 2011-01-10        Ralf Corsépius <ralf.corsepius@rtems.org>
 
        * math/domath.in: Fix typo in printf.

<font color='#006600'>diff -u rtems/testsuites/libtests/termios06/init.c:1.3 rtems/testsuites/libtests/termios06/init.c:1.4
--- rtems/testsuites/libtests/termios06/init.c:1.3      Mon Jul 19 08:54:46 2010
+++ rtems/testsuites/libtests/termios06/init.c  Fri Jan 28 09:39:46 2011
</font><font color='#997700'>@@ -89,10 +89,35 @@
</font> void ioctl_it(void)
 {
   int rc;
<font color='#000088'>+  struct termios t;
</font> 
   puts( "ioctl(" TERMIOS_TEST_DRIVER_DEVICE_NAME ") - OK " );
   rc = ioctl( Test_fd, 0xFFFF, NULL );
   rtems_test_assert( rc == 0 );
<font color='#000088'>+
+  puts( "tcgetattr(" TERMIOS_TEST_DRIVER_DEVICE_NAME ") - OK " );
+  rc = tcgetattr( Test_fd, &t );
+  rtems_test_assert( rc == 0 );
+
+  puts( "Turn on flow control on output - OK" );
+  t.c_iflag |= IXON;
+  rc = tcsetattr( Test_fd, TCSANOW, &t );
+  rtems_test_assert( rc == 0 );
+
+  puts( "Turn off flow control on output - OK" );
+  t.c_iflag &= ~IXON;
+  rc = tcsetattr( Test_fd, TCSANOW, &t );
+  rtems_test_assert( rc == 0 );
+
+  puts( "Turn on flow control on input - OK" );
+  t.c_iflag |= IXOFF;
+  rc = tcsetattr( Test_fd, TCSANOW, &t );
+  rtems_test_assert( rc == 0 );
+
+  puts( "Turn off flow control on input - OK" );
+  t.c_iflag &= ~IXOFF;
+  rc = tcsetattr( Test_fd, TCSANOW, &t );
+  rtems_test_assert( rc == 0 );
</font> }
 
 void close_it(void)

<font color='#006600'>diff -u rtems/testsuites/libtests/termios06/termios06.doc:1.1 rtems/testsuites/libtests/termios06/termios06.doc:1.2
--- rtems/testsuites/libtests/termios06/termios06.doc:1.1       Mon Jul  5 16:14:39 2010
+++ rtems/testsuites/libtests/termios06/termios06.doc   Fri Jan 28 09:39:46 2011
</font><font color='#997700'>@@ -20,3 +20,4 @@
</font> concepts:
 
 + Exercise PPPDISC functionality in termios
<font color='#000088'>++ Tests to cover flow control settings for termios
</font>
<font color='#006600'>diff -u rtems/testsuites/libtests/termios06/termios06.scn:1.2 rtems/testsuites/libtests/termios06/termios06.scn:1.3
--- rtems/testsuites/libtests/termios06/termios06.scn:1.2       Tue Jul  6 14:54:00 2010
+++ rtems/testsuites/libtests/termios06/termios06.scn   Fri Jan 28 09:39:46 2011
</font><font color='#997700'>@@ -1,5 +1,9 @@
</font><font color='#000088'>+
+
</font> *** TEST TERMIOS06 ***
 open(/dev/test) - OK<span style="background-color: #FF0000"> </span>
<font color='#000088'>+ioctl - RTEMS_IO_SNDWAKEUP - OK
+ioctl - RTEMS_IO_RCVWAKEUP - OK
</font> ioctl - TIOCGETD - OK
 ioctl - TIOCSETD - OK
 pppopen called
<font color='#997700'>@@ -9,13 +13,21 @@
</font> write(PPPD TEST) - OK<span style="background-color: #FF0000"> </span>
 pppwrite called - 10 bytes
 50 50 50 44 20 54 45 53 54 00                   |PPPD TEST.      |
<font color='#000088'>+
</font> pppstart called
 ioctl(/dev/test) - OK<span style="background-color: #FF0000"> </span>
 pppioctl called
<font color='#000088'>+tcgetattr(/dev/test) - OK<span style="background-color: #FF0000"> </span>
+Turn on flow control on output - OK
+Turn off flow control on output - OK
+Turn on flow control on input - OK
+Turn off flow control on input - OK
</font> 
 Reading (expected):
 54 68 69 73 20 69 73 20 74 65 73 74 20 50 50 50 |This is test PPP|
<font color='#000088'>+
</font> 20 69 6e 70 75 74                               | input          |
<font color='#000088'>+
</font> pppread called
 pppinput called - with (T)
 pppinput called - with (h)
<font color='#997700'>@@ -40,6 +52,8 @@
</font> pppinput called - with (u)
 pppinput called - with (t)
 pppinput called - with (.)
<font color='#000088'>+Rx_Wake - invoked
+
</font> Read 0 bytes from read(2)
 close(/dev/test) - OK<span style="background-color: #FF0000"> </span>
 pppclose called
</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>