summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.maps/ix_clear3.exp
blob: a29354708bf72de18fcd75de599e3f20ecfc7f55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# function to test error handling when reading nonexistent pmap elements

set test "ix_clear3"
if {![installtest_p]} { untested $test; return }

set pass_result {*ERROR: empty aggregate*}

# spawn test
spawn stap $srcdir/$subdir/$test.stp
expect {
  -timeout 150
  $pass_result {
    pass "$test passed"
  }
  timeout {
    exec kill -INT -[exp_pid]
    fail "$test timed out"
  }
  eof { 
    fail "$test unexpected EOF" }
  -re "semantic error:" { fail "$test compilation" }
}
catch { close }
wait