]>
Commit | Line | Data |
---|---|---|
814bc89d FCE |
1 | # function to test error handling of pmap aggregation |
2 | ||
3 | set test "pmap_agg_overflow" | |
4 | if {![installtest_p]} { untested $test; return } | |
5 | ||
59cbc061 MH |
6 | set pass_result "^(ERROR: \[^\r\]*overflow\[^\r\]*\r\n){2}WARNING: Number of errors: 2, skipped probes: 0\r\n$" |
7 | set skip_result "^WARNING: This test only applies to smp systems\.\.\.\r\n" | |
814bc89d FCE |
8 | |
9 | # spawn test | |
10 | spawn stap -DMAXERRORS=1 -g $srcdir/$subdir/$test.stp | |
11 | expect { | |
59cbc061 | 12 | -timeout 240 |
814bc89d FCE |
13 | -re $pass_result { |
14 | pass "$test passed" | |
15 | } | |
16 | -re $skip_result { | |
17 | unsupported "$test requires smp" | |
18 | } | |
59cbc061 | 19 | timeout { |
814bc89d FCE |
20 | send "\003" |
21 | fail "$test timed out" | |
22 | } | |
23 | eof { | |
24 | fail "$test unexpected EOF" } | |
25 | -re "semantic error:" { fail "$test compilation" } | |
26 | } | |
894c5e00 | 27 | catch { close } |
814bc89d | 28 | wait |