From 177a8ead26e48a61efd904103a9d189cb27009dd Mon Sep 17 00:00:00 2001 From: fche Date: Tue, 1 Nov 2005 16:13:35 +0000 Subject: 2005-11-01 Frank Ch. Eigler 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. --- testsuite/parseok/fourteen.stp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 testsuite/parseok/fourteen.stp (limited to 'testsuite/parseok') 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" %) -- cgit