]>
Commit | Line | Data |
---|---|---|
814bc89d FCE |
1 | # function to test error handling when reading nonexistent pmap elements |
2 | ||
3 | set test "ix_clear3" | |
4 | if {![installtest_p]} { untested $test; return } | |
5 | ||
6 | set pass_result {*ERROR: empty aggregate*} | |
7 | ||
8 | # spawn test | |
9 | spawn stap $srcdir/$subdir/$test.stp | |
10 | expect { | |
59cbc061 | 11 | -timeout 150 |
814bc89d FCE |
12 | $pass_result { |
13 | pass "$test passed" | |
14 | } | |
59cbc061 | 15 | timeout { |
814bc89d FCE |
16 | send "\003" |
17 | fail "$test timed out" | |
18 | } | |
19 | eof { | |
20 | fail "$test unexpected EOF" } | |
21 | -re "semantic error:" { fail "$test compilation" } | |
22 | } | |
05fb7de1 | 23 | catch { close } |
814bc89d | 24 | wait |