diff options
author | fche <fche> | 2005-11-01 16:13:35 +0000 |
---|---|---|
committer | fche <fche> | 2005-11-01 16:13:35 +0000 |
commit | 177a8ead26e48a61efd904103a9d189cb27009dd (patch) | |
tree | d27cfc1ba5928e3454cda6dca7b1bee30d9732b9 /testsuite/parseok | |
parent | dc2729782a046ea5f60e74f48d1097d2fec4a16b (diff) | |
download | systemtap-steved-177a8ead26e48a61efd904103a9d189cb27009dd.tar.gz systemtap-steved-177a8ead26e48a61efd904103a9d189cb27009dd.tar.xz systemtap-steved-177a8ead26e48a61efd904103a9d189cb27009dd.zip |
2005-11-01 Frank Ch. Eigler <fche@elastic.org>
PR 1425.
* configure.ac: Look for rpm-devel headers and libs.
* configure: Regenerated.
* session.h: New file to contain systemtap_session decl.
* staptree.h: Likewise evict statistics_decl.
* elaborate.h: Corresponding changes.
* main.cxx (usage): Elaborate. Re-enable "-r RELEASE" option.
* parse.cxx (parser): Add systemtap_session& field. Update users.
(scan_pp, eval_pp_conditional): New routines for preprocessing.
(peek, next): Call it.
(lexer::scan): Lex the preprocessor operators.
(parser::parse): Include an extra level of exception catching
for parse errors that occur during recovery.
* parse.h: Corresponding changes.
(parse_error): Allow explicit token parameter.
* stap.1.in: Document preprocessing.
* testsuite/parseok/fourteen.stp: New test.
Diffstat (limited to 'testsuite/parseok')
-rwxr-xr-x | testsuite/parseok/fourteen.stp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/parseok/fourteen.stp b/testsuite/parseok/fourteen.stp new file mode 100755 index 00000000..e68aa4fe --- /dev/null +++ b/testsuite/parseok/fourteen.stp @@ -0,0 +1,10 @@ +#! stap -p1 + +global +%( kernel_v > "2.6" %? /* and */ + %( kernel_vr != "2.9.77-2873NOTHING" %? /* and */ + %( kernel_v <= "3.5" %? /* and */ + %( kernel_vr == "2.3.5-2.43.54.2" %? "FAIL1" %: PASS %) + %: "FAIL2" %) + %: "FAIL3" %) +%: "FAIL4" %) |