diff options
author | Wenji Huang <wenji.huang@oracle.com> | 2009-08-10 19:29:50 -0400 |
---|---|---|
committer | Wenji Huang <wenji.huang@oracle.com> | 2009-08-10 19:29:50 -0400 |
commit | e679283a5ae5555db19d613fa3299f96cfc94eb7 (patch) | |
tree | dbe790f3244fe69af6c833f7995242dfcce7d791 /testsuite/systemtap.base/statement.exp | |
parent | aeb2727bd6742d8e4ff98882e57078f72da21b68 (diff) | |
download | systemtap-steved-e679283a5ae5555db19d613fa3299f96cfc94eb7.tar.gz systemtap-steved-e679283a5ae5555db19d613fa3299f96cfc94eb7.tar.xz systemtap-steved-e679283a5ae5555db19d613fa3299f96cfc94eb7.zip |
Avoid assertion error for no matched function in statement probe
* dwflpp.cxx (iterate_over_functions): Return for NULL pointer.
* testsuite/systemtap.base/statement.exp: Add test case.
Diffstat (limited to 'testsuite/systemtap.base/statement.exp')
-rw-r--r-- | testsuite/systemtap.base/statement.exp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/systemtap.base/statement.exp b/testsuite/systemtap.base/statement.exp index d8fce8d8..8d4c59f5 100644 --- a/testsuite/systemtap.base/statement.exp +++ b/testsuite/systemtap.base/statement.exp @@ -34,5 +34,17 @@ expect { } wait if { $hint == 1 && $probes == 1 } then { pass "$test -p2" } else { fail "$test -p2 ($probes)" } + +set no_func stmtnofunc +set func_script "probe process(\"%s\").statement(\"foo@%s.c:*\"){}" +set script [format $func_script "./$test" "$test"] +spawn stap -p2 -e $script +expect { + -timeout 60 + -re {semantic error: no match while resolving probe point.*\r\n} { xfail $no_func } + timeout { fail "$no_func (timeout)" } + eof { fail $no_func } +} +wait exec rm -f $test |