diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2010-04-08 17:15:49 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2010-04-08 17:17:47 -0400 |
commit | db135493669e5e2e1d0dc5c30c8d4a38bfd6653f (patch) | |
tree | 17e5dcfbecd418cca47b0417117d905e4e79669d /testsuite/parseko/preprocess17.stp | |
parent | 0161aa7bab9847980aad1a368efcaa0594e91b24 (diff) | |
download | systemtap-steved-db135493669e5e2e1d0dc5c30c8d4a38bfd6653f.tar.gz systemtap-steved-db135493669e5e2e1d0dc5c30c8d4a38bfd6653f.tar.xz systemtap-steved-db135493669e5e2e1d0dc5c30c8d4a38bfd6653f.zip |
PR11343: backward compatibility option/conditional
* main.cxx: Add "--compatible=VERSION" option.
* session.h (compatible): Store it.
* parse.cxx (eval_pp_conditional): Look at it as %( systemtap_v CMP VALUE ... %)
* stap.1.in: Document it.
* testsuite/parseko/preprocess17.stp, parseok/twenty.stp: Test it.
Diffstat (limited to 'testsuite/parseko/preprocess17.stp')
-rwxr-xr-x | testsuite/parseko/preprocess17.stp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuite/parseko/preprocess17.stp b/testsuite/parseko/preprocess17.stp new file mode 100755 index 00000000..b447776d --- /dev/null +++ b/testsuite/parseko/preprocess17.stp @@ -0,0 +1,3 @@ +#! /bin/sh + +stap --compatible=1.0 -p1 -e 'global %( systemtap_v >= "1.2" %? PASS %: "FAIL" %)' |