| 1 |
set test "input.line" |
| 2 |
if {! [installtest_p]} { untested "$test"; return } |
| 3 |
|
| 4 |
set send_human { .1 .3 1 .05 2 } |
| 5 |
|
| 6 |
catch { |
| 7 |
spawn stap $srcdir/$subdir/$test.stp |
| 8 |
expect |
| 9 |
send -raw "abcde\n" |
| 10 |
|
| 11 |
expect { |
| 12 |
"abcde\r\n" { pass "sub1" } |
| 13 |
timeout { fail "sub1" } |
| 14 |
} |
| 15 |
|
| 16 |
send -h -raw "123456789" |
| 17 |
|
| 18 |
expect { |
| 19 |
-re .+ { fail "sub2"} |
| 20 |
timeout { pass "sub2" } |
| 21 |
} |
| 22 |
|
| 23 |
send -raw "\n" |
| 24 |
|
| 25 |
expect { |
| 26 |
"123456789\r\n" { pass "sub3" } |
| 27 |
timeout { fail "sub3" } |
| 28 |
} |
| 29 |
} |
| 30 |
kill -INT -[exp_pid] 3 |
| 31 |
catch {close}; catch {wait} |