1 | # |
---|
2 | # $Id$ |
---|
3 | # |
---|
4 | |
---|
5 | These tests are brought to you by the letter `q'. |
---|
6 | |
---|
7 | VMIN=0, VTIME=0 |
---|
8 | Each letter you type should produce a line of output. |
---|
9 | The `count' should be quite large, since (as you correctly |
---|
10 | pointed out) the read is non-blocking. The time should be |
---|
11 | the interval between typing characters. |
---|
12 | Type a `q' to finish the test. |
---|
13 | VMIN=0, VTIME=20 |
---|
14 | Again, each letter should produce a line of output. The |
---|
15 | `count' should be much smaller -- the read is non-blocking |
---|
16 | but has a timeout of 2 seconds, so the count should be about |
---|
17 | half the `interval'. |
---|
18 | Type a `q' to finish the test. |
---|
19 | VMIN=5, VTIME=0 |
---|
20 | A line should be produced for every 5 characters typed. The |
---|
21 | count should be 1. This is a blocking read. |
---|
22 | Type a `q' as the first character of a group of 5 to finish |
---|
23 | the test. |
---|
24 | VMIN=5, VTIME=20 |
---|
25 | Type a character. Two seconds later a line should be printed. |
---|
26 | Count should be 1. Type a character, and another within 2 |
---|
27 | seconds. |
---|
28 | Two seconds after last character (or right after the 5th |
---|
29 | character) |
---|
30 | a line should be printed. |
---|
31 | Type a `q' as the first character of a group to finish the test. |
---|
32 | |
---|
33 | Clear??? |
---|
34 | |
---|
35 | Also, when testing the cooked mode input, try typing some tabs |
---|
36 | and/or control characters and make sure that you can backspace over |
---|
37 | them properly. |
---|
38 | |
---|
39 | --- |
---|
40 | Eric Norum |
---|
41 | eric@skatter.usask.ca |
---|
42 | Saskatchewan Accelerator Laboratory |
---|
43 | University of Saskatchewan |
---|
44 | Saskatoon, Canada. |
---|
45 | |
---|