From 6eec708abee9188d74602f2602925edd2daa6342 Mon Sep 17 00:00:00 2001 From: Varun Chandramohan Date: Sat, 20 Jun 2009 09:40:36 +0530 Subject: Testcase For str_replace() This patch adds the test case needed for this function. I have added few tests. If required more can be added in future. As discussed in previous version, the testcase patch has been reverted to the original as the str_replace() functionality has changed wrt to error handle. Signed-off-by: Varun Chandramohan Signed-off-by: Josh Stone --- testsuite/systemtap.string/str_replace.exp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 testsuite/systemtap.string/str_replace.exp (limited to 'testsuite/systemtap.string/str_replace.exp') diff --git a/testsuite/systemtap.string/str_replace.exp b/testsuite/systemtap.string/str_replace.exp new file mode 100644 index 00000000..4eedf1c6 --- /dev/null +++ b/testsuite/systemtap.string/str_replace.exp @@ -0,0 +1,14 @@ +set test "str_replace" + +set ::result_string {Result = hello pointer tap +Result = pointer system tap +Result = hello system pointer +Result = Here I am, on the bored again. there I am, up on the stage, Here I go, playing star again. There I go, turn the page.- Bob Sege +Result = here I am, on the road again. there I am, up on the stage, here I go, playing star again. There I go, turn the page.- Bob Seger +Result = Here I am, on the road again. there I am, up on the stage, Here I go, playing star again. There I go, turn the page.- Metallica +Result = hello tap +Result = hello system tap +Result = +Result = } +stap_run2 $srcdir/$subdir/$test.stp + -- cgit