summaryrefslogtreecommitdiffstats
path: root/testsuite/parseko/cmdline15.stp
diff options
context:
space:
mode:
authordsmith <dsmith>2007-08-20 15:00:33 +0000
committerdsmith <dsmith>2007-08-20 15:00:33 +0000
commit6eb7450616cf917eb8c86568da83eaafd101cd07 (patch)
tree05739a86192c63ef80a4a71a317e0901f9813ff7 /testsuite/parseko/cmdline15.stp
parent54dec22d3e36e7363f27a43534db4078b57d7c5e (diff)
downloadsystemtap-steved-6eb7450616cf917eb8c86568da83eaafd101cd07.tar.gz
systemtap-steved-6eb7450616cf917eb8c86568da83eaafd101cd07.tar.xz
systemtap-steved-6eb7450616cf917eb8c86568da83eaafd101cd07.zip
2007-08-20 David Smith <dsmith@redhat.com>
* parseko/cmdline15.stp: Added new test to make sure options '-c cmd' and '-x pid' are mutually exclusive. * parseko/cmdline16.stp: Ditto.
Diffstat (limited to 'testsuite/parseko/cmdline15.stp')
-rwxr-xr-xtestsuite/parseko/cmdline15.stp7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/parseko/cmdline15.stp b/testsuite/parseko/cmdline15.stp
new file mode 100755
index 00000000..c02f97ae
--- /dev/null
+++ b/testsuite/parseko/cmdline15.stp
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# options '-c cmd' and '-x pid' are mutually exclusive
+#
+# -c CMD start the probes, run CMD, and exit when it finishes
+# -x PID sets target() to PID
+stap -p1 -c /bin/ls -x 100 -e 'probe begin { exit() }'