]> sourceware.org Git - systemtap.git/commitdiff
Rewrite and add type mismatch 'semko' tests.
authorZhou Wenjian <zhouwj-fnst@cn.fujitsu.com>
Tue, 8 Dec 2015 19:18:55 +0000 (13:18 -0600)
committerDavid Smith <dsmith@redhat.com>
Tue, 8 Dec 2015 19:18:55 +0000 (13:18 -0600)
* testsuite/semko/typemismatch.stp: Deleted. Replace by
  typemismatch[123].stp.
* testsuite/semko/typemismatch1.stp: New test case.
* testsuite/semko/typemismatch2.stp: Ditto.
* testsuite/semko/typemismatch3.stp: Ditto.
* testsuite/semko/typemismatch4.stp: Ditto.

testsuite/semko/typemismatch.stp [deleted file]
testsuite/semko/typemismatch1.stp [new file with mode: 0755]
testsuite/semko/typemismatch2.stp [new file with mode: 0755]
testsuite/semko/typemismatch3.stp [new file with mode: 0755]
testsuite/semko/typemismatch4.stp [new file with mode: 0755]

diff --git a/testsuite/semko/typemismatch.stp b/testsuite/semko/typemismatch.stp
deleted file mode 100755 (executable)
index 94a49d5..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-#! stap -p2
-
-
-global noo 
-
-probe begin { foo = 1 ; foo = "bar" ; noo = 4 } 
-
-probe end { foo = "zoo" ; foo <<< 2 ; noo = "zoo" }
\ No newline at end of file
diff --git a/testsuite/semko/typemismatch1.stp b/testsuite/semko/typemismatch1.stp
new file mode 100755 (executable)
index 0000000..e60b376
--- /dev/null
@@ -0,0 +1,8 @@
+#! stap -p2
+
+
+global noo 
+
+probe begin { noo = 4 } 
+
+probe end { noo = "zoo" }
diff --git a/testsuite/semko/typemismatch2.stp b/testsuite/semko/typemismatch2.stp
new file mode 100755 (executable)
index 0000000..940582e
--- /dev/null
@@ -0,0 +1,4 @@
+#! stap -p2
+
+
+probe begin { foo = 1 ; foo = "bar" ;  print(foo) } 
diff --git a/testsuite/semko/typemismatch3.stp b/testsuite/semko/typemismatch3.stp
new file mode 100755 (executable)
index 0000000..74e367d
--- /dev/null
@@ -0,0 +1,3 @@
+#! stap -p2
+
+probe begin { foo = "zoo" ; foo <<< 2 ; print(foo) }
diff --git a/testsuite/semko/typemismatch4.stp b/testsuite/semko/typemismatch4.stp
new file mode 100755 (executable)
index 0000000..83af632
--- /dev/null
@@ -0,0 +1,4 @@
+#! stap -p2
+
+probe begin { foo = "bar" ; foo = 1 ; print(foo) } 
+
This page took 0.0305569999999999 seconds and 5 git commands to generate.