Changeset a4325457 in rtems


Ignore:
Timestamp:
Jan 28, 2011, 3:39:46 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
dcf3687
Parents:
610d92c
Message:

2011-01-28 Bharath Suri <bharath.s.jois@…>

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
Location:
testsuites/libtests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • testsuites/libtests/ChangeLog

    r610d92c ra4325457  
     12011-01-28      Bharath Suri <bharath.s.jois@gmail.com>
     2
     3        PR 1661/testing
     4        * termios06/init.c: Extend the test to cover sections related to
     5        flow control in termios.c
     6        * termios06/termios06.doc: Updated test concept
     7        * termios06/termios06.scn: Updated test run log
     8
    192011-01-10      Ralf Corsépius <ralf.corsepius@rtems.org>
    210
  • testsuites/libtests/termios06/init.c

    r610d92c ra4325457  
    9090{
    9191  int rc;
     92  struct termios t;
    9293
    9394  puts( "ioctl(" TERMIOS_TEST_DRIVER_DEVICE_NAME ") - OK " );
    9495  rc = ioctl( Test_fd, 0xFFFF, NULL );
     96  rtems_test_assert( rc == 0 );
     97
     98  puts( "tcgetattr(" TERMIOS_TEST_DRIVER_DEVICE_NAME ") - OK " );
     99  rc = tcgetattr( Test_fd, &t );
     100  rtems_test_assert( rc == 0 );
     101
     102  puts( "Turn on flow control on output - OK" );
     103  t.c_iflag |= IXON;
     104  rc = tcsetattr( Test_fd, TCSANOW, &t );
     105  rtems_test_assert( rc == 0 );
     106
     107  puts( "Turn off flow control on output - OK" );
     108  t.c_iflag &= ~IXON;
     109  rc = tcsetattr( Test_fd, TCSANOW, &t );
     110  rtems_test_assert( rc == 0 );
     111
     112  puts( "Turn on flow control on input - OK" );
     113  t.c_iflag |= IXOFF;
     114  rc = tcsetattr( Test_fd, TCSANOW, &t );
     115  rtems_test_assert( rc == 0 );
     116
     117  puts( "Turn off flow control on input - OK" );
     118  t.c_iflag &= ~IXOFF;
     119  rc = tcsetattr( Test_fd, TCSANOW, &t );
    95120  rtems_test_assert( rc == 0 );
    96121}
  • testsuites/libtests/termios06/termios06.scn

    r610d92c ra4325457  
     1
     2
    13*** TEST TERMIOS06 ***
    24open(/dev/test) - OK
     5ioctl - RTEMS_IO_SNDWAKEUP - OK
     6ioctl - RTEMS_IO_RCVWAKEUP - OK
    37ioctl - TIOCGETD - OK
    48ioctl - TIOCSETD - OK
     
    1014pppwrite called - 10 bytes
    111550 50 50 44 20 54 45 53 54 00                   |PPPD TEST.      |
     16
    1217pppstart called
    1318ioctl(/dev/test) - OK
    1419pppioctl called
     20tcgetattr(/dev/test) - OK
     21Turn on flow control on output - OK
     22Turn off flow control on output - OK
     23Turn on flow control on input - OK
     24Turn off flow control on input - OK
    1525
    1626Reading (expected):
    172754 68 69 73 20 69 73 20 74 65 73 74 20 50 50 50 |This is test PPP|
     28
    182920 69 6e 70 75 74                               | input          |
     30
    1931pppread called
    2032pppinput called - with (T)
     
    4153pppinput called - with (t)
    4254pppinput called - with (.)
     55Rx_Wake - invoked
     56
    4357Read 0 bytes from read(2)
    4458close(/dev/test) - OK
Note: See TracChangeset for help on using the changeset viewer.