]> sourceware.org Git - systemtap.git/commitdiff
Revert "PR11207: testsuite for oneline macros feature."
authorSerguei Makarov <smakarov@redhat.com>
Mon, 30 Jul 2012 18:36:26 +0000 (14:36 -0400)
committerSerguei Makarov <smakarov@redhat.com>
Mon, 30 Jul 2012 18:36:26 +0000 (14:36 -0400)
This reverts commit 05b137ec05922db854429770f96ce6a4a1501347.

testsuite/parseko/macros02.stp [new file with mode: 0755]
testsuite/parseko/macros12.stp [deleted file]
testsuite/parseko/macros13.stp [deleted file]
testsuite/parseko/macros14.stp [deleted file]
testsuite/parseok/macros09.stp [deleted file]
testsuite/parseok/macros10.stp [deleted file]
testsuite/parseok/macros11.stp [deleted file]
testsuite/parseok/macros12.stp [deleted file]
testsuite/parseok/macros13.stp [deleted file]

diff --git a/testsuite/parseko/macros02.stp b/testsuite/parseko/macros02.stp
new file mode 100755 (executable)
index 0000000..d1034d0
--- /dev/null
@@ -0,0 +1,3 @@
+#! stap -p2
+
+@define foo
diff --git a/testsuite/parseko/macros12.stp b/testsuite/parseko/macros12.stp
deleted file mode 100755 (executable)
index 39fd558..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#! stap -p2
-
-# use before define
-@kaprobe (begin)
-
-@define kaprobe(
-        a)
-
-%(
-        probe @a {
-              foo = 2+2
-              print(foo)
-        }
-%)   
diff --git a/testsuite/parseko/macros13.stp b/testsuite/parseko/macros13.stp
deleted file mode 100755 (executable)
index 4bacc98..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#! stap -p2
-
-# interpreted as empty one-line macro
-# contrast parseok/macros11.stp and parseok/macros12.stp
-@define whatemptyfoo(a,b,c)
-
-%( @a
-+ @b
-+ @c %) # not taken as the macro body!
diff --git a/testsuite/parseko/macros14.stp b/testsuite/parseko/macros14.stp
deleted file mode 100644 (file)
index 71ecafb..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-#! stap -p2
-
-# "expected %( for multiline macro
-
-@define foo(bar,
-            baz)
-        this is not a good macro body
diff --git a/testsuite/parseok/macros09.stp b/testsuite/parseok/macros09.stp
deleted file mode 100755 (executable)
index 0d5a5f9..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#! stap -p2
-
-# empty definition
-@define foo
-
-probe begin @foo { print(42) }
diff --git a/testsuite/parseok/macros10.stp b/testsuite/parseok/macros10.stp
deleted file mode 100755 (executable)
index c32acce..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#! stap -p2
-
-@define oneline(a,b) ((@a)+(@b))
-@define foo(a) @a
-
-probe @foo(begin) { print(@oneline(2,2)) }
diff --git a/testsuite/parseok/macros11.stp b/testsuite/parseok/macros11.stp
deleted file mode 100755 (executable)
index da41b66..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#! stap -p2
-
-# special case of multiline macro parsing
-# note macro signature spills over multiple lines
-@define kaprobe(
-        a)
-
-%(
-        probe @a {
-              foo = 2+2
-              print(foo)
-        }
-%)   
-
-@kaprobe(begin)
diff --git a/testsuite/parseok/macros12.stp b/testsuite/parseok/macros12.stp
deleted file mode 100755 (executable)
index ee9f867..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-#! stap -p2
-
-@define empty(ingored)
-
-# next, a conditional -- NOT the macro body
-%( kernel_v > "3.0" %?
-   probe begin { printf("foo") }
-%:
-   probe begin { printf("bar") }
-%)
diff --git a/testsuite/parseok/macros13.stp b/testsuite/parseok/macros13.stp
deleted file mode 100644 (file)
index de0ece4..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#! stap -p2
-
-@define irrelevant(foo,
-                   bar) %( what about this? %)
-
-probe begin { print("Hello, World!\n") }
This page took 0.033705 seconds and 5 git commands to generate.