]>
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 | ||
6 | set pass_result "^(ERROR: aggregation overflow.*\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$" | |
8 | ||
9 | # spawn test | |
10 | spawn stap -DMAXERRORS=1 -g $srcdir/$subdir/$test.stp | |
11 | expect { | |
12 | -re $pass_result { | |
13 | pass "$test passed" | |
14 | } | |
15 | -re $skip_result { | |
16 | unsupported "$test requires smp" | |
17 | } | |
18 | -timeout 30 { | |
19 | send "\003" | |
20 | fail "$test timed out" | |
21 | } | |
22 | eof { | |
23 | fail "$test unexpected EOF" } | |
24 | -re "semantic error:" { fail "$test compilation" } | |
25 | } | |
26 | close | |
27 | wait |