[7424c3ee] | 1 | *** TEST TERMIOS05 *** |
---|
| 2 | open(/dev/test) - OK |
---|
| 3 | Writing: This is test output. |
---|
| 4 | Transmitted 20 characters |
---|
| 5 | 54 68 69 73 20 69 73 20 74 65 73 74 20 6f 75 74 |This is test out| |
---|
| 6 | 70 75 74 2e |put. | |
---|
| 7 | |
---|
| 8 | Reading (expected): |
---|
| 9 | 54 65 73 74 20 69 6e 70 75 74 20 74 68 69 73 20 |Test input this | |
---|
| 10 | 69 73 2e |is. | |
---|
| 11 | Read 20 bytes from read(2) |
---|
| 12 | 54 65 73 74 20 69 6e 70 75 74 20 74 68 69 73 20 |Test input this | |
---|
| 13 | 69 73 2e 0a |is.. | |
---|
| 14 | Echoed 23 characters |
---|
| 15 | 0d 0a 54 65 73 74 20 69 6e 70 75 74 20 74 68 69 |..Test input thi| |
---|
| 16 | 73 20 69 73 2e 0d 0a |s is... | |
---|
| 17 | |
---|
| 18 | Reading (expected): |
---|
| 19 | 31 32 33 35 08 34 35 36 2e |1235.456. | |
---|
| 20 | Read 10 bytes from read(2) |
---|
| 21 | 31 32 33 35 08 34 35 36 2e 0a |1235.456.. | |
---|
| 22 | Echoed 24 characters |
---|
| 23 | 31 00 00 00 00 00 00 00 00 00 00 00 54 68 69 73 |1...........This| |
---|
| 24 | 20 69 73 20 74 65 73 74 | is test | |
---|
| 25 | |
---|
| 26 | Reading (expected): |
---|
| 27 | 74 61 62 09 74 61 62 2e |tab.tab. | |
---|
| 28 | Read 9 bytes from read(2) |
---|
| 29 | 74 61 62 09 74 61 62 2e 0a |tab.tab.. | |
---|
| 30 | Echoed 25 characters |
---|
| 31 | 20 6f 75 74 70 75 74 2e 0d 0a 54 65 73 74 20 69 | output...Test i| |
---|
| 32 | 6e 70 75 74 20 74 68 69 73 |nput this | |
---|
| 33 | |
---|
| 34 | Reading (expected): |
---|
| 35 | 63 72 0d |cr. | |
---|
| 36 | Read 3 bytes from read(2) |
---|
| 37 | 63 72 0a |cr. | |
---|
| 38 | Echoed 22 characters |
---|
| 39 | 20 69 73 2e 0d 0a 31 32 33 35 5e 48 34 35 36 2e | is...1235^H456.| |
---|
| 40 | 0d 0a 74 61 62 20 |..tab | |
---|
| 41 | |
---|
| 42 | Reading (expected): |
---|
| 43 | 61 42 63 44 65 46 67 48 2e |aBcDeFgH. | |
---|
| 44 | Read 11 bytes from read(2) |
---|
| 45 | 2e 61 42 63 44 65 46 67 48 2e 0a |.aBcDeFgH.. | |
---|
| 46 | Echoed 25 characters |
---|
| 47 | 20 20 20 20 74 61 62 2e 0d 0a 63 72 0d 0a 2e 61 | tab...cr...a| |
---|
| 48 | 42 63 44 65 46 67 48 2e 0d |BcDeFgH.. | |
---|
| 49 | Changing c_iflag to: Enable to lower case mapping on input |
---|
| 50 | |
---|
| 51 | Reading (expected): |
---|
| 52 | 61 42 63 44 65 46 67 48 2e |aBcDeFgH. | |
---|
| 53 | Read 10 bytes from read(2) |
---|
| 54 | 61 62 63 64 65 66 67 68 2e 0a |abcdefgh.. | |
---|
| 55 | Echoed 12 characters |
---|
| 56 | 0a 61 62 63 64 65 66 67 68 2e 0d 0a |.abcdefgh... | |
---|
| 57 | Changing c_iflag to: Disable to lower case mapping on input |
---|
| 58 | close(/dev/test) - OK |
---|
| 59 | *** END OF TEST TERMIOS05 *** |
---|