From dda823f922ac7294cd24eeb4b1bb7436af24c8c7 Mon Sep 17 00:00:00 2001 From: hunt Date: Mon, 12 Nov 2007 22:04:35 +0000 Subject: 2007-11-12 Martin Hunt * systemtap.base/*.stp: Replace log() calls with println() (or printf() if formatting would help.) * systemtap.maps/*.stp: Ditto. * systemtap.samples/*.stp: Ditto. * systemtap.stress/*.stp: Ditto. --- testsuite/systemtap.base/inc.stp | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'testsuite/systemtap.base/inc.stp') 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") } -- cgit