From 1aa8ca8402501fc631f9eb5ee06ef316f01878f1 Mon Sep 17 00:00:00 2001 From: dsmith Date: Thu, 9 Nov 2006 16:51:16 +0000 Subject: 2006-11-09 David Smith * buildok/maxactive01.stp: Added test for "maxactive(N)" return probe processing. * parseko/maxactive01.stp: Ditto. * parseko/maxactive02.stp: Ditto. * parseko/maxactive03.stp: Ditto. * parseko/maxactive04.stp: Ditto. * semko/maxactive01.stp: Ditto. * semko/maxactive02.stp: Ditto. * semko/maxactive03.stp: Ditto. * systemtap.base/maxactive.exp: Ditto. --- testsuite/parseko/maxactive01.stp | 7 +++++++ testsuite/parseko/maxactive02.stp | 9 +++++++++ testsuite/parseko/maxactive03.stp | 9 +++++++++ testsuite/parseko/maxactive04.stp | 7 +++++++ 4 files changed, 32 insertions(+) create mode 100755 testsuite/parseko/maxactive01.stp create mode 100755 testsuite/parseko/maxactive02.stp create mode 100755 testsuite/parseko/maxactive03.stp create mode 100755 testsuite/parseko/maxactive04.stp (limited to 'testsuite/parseko') diff --git a/testsuite/parseko/maxactive01.stp b/testsuite/parseko/maxactive01.stp new file mode 100755 index 00000000..d0a8c4da --- /dev/null +++ b/testsuite/parseko/maxactive01.stp @@ -0,0 +1,7 @@ +#!./stap -p2 + +# maxactive with "begin" probe + +probe begin.maxactive(3) +{ +} diff --git a/testsuite/parseko/maxactive02.stp b/testsuite/parseko/maxactive02.stp new file mode 100755 index 00000000..e2fdb996 --- /dev/null +++ b/testsuite/parseko/maxactive02.stp @@ -0,0 +1,9 @@ +#!./stap -p1 + +# maxactive with a non-number argument + +global N = 2 + +probe kernel.function("*").return.maxactive(N) +{ +} diff --git a/testsuite/parseko/maxactive03.stp b/testsuite/parseko/maxactive03.stp new file mode 100755 index 00000000..e61cce7c --- /dev/null +++ b/testsuite/parseko/maxactive03.stp @@ -0,0 +1,9 @@ +#!./stap -p1 + +# maxactive with a non-number argument + +function four() { return 4 } + +probe kernel.function("*").return.maxactive(four()) +{ +} diff --git a/testsuite/parseko/maxactive04.stp b/testsuite/parseko/maxactive04.stp new file mode 100755 index 00000000..b7fcaea9 --- /dev/null +++ b/testsuite/parseko/maxactive04.stp @@ -0,0 +1,7 @@ +#!./stap -p1 + +# maxactive with a numeric expression argument + +probe kernel.function("*").return.maxactive(3 + 2) +{ +} -- cgit