]> sourceware.org Git - systemtap.git/blame - testsuite/systemtap.maps/ix_clear3.exp
2007-06-18 Martin Hunt <hunt@redhat.com>
[systemtap.git] / testsuite / systemtap.maps / ix_clear3.exp
CommitLineData
814bc89d
FCE
1# function to test error handling when reading nonexistent pmap elements
2
3set test "ix_clear3"
4if {![installtest_p]} { untested $test; return }
5
6set pass_result {*ERROR: empty aggregate*}
7
8# spawn test
9spawn stap $srcdir/$subdir/$test.stp
10expect {
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 23catch { close }
814bc89d 24wait
This page took 0.032092 seconds and 5 git commands to generate.