diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2007-11-15 14:35:40 -0500 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2007-11-15 14:35:40 -0500 |
commit | 055e8b89db8f76f0ccc05d08acfe979ba50024d6 (patch) | |
tree | 5c51849d470c1ff74162fbeb6be56f190d524daf /testsuite/systemtap.base/inc.stp | |
parent | 3cf29fed2ae7b36527c95c93754a4c0b0e51e749 (diff) | |
parent | f781f849ceedba83580eead82c3baf949a9738db (diff) | |
download | systemtap-steved-055e8b89db8f76f0ccc05d08acfe979ba50024d6.tar.gz systemtap-steved-055e8b89db8f76f0ccc05d08acfe979ba50024d6.tar.xz systemtap-steved-055e8b89db8f76f0ccc05d08acfe979ba50024d6.zip |
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'testsuite/systemtap.base/inc.stp')
-rw-r--r-- | testsuite/systemtap.base/inc.stp | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/testsuite/systemtap.base/inc.stp b/testsuite/systemtap.base/inc.stp index f37b2cee..17d6dc7c 100644 --- a/testsuite/systemtap.base/inc.stp +++ b/testsuite/systemtap.base/inc.stp @@ -1,24 +1,28 @@ /* * inc.stp * - * Check the systemtap ++ works + * Check that systemtap ++ works */ global x1 probe begin { - log("systemtap starting probe"); - x1 = 41; + println("systemtap starting probe") + x1 = 41 } probe end { - log("systemtap ending probe"); - ++x1; - if (x1 != 42 ) { - log("systemtap test failure"); - } else { - log("systemtap test success"); - } + println("systemtap ending probe") + x1++ + if (x1 == 42) { + ++x1 + if (x1 != 43 ) { + println("systemtap test failure") + } else { + println("systemtap test success") + } + } else + println("systemtap test failure") } |