diff options
author | fche <fche> | 2007-04-04 21:18:23 +0000 |
---|---|---|
committer | fche <fche> | 2007-04-04 21:18:23 +0000 |
commit | 5811366a62325d2cacf5509c25ee564ae3269f9b (patch) | |
tree | 655f7d1b88d1901b7121151951b671cd9c940105 /testsuite/parseko | |
parent | 3b5793932ec33f897433bc513b49f35bd8b35b2f (diff) | |
download | systemtap-steved-5811366a62325d2cacf5509c25ee564ae3269f9b.tar.gz systemtap-steved-5811366a62325d2cacf5509c25ee564ae3269f9b.tar.xz systemtap-steved-5811366a62325d2cacf5509c25ee564ae3269f9b.zip |
2007-04-03 Pierre Peiffer <pierre.peiffer@bull.net>
* parse.cxx, parse.h (lexer::scan): Add $# and @# identifiers.
(eval_pp_conditional, scan_pp): Allow the use of $x and @x identifiers.
Produce more accurate error messages.
* stap.1.in: Document $# and @# identifiers.
2007-04-04 Pierre Peiffer <pierre.peiffer@bull.net>
* parseok/fourteen.stp: Add test about $# and @# usage during
the preprocessing.
* parseko/preprocess10.stp: New test.
* parseko/preprocess11.stp: New test.
* parseko/preprocess12.stp: New test.
Diffstat (limited to 'testsuite/parseko')
-rwxr-xr-x | testsuite/parseko/preprocess10.stp | 4 | ||||
-rwxr-xr-x | testsuite/parseko/preprocess11.stp | 4 | ||||
-rwxr-xr-x | testsuite/parseko/preprocess12.stp | 5 |
3 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/parseko/preprocess10.stp b/testsuite/parseko/preprocess10.stp new file mode 100755 index 00000000..5fcb7e9f --- /dev/null +++ b/testsuite/parseko/preprocess10.stp @@ -0,0 +1,4 @@ +#! stap -p1 + +# expected number as right value in comparison +%( $# != "2" %? probe begin { } %) diff --git a/testsuite/parseko/preprocess11.stp b/testsuite/parseko/preprocess11.stp new file mode 100755 index 00000000..586aec1a --- /dev/null +++ b/testsuite/parseko/preprocess11.stp @@ -0,0 +1,4 @@ +#! stap -p1 + +# expected string as right value in comparison +%( @# != 2 %? probe begin { } %) diff --git a/testsuite/parseko/preprocess12.stp b/testsuite/parseko/preprocess12.stp new file mode 100755 index 00000000..3ff3e34e --- /dev/null +++ b/testsuite/parseko/preprocess12.stp @@ -0,0 +1,5 @@ +#! stap -p1 + +# command line argument index invalid or out of range +# (try to access to an unavailable argument) +%( $# < 2 %? probe begin { print @1 } %) |