diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-06-28 17:05:25 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-06-28 17:05:25 +0000 |
commit | 33ece501be15fa64e76fb8c9faed0dcef12a7ba9 (patch) | |
tree | 6aa00902ad9adce43b9fdf136178892463e8fef5 /testsuites/libtests/termios03 | |
parent | 2010-06-28 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-33ece501be15fa64e76fb8c9faed0dcef12a7ba9.tar.bz2 |
2010-06-28 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac, malloctest/init.c, termios03/init.c,
termios03/termios03.scn: Handle some of the VKILL and VERASE cases.
Diffstat (limited to 'testsuites/libtests/termios03')
-rw-r--r-- | testsuites/libtests/termios03/init.c | 10 | ||||
-rw-r--r-- | testsuites/libtests/termios03/termios03.scn | 49 |
2 files changed, 57 insertions, 2 deletions
diff --git a/testsuites/libtests/termios03/init.c b/testsuites/libtests/termios03/init.c index 555b7bdbc5..0d21d20dd2 100644 --- a/testsuites/libtests/termios03/init.c +++ b/testsuites/libtests/termios03/init.c @@ -103,6 +103,10 @@ const char ExpectedInput_2[] = "1235\b456.\n"; const char ExpectedInput_3[] = "tab\ttab.\n"; const char ExpectedInput_4[] = "cr\r."; const char ExpectedInput_5[] = "aBcDeFgH.\n"; +const char ExpectedInput_6[] = "Testing VERASE\177.\n"; +const char ExpectedInput_7[] = "Testing VKILL\025.\n"; +const char ExpectedInput_8[] = "\177Testing VERASE in column 1.\n"; +const char ExpectedInput_9[] = "\t tab \tTesting VKILL after tab.\025\n"; rtems_task Init( rtems_task_argument argument @@ -125,6 +129,12 @@ rtems_task Init( read_helper( Test_fd, ExpectedInput_5 ); change_iflag( "Disable to lower case mapping on input", IUCLC, 0 ); + read_helper( Test_fd, ExpectedInput_6 ); + read_helper( Test_fd, ExpectedInput_7 ); + read_helper( Test_fd, ExpectedInput_8 ); + read_helper( Test_fd, ExpectedInput_9 ); + + puts( "" ); close_it(); puts( "*** END OF TEST TERMIOS03 ***" ); diff --git a/testsuites/libtests/termios03/termios03.scn b/testsuites/libtests/termios03/termios03.scn index bfd154b797..17802fed0e 100644 --- a/testsuites/libtests/termios03/termios03.scn +++ b/testsuites/libtests/termios03/termios03.scn @@ -14,7 +14,7 @@ Read 20 bytes from read(2) Echoed 21 characters 54 65 73 74 20 69 6e 70 75 74 20 74 68 69 73 20 |Test input this | 69 73 2e 0d 0a |is... | -
+ Reading (expected): 31 32 33 35 08 34 35 36 2e |1235.456. | Read 10 bytes from read(2) @@ -51,5 +51,50 @@ Read 10 bytes from read(2) Echoed 11 characters 61 62 63 64 65 66 67 68 2e 0d 0a |abcdefgh... | Changing c_iflag to: Disable to lower case mapping on input -close(/dev/test) - OK + +Reading (expected): +54 65 73 74 69 6e 67 20 56 45 52 41 53 45 7f 2e |Testing VERASE..| +Read 15 bytes from read(2) +54 65 73 74 69 6e 67 20 56 45 52 41 53 2e 0a |Testing VERAS.. | +Echoed 20 characters +54 65 73 74 69 6e 67 20 56 45 52 41 53 45 08 20 |Testing VERASE. | +08 2e 0d 0a |.... | + +Reading (expected): +54 65 73 74 69 6e 67 20 56 4b 49 4c 4c 15 2e |Testing VKILL.. | +Read 2 bytes from read(2) +2e 0a |.. | +Echoed 55 characters +54 65 73 74 69 6e 67 20 56 4b 49 4c 4c 08 20 08 |Testing VKILL. .| +08 20 08 08 20 08 08 20 08 08 20 08 08 20 08 08 |. .. .. .. .. ..| +20 08 08 20 08 08 20 08 08 20 08 08 20 08 08 20 | .. .. .. .. .. | +08 08 20 08 2e 0d 0a + +Reading (expected): +7f 54 65 73 74 69 6e 67 20 56 45 52 41 53 45 20 |.Testing VERASE | +69 6e 20 63 6f 6c 75 6d 6e 20 31 2e |in column 1. | +Read 28 bytes from read(2) +54 65 73 74 69 6e 67 20 56 45 52 41 53 45 20 69 |Testing VERASE i| +6e 20 63 6f 6c 75 6d 6e 20 31 2e 0a |n column 1.. | +Echoed 29 characters +54 65 73 74 69 6e 67 20 56 45 52 41 53 45 20 69 |Testing VERASE i| +6e 20 63 6f 6c 75 6d 6e 20 31 2e 0d 0a |n column 1... | + +Reading (expected): +09 20 74 61 62 20 09 54 65 73 74 69 6e 67 20 56 |. tab .Testing V| +4b 49 4c 4c 20 61 66 74 65 72 20 74 61 62 2e 15 |KILL after tab..| +Read 1 bytes from read(2) +0a |. | +Echoed 140 characters +20 20 20 20 20 20 20 20 20 74 61 62 20 20 20 20 | tab | +54 65 73 74 69 6e 67 20 56 4b 49 4c 4c 20 61 66 |Testing VKILL af| +74 65 72 20 74 61 62 2e 08 20 08 08 20 08 08 20 |ter tab.. .. .. | +08 08 20 08 08 20 08 08 20 08 08 20 08 08 20 08 |.. .. .. .. .. .| +08 20 08 08 20 08 08 20 08 08 20 08 08 20 08 08 |. .. .. .. .. ..| +20 08 08 20 08 08 20 08 08 20 08 08 20 08 08 20 | .. .. .. .. .. | +08 08 20 08 08 20 08 08 20 08 08 20 08 08 20 08 |.. .. .. .. .. .| +08 08 08 08 20 08 08 20 08 08 20 08 08 20 08 08 |.... .. .. .. ..| +20 08 08 08 08 08 08 08 08 08 0d 0a | ........... | + +close(/dev/test) - OK *** END OF TEST TERMIOS03 *** |