summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.string/substr.exp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.string/substr.exp')
-rw-r--r--testsuite/systemtap.string/substr.exp19
1 files changed, 19 insertions, 0 deletions
diff --git a/testsuite/systemtap.string/substr.exp b/testsuite/systemtap.string/substr.exp
new file mode 100644
index 00000000..ee906e5e
--- /dev/null
+++ b/testsuite/systemtap.string/substr.exp
@@ -0,0 +1,19 @@
+load_lib "stap_run2.exp"
+set test "substr"
+set ::result_string {Hello World!
+0,0:
+-1,10:
+10,0:
+0,1: H
+1,1: e
+2,1: l
+2,5: llo W
+6,1: W
+11,1: !
+11,100: !
+12,1:
+0,10: Hello Worl
+0,100: Hello World!
+0,100000: Hello World!
+}
+stap_run2 $srcdir/$subdir/$test.stp