]> sourceware.org Git - systemtap.git/blame - testsuite/systemtap.maps/pmap_agg_overflow.exp
2007-06-18 Martin Hunt <hunt@redhat.com>
[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
59cbc061
MH
6set pass_result "^(ERROR: \[^\r\]*overflow\[^\r\]*\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"
814bc89d
FCE
8
9# spawn test
10spawn stap -DMAXERRORS=1 -g $srcdir/$subdir/$test.stp
11expect {
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 27catch { close }
814bc89d 28wait
This page took 0.035979 seconds and 5 git commands to generate.