diff options
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 |