diff options
author | David Smith <dsmith@redhat.com> | 2008-04-17 12:48:03 -0500 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2008-04-17 12:52:34 -0500 |
commit | 36b080f7d2926c1741b9345a2698ed61c3fa0342 (patch) | |
tree | 9335ea9a7861e2baacd82958059ea8d8e2a3db2a /testsuite/semko | |
parent | c295b10e71a5d5ff7dc6cb8f2c95a200d5af6812 (diff) | |
download | systemtap-steved-36b080f7d2926c1741b9345a2698ed61c3fa0342.tar.gz systemtap-steved-36b080f7d2926c1741b9345a2698ed61c3fa0342.tar.xz systemtap-steved-36b080f7d2926c1741b9345a2698ed61c3fa0342.zip |
Added new utrace tests.
2008-04-17 David Smith <dsmith@redhat.com>
* buildok/utrace01.stp: New test.
* buildok/utrace02.stp: Ditto.
* buildok/utrace03.stp: Ditto.
* semko/utrace01.stp: Ditto.
* semko/utrace02.stp: Ditto.
* semko/utrace03.stp: Ditto.
* semko/utrace04.stp: Ditto.
* semko/utrace05.stp: Ditto.
* semko/utrace06.stp: Ditto.
* semko/utrace07.stp: Ditto.
* semko/utrace08.stp: Ditto.
* semko/utrace09.stp: Ditto.
* semko/utrace10.stp: Ditto.
* semko/utrace11.stp: Ditto.
* semko/utrace12.stp: Ditto.
* semko/utrace13.stp: Ditto.
Diffstat (limited to 'testsuite/semko')
-rwxr-xr-x | testsuite/semko/utrace01.stp | 4 | ||||
-rwxr-xr-x | testsuite/semko/utrace02.stp | 4 | ||||
-rwxr-xr-x | testsuite/semko/utrace03.stp | 4 | ||||
-rwxr-xr-x | testsuite/semko/utrace04.stp | 4 | ||||
-rwxr-xr-x | testsuite/semko/utrace05.stp | 4 | ||||
-rwxr-xr-x | testsuite/semko/utrace06.stp | 4 | ||||
-rwxr-xr-x | testsuite/semko/utrace07.stp | 4 | ||||
-rwxr-xr-x | testsuite/semko/utrace08.stp | 4 | ||||
-rwxr-xr-x | testsuite/semko/utrace09.stp | 4 | ||||
-rwxr-xr-x | testsuite/semko/utrace10.stp | 4 | ||||
-rwxr-xr-x | testsuite/semko/utrace11.stp | 4 | ||||
-rwxr-xr-x | testsuite/semko/utrace12.stp | 4 | ||||
-rwxr-xr-x | testsuite/semko/utrace13.stp | 4 |
13 files changed, 52 insertions, 0 deletions
diff --git a/testsuite/semko/utrace01.stp b/testsuite/semko/utrace01.stp new file mode 100755 index 00000000..a4707008 --- /dev/null +++ b/testsuite/semko/utrace01.stp @@ -0,0 +1,4 @@ +#! stap -p2 + +# missing process NAME|PID +probe process.death { } diff --git a/testsuite/semko/utrace02.stp b/testsuite/semko/utrace02.stp new file mode 100755 index 00000000..1cb4227f --- /dev/null +++ b/testsuite/semko/utrace02.stp @@ -0,0 +1,4 @@ +#! stap -p2 + +# process NAME must be a string +probe process(/bin/cat).death { } diff --git a/testsuite/semko/utrace03.stp b/testsuite/semko/utrace03.stp new file mode 100755 index 00000000..c682410b --- /dev/null +++ b/testsuite/semko/utrace03.stp @@ -0,0 +1,4 @@ +#! stap -p2 + +# invalid probe type +probe process("/bin/cat").death.return { } diff --git a/testsuite/semko/utrace04.stp b/testsuite/semko/utrace04.stp new file mode 100755 index 00000000..6345f9f6 --- /dev/null +++ b/testsuite/semko/utrace04.stp @@ -0,0 +1,4 @@ +#! stap -p2 + +# death probes don't support target symbols +probe process("/bin/cat").death.return { print($syscall) } diff --git a/testsuite/semko/utrace05.stp b/testsuite/semko/utrace05.stp new file mode 100755 index 00000000..e99fd22f --- /dev/null +++ b/testsuite/semko/utrace05.stp @@ -0,0 +1,4 @@ +#! stap -p2 + +# can't write to $syscall +probe process("/bin/cat").syscall { $syscall = 1 } diff --git a/testsuite/semko/utrace06.stp b/testsuite/semko/utrace06.stp new file mode 100755 index 00000000..19e6043b --- /dev/null +++ b/testsuite/semko/utrace06.stp @@ -0,0 +1,4 @@ +#! stap -p2 + +# treat $syscall as a pointer +probe process("/bin/cat").syscall { print($syscall->foo) } diff --git a/testsuite/semko/utrace07.stp b/testsuite/semko/utrace07.stp new file mode 100755 index 00000000..2a9405b3 --- /dev/null +++ b/testsuite/semko/utrace07.stp @@ -0,0 +1,4 @@ +#! stap -p2 + +# treat $syscall as an array +probe process("/bin/cat").syscall { print($syscall[0]) } diff --git a/testsuite/semko/utrace08.stp b/testsuite/semko/utrace08.stp new file mode 100755 index 00000000..a558a5be --- /dev/null +++ b/testsuite/semko/utrace08.stp @@ -0,0 +1,4 @@ +#! stap -p2 + +# process path must be absolute +probe process("cat").death { } diff --git a/testsuite/semko/utrace09.stp b/testsuite/semko/utrace09.stp new file mode 100755 index 00000000..60c49cd2 --- /dev/null +++ b/testsuite/semko/utrace09.stp @@ -0,0 +1,4 @@ +#! stap -p2 + +# process path must be absolute +probe process("/foo/../bar").death { } diff --git a/testsuite/semko/utrace10.stp b/testsuite/semko/utrace10.stp new file mode 100755 index 00000000..b46baea9 --- /dev/null +++ b/testsuite/semko/utrace10.stp @@ -0,0 +1,4 @@ +#! stap -p2 + +# path can't contain an empty component +probe process("/foo//bar").death { } diff --git a/testsuite/semko/utrace11.stp b/testsuite/semko/utrace11.stp new file mode 100755 index 00000000..d78b602c --- /dev/null +++ b/testsuite/semko/utrace11.stp @@ -0,0 +1,4 @@ +#! stap -p2 + +# path can't end with '/' +probe process("/foo/bar/").death { } diff --git a/testsuite/semko/utrace12.stp b/testsuite/semko/utrace12.stp new file mode 100755 index 00000000..478aa1d3 --- /dev/null +++ b/testsuite/semko/utrace12.stp @@ -0,0 +1,4 @@ +#! stap -p2 + +# path can't end with '.' +probe process("/foo/bar/.").death { } diff --git a/testsuite/semko/utrace13.stp b/testsuite/semko/utrace13.stp new file mode 100755 index 00000000..16cc0391 --- /dev/null +++ b/testsuite/semko/utrace13.stp @@ -0,0 +1,4 @@ +#! stap -p2 + +# path can't end with '..' +probe process("/foo/bar/..").death { } |