diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-07-06 19:54:00 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-07-06 19:54:00 +0000 |
commit | 3e0310e340669fa068631c5535ebea4f401d8fa2 (patch) | |
tree | b2fabc3e2b6a6773488de279b0cd61527af1e6b3 /testsuites/libtests/termios06 | |
parent | 2010-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff) | |
download | rtems-3e0310e340669fa068631c5535ebea4f401d8fa2.tar.bz2 |
2010-07-06 Joel Sherrill <joel.sherrilL@OARcorp.com>
* termios06/init.c, termios06/termios06.scn: Add a couple more PPPDISC
cases. Coverage of these paths is near complete.
Diffstat (limited to 'testsuites/libtests/termios06')
-rw-r--r-- | testsuites/libtests/termios06/init.c | 4 | ||||
-rw-r--r-- | testsuites/libtests/termios06/termios06.scn | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/testsuites/libtests/termios06/init.c b/testsuites/libtests/termios06/init.c index c4649cda30..4569f6b052 100644 --- a/testsuites/libtests/termios06/init.c +++ b/testsuites/libtests/termios06/init.c @@ -46,6 +46,10 @@ void set_discipline(void) puts( "ioctl - TIOCSETD - OK" ); sc = ioctl(Test_fd, TIOCSETD, &pppdisc); rtems_test_assert( sc == 0 ); + + puts( "ioctl - TIOCSETD - OK" ); + sc = ioctl(Test_fd, TIOCSETD, &pppdisc); + rtems_test_assert( sc == 0 ); } void ioctl_it(void) diff --git a/testsuites/libtests/termios06/termios06.scn b/testsuites/libtests/termios06/termios06.scn index 7b3f36b325..608037c773 100644 --- a/testsuites/libtests/termios06/termios06.scn +++ b/testsuites/libtests/termios06/termios06.scn @@ -3,6 +3,9 @@ open(/dev/test) - OK ioctl - TIOCGETD - OK ioctl - TIOCSETD - OK pppopen called +ioctl - TIOCSETD - OK +pppclose called +pppopen called write(PPPD TEST) - OK pppwrite called - 10 bytes 50 50 50 44 20 54 45 53 54 00 |PPPD TEST. | @@ -13,7 +16,8 @@ pppioctl called Reading (expected): 54 68 69 73 20 69 73 20 74 65 73 74 20 50 50 50 |This is test PPP| 20 69 6e 70 75 74 | input | -pppread calledpppinput called - with (T) +pppread called +pppinput called - with (T) pppinput called - with (h) pppinput called - with (i) pppinput called - with (s) |