summaryrefslogtreecommitdiffstats
path: root/testsuite/parseko
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/parseko')
-rwxr-xr-xtestsuite/parseko/preprocess10.stp4
-rwxr-xr-xtestsuite/parseko/preprocess11.stp4
-rwxr-xr-xtestsuite/parseko/preprocess12.stp5
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 } %)