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 3/3] add new case for white space


	* testsuite/systemtap.base/whitespace.exp: new test case
	* testsuite/systemtap.base/whitespace.stp: new test file
---
 testsuite/systemtap.base/whitespace.exp | 13 +++++++++++++
 testsuite/systemtap.base/whitespace.stp | 14 ++++++++++++++
 2 files changed, 27 insertions(+)
 create mode 100644 testsuite/systemtap.base/whitespace.exp
 create mode 100644 testsuite/systemtap.base/whitespace.stp

diff --git a/testsuite/systemtap.base/whitespace.exp b/testsuite/systemtap.base/whitespace.exp
new file mode 100644
index 0000000..ee12594
--- /dev/null
+++ b/testsuite/systemtap.base/whitespace.exp
@@ -0,0 +1,13 @@
+# Check white space
+
+set test "whitespace"
+if {![installtest_p]} { untested "$test"; return }
+
+foreach runtime [get_runtime_list] {
+    if {$runtime != ""} {
+	stap_run $srcdir/$subdir/$test.stp no_load ($all_pass_string){2} \
+	    --runtime=$runtime
+    } else {
+	stap_run $srcdir/$subdir/$test.stp no_load ($all_pass_string){2}
+    }
+}
diff --git a/testsuite/systemtap.base/whitespace.stp b/testsuite/systemtap.base/whitespace.stp
new file mode 100644
index 0000000..9f06ce7
--- /dev/null
+++ b/testsuite/systemtap.base/whitespace.stp
@@ -0,0 +1,14 @@
+/*
+ * whitespace.stp
+ *
+ * Check white space
+ */
+
+
+probe begin
+{
+println("systemtap starting probe"); println("systemtap ending probe");     println("systemtap test success")
+;
+println("systemtap test success")
+    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]