diff options
Diffstat (limited to 'testsuite/parseko')
-rwxr-xr-x | testsuite/parseko/eleven.stp | 4 | ||||
-rwxr-xr-x | testsuite/parseko/fourteen.stp | 7 | ||||
-rwxr-xr-x | testsuite/parseko/ten.stp | 6 | ||||
-rwxr-xr-x | testsuite/parseko/thirteen.stp | 7 | ||||
-rwxr-xr-x | testsuite/parseko/twelve.stp | 4 |
5 files changed, 27 insertions, 1 deletions
diff --git a/testsuite/parseko/eleven.stp b/testsuite/parseko/eleven.stp new file mode 100755 index 00000000..f1b9321d --- /dev/null +++ b/testsuite/parseko/eleven.stp @@ -0,0 +1,4 @@ +#! stap -p1 + +function foo () {} +function foo () {} diff --git a/testsuite/parseko/fourteen.stp b/testsuite/parseko/fourteen.stp new file mode 100755 index 00000000..b646f8b6 --- /dev/null +++ b/testsuite/parseko/fourteen.stp @@ -0,0 +1,7 @@ +#! stap -p2 + +function zoo () %{ /* invalid embedded code */ %} + +probe begin +{ +} diff --git a/testsuite/parseko/ten.stp b/testsuite/parseko/ten.stp index a268db4e..0a5f338e 100755 --- a/testsuite/parseko/ten.stp +++ b/testsuite/parseko/ten.stp @@ -1,5 +1,9 @@ -#! stap -p1 +#! /bin/sh + +./stap -p1 -g - <<'END' probe foo { %{ /* not a valid place for embedded code */ %} } + +END diff --git a/testsuite/parseko/thirteen.stp b/testsuite/parseko/thirteen.stp new file mode 100755 index 00000000..1a5b46f6 --- /dev/null +++ b/testsuite/parseko/thirteen.stp @@ -0,0 +1,7 @@ +#! stap -p2 + +%{ /* embedded code not permitted since -g not supplied */ %} + +probe begin +{ +} diff --git a/testsuite/parseko/twelve.stp b/testsuite/parseko/twelve.stp new file mode 100755 index 00000000..199f6a90 --- /dev/null +++ b/testsuite/parseko/twelve.stp @@ -0,0 +1,4 @@ +#! stap -p1 + +global foo +global foo |