Ignore:
Timestamp:
Jan 28, 2011, 3:39:46 PM (8 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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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}
Note: See TracChangeset for help on using the changeset viewer.