From aa0be91ff9cdd708d2b501fb0dbf4cd070408b9e Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Thu, 4 Mar 2010 22:13:03 +0100 Subject: Add cmdline argument fetching for current process to context.stp tapset. * tapset/context.stp: Add cmdline_str, cmdline_arg and cmdline_args. * testsuite/buildok/context_test.stp: Add tests for new functions. --- testsuite/buildok/context_test.stp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'testsuite/buildok/context_test.stp') diff --git a/testsuite/buildok/context_test.stp b/testsuite/buildok/context_test.stp index 149159fb..da8206da 100755 --- a/testsuite/buildok/context_test.stp +++ b/testsuite/buildok/context_test.stp @@ -30,4 +30,8 @@ probe begin { log(modname(0)) log(probefunc()) log(probemod()) + + log(cmdline_args(1, 1, "bar")) + log(cmdline_arg(0)) + log(cmdline_str()) } -- cgit