diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-06-07 18:33:09 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-06-07 18:33:09 +0000 |
commit | 9f5f6f533c2f68314fc2029081480ef612f8a095 (patch) | |
tree | e10b7f9e1ae446b5d10a1d4863f4101c1502d515 /testsuites/libtests/termios02/termios02.scn | |
parent | 2010-06-07 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff) | |
download | rtems-9f5f6f533c2f68314fc2029081480ef612f8a095.tar.bz2 |
2010-06-07 Joel Sherrill <joel.sherrill@oarcorp.com>
* termios01/init.c, termios01/termios01.scn, termios02/init.c,
termios02/termios02.scn: Add tests for cfigetspeed(), cfogetspeed(),
cfisetspeed(), cfosetspeed(), ctermid(), tcflow(), tcflush(),
tcsendbreak(), tcsetpgrp(), and tcgetpgrp(). Some of these methods
are minimal implementations so the tests will have to grow as the
methods grow.
Diffstat (limited to '')
-rw-r--r-- | testsuites/libtests/termios02/termios02.scn | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuites/libtests/termios02/termios02.scn b/testsuites/libtests/termios02/termios02.scn index 614a6e2fc6..5e29a9cc65 100644 --- a/testsuites/libtests/termios02/termios02.scn +++ b/testsuites/libtests/termios02/termios02.scn @@ -3,4 +3,25 @@ tcdrain(12) - EBADF tcdrain(stdin) - OK tcdrain(stdout) - OK tcdrain(stderr) - OK + +tcflow(stdin, TCOOFF) - ENOTSUP +tcflow(stdin, TCOON) - ENOTSUP +tcflow(stdin, TCIOFF) - ENOTSUP +tcflow(stdin, TCION) - ENOTSUP +tcflow(stdin, 22) - EINVAL + +tcflush(stdin, TCIFLUSH) - ENOTSUP +tcflush(stdin, TCOFLUSH) - ENOTSUP +tcflush(stdin, TCIOFLUSH) - ENOTSUP +tcflush(stdin, 22) - EINVAL + +tcgetpgrp( 1 ) - OK +tcsetpgrp( 1, 3 ) - OK + +tcsendbreak( 1, 0 ) - OK + +ctermid( NULL ) - OK +ctermid ==> /dev/console +ctermid( term_name ) - OK +ctermid ==> /dev/console *** END OF TERMIOS 02 TEST *** |