This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 4/4] add cases for var type


	* testsuite/semko/num2string.stp: new test case
	* testsuite/semko/string2num.stp: new test case
---
 testsuite/semko/num2string.stp | 9 +++++++++
 testsuite/semko/string2num.stp | 9 +++++++++
 2 files changed, 18 insertions(+)
 create mode 100755 testsuite/semko/num2string.stp
 create mode 100755 testsuite/semko/string2num.stp

diff --git a/testsuite/semko/num2string.stp b/testsuite/semko/num2string.stp
new file mode 100755
index 0000000..28aa8b6
--- /dev/null
+++ b/testsuite/semko/num2string.stp
@@ -0,0 +1,9 @@
+#! stap -p2
+
+probe begin
+{
+        var_num=2008
+        var_num="HelloWorld"
+	printf("string:%s\n", var_num)
+	exit()
+}
diff --git a/testsuite/semko/string2num.stp b/testsuite/semko/string2num.stp
new file mode 100755
index 0000000..c896a40
--- /dev/null
+++ b/testsuite/semko/string2num.stp
@@ -0,0 +1,9 @@
+#! stap -p2
+
+probe begin
+{
+        var_string="HelloWorld"
+        var_string=2008
+	printf("num:%d\n", var_string)
+	exit()
+}
-- 
1.8.3.1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]