summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/ChangeLog5
-rwxr-xr-xtestsuite/parseok/eighteen.stp6
-rwxr-xr-xtestsuite/semok/twentythree.stp6
3 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/ChangeLog b/testsuite/ChangeLog
index 3bca1e4c..ee5664ca 100644
--- a/testsuite/ChangeLog
+++ b/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2006-09-06 Frank Ch. Eigler <fche@elastic.org>
+
+ * parseok/eighteen.stp, semok/twentythree.stp: New files for
+ testing initialized globals.
+
2006-08-21 Martin Hunt <hunt@redhat.com>
* lib/stap_run.exp: Check for existence of installtest_p
diff --git a/testsuite/parseok/eighteen.stp b/testsuite/parseok/eighteen.stp
new file mode 100755
index 00000000..883a6514
--- /dev/null
+++ b/testsuite/parseok/eighteen.stp
@@ -0,0 +1,6 @@
+#! stap -p1
+
+global c, a = 1
+global b = "hello", d
+
+probe begin { }
diff --git a/testsuite/semok/twentythree.stp b/testsuite/semok/twentythree.stp
new file mode 100755
index 00000000..dbdaf7e5
--- /dev/null
+++ b/testsuite/semok/twentythree.stp
@@ -0,0 +1,6 @@
+#! stap -p2
+
+global c, a = 1
+global b = "hello", d
+
+probe begin { print (c = a) print (d = b) }