summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.string/isinstr.exp
diff options
context:
space:
mode:
authorhunt <hunt>2006-08-21 16:39:35 +0000
committerhunt <hunt>2006-08-21 16:39:35 +0000
commitfc98aa95b304065ebbf8beb77699d7b686591259 (patch)
tree6de0c75a45af70b7d3ceba77ef62c2dfaa0b756f /testsuite/systemtap.string/isinstr.exp
parent8267555c5fefa23a30988e3327c4aaeeed662c54 (diff)
downloadsystemtap-steved-fc98aa95b304065ebbf8beb77699d7b686591259.tar.gz
systemtap-steved-fc98aa95b304065ebbf8beb77699d7b686591259.tar.xz
systemtap-steved-fc98aa95b304065ebbf8beb77699d7b686591259.zip
New tests for string functions.
Diffstat (limited to 'testsuite/systemtap.string/isinstr.exp')
-rw-r--r--testsuite/systemtap.string/isinstr.exp7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/systemtap.string/isinstr.exp b/testsuite/systemtap.string/isinstr.exp
new file mode 100644
index 00000000..746e6c74
--- /dev/null
+++ b/testsuite/systemtap.string/isinstr.exp
@@ -0,0 +1,7 @@
+load_lib "stap_run2.exp"
+set test "isinstr"
+set ::result_string {"foo" is in "abcfoobad"
+"foo" is NOT in "abcdefg"
+"" is in ""
+}
+stap_run2 $srcdir/$subdir/$test.stp