summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/parseko/preprocess17.stp3
-rwxr-xr-xtestsuite/parseok/twenty.stp3
2 files changed, 6 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" %)'
diff --git a/testsuite/parseok/twenty.stp b/testsuite/parseok/twenty.stp
index d474ad5d..f03ae267 100755
--- a/testsuite/parseok/twenty.stp
+++ b/testsuite/parseok/twenty.stp
@@ -10,3 +10,6 @@ global
%( $# != 2 && @# < "1" && @# == "0" && $# >= 3 %?
%( $2 >= "12" %? $3 FAIL2 %: $2 FAIL3 %) #This line must not be evaluated
%: PASS2 %)
+
+global
+%( systemtap_v >= "1.2" %? PASS3 %: "FAIL" %)