diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2008-09-10 23:11:44 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2008-09-10 23:11:44 -0400 |
commit | 7d24ceab85d64c5e9dcb4963d91d123d8303ef30 (patch) | |
tree | 977db96dcf3d483d1cdc4a218a2f0fd8ff245cb2 /testsuite/systemtap.base | |
parent | eacb10cec9899c79ae1e122a7b6e50106928a295 (diff) | |
parent | 936eeb672167eaec2e5d8e9d7cf7fe9e962efe58 (diff) | |
download | systemtap-steved-7d24ceab85d64c5e9dcb4963d91d123d8303ef30.tar.gz systemtap-steved-7d24ceab85d64c5e9dcb4963d91d123d8303ef30.tar.xz systemtap-steved-7d24ceab85d64c5e9dcb4963d91d123d8303ef30.zip |
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
* 'master' of ssh://sources.redhat.com/git/systemtap:
added Handlers description, more cleanup
Ensure that "stap -l ..." only prints probe names, not variables.
Diffstat (limited to 'testsuite/systemtap.base')
-rw-r--r-- | testsuite/systemtap.base/probe_list.exp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/testsuite/systemtap.base/probe_list.exp b/testsuite/systemtap.base/probe_list.exp new file mode 100644 index 00000000..b3e6884b --- /dev/null +++ b/testsuite/systemtap.base/probe_list.exp @@ -0,0 +1,19 @@ +# This test ensures that "-l" lists only include probe names, and not any of +# the local variables. There was a bug that "-l" would print variables that +# couldn't be optimized away, due to an incorrect assumption in the +# implementation. + +# NB: This is a bit abusively formed. Currently -l internally writes "probe" +# and "{}" around its argument. For this test we want to introduce a variable +# that can't be optimized away. The trailing comment mark lets the auto "{}" +# get ignored. +spawn stap -l "begin { if (a) next }#" + +expect { + # the output should not include anything else, like the 'a' local. + -re "^begin\r\n$" { + pass "probe list is correct" + return + } +} +fail "probe list is incorrect" |