forked from Imagelibrary/rtems
* 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.
28 lines
594 B
Plaintext
28 lines
594 B
Plaintext
*** TERMIOS 02 TEST ***
|
|
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 ***
|