summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-07-06 19:54:00 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-07-06 19:54:00 +0000
commit3e0310e340669fa068631c5535ebea4f401d8fa2 (patch)
treeb2fabc3e2b6a6773488de279b0cd61527af1e6b3 /testsuites
parent2010-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff)
downloadrtems-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')
-rw-r--r--testsuites/libtests/ChangeLog5
-rw-r--r--testsuites/libtests/termios06/init.c4
-rw-r--r--testsuites/libtests/termios06/termios06.scn6
3 files changed, 14 insertions, 1 deletions
diff --git a/testsuites/libtests/ChangeLog b/testsuites/libtests/ChangeLog
index 465d1ab57e..c8b23787a8 100644
--- a/testsuites/libtests/ChangeLog
+++ b/testsuites/libtests/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
2010-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* malloctest/system.h: Enable malloc statistics.
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)