]> sourceware.org Git - systemtap.git/blame - testsuite/systemtap.maps/pmap_agg_overflow.exp
2006-08-12 Frank Ch. Eigler <fche@elastic.org>
[systemtap.git] / testsuite / systemtap.maps / pmap_agg_overflow.exp
CommitLineData
814bc89d
FCE
1# function to test error handling of pmap aggregation
2
3set test "pmap_agg_overflow"
4if {![installtest_p]} { untested $test; return }
5
6set pass_result "^(ERROR: aggregation overflow.*\r\n){2}WARNING: Number of errors: 2, skipped probes: 0\r\n$"
7set skip_result "^WARNING: This test only applies to smp systems...\r\n$"
8
9# spawn test
10spawn stap -DMAXERRORS=1 -g $srcdir/$subdir/$test.stp
11expect {
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}
26close
27wait
This page took 0.022842 seconds and 5 git commands to generate.