public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: Zhou Wenjian <zhouwj-fnst@cn.fujitsu.com>
To: <systemtap@sourceware.org>
Subject: [PATCH 2/3] add more case for delete
Date: Mon, 07 Dec 2015 09:07:00 -0000	[thread overview]
Message-ID: <1449479119-10817-2-git-send-email-zhouwj-fnst@cn.fujitsu.com> (raw)
In-Reply-To: <1449479119-10817-1-git-send-email-zhouwj-fnst@cn.fujitsu.com>

	* testsuite/systemtap.maps/ii.exp: update for new test case
	* testsuite/systemtap.maps/ii.stp: add more test case
---
 testsuite/systemtap.maps/ii.exp | 12 ++++++++++++
 testsuite/systemtap.maps/ii.stp |  6 ++++++
 2 files changed, 18 insertions(+)

diff --git a/testsuite/systemtap.maps/ii.exp b/testsuite/systemtap.maps/ii.exp
index e32cd93..25fe354 100644
--- a/testsuite/systemtap.maps/ii.exp
+++ b/testsuite/systemtap.maps/ii.exp
@@ -18,6 +18,18 @@ foo[1] = 1
 foo[2] = 4
 foo[3] = 9
 foo[4] = 16
+foo[5] = 25
+foo[6] = 36
+foo[7] = 49
+foo[8] = 64
+foo[9] = 81
+foo[10] = 100
+
+foo[0] = 0
+foo[1] = 1
+foo[2] = 4
+foo[3] = 9
+foo[4] = 16
 foo[6] = 36
 foo[7] = 49
 foo[8] = 64
diff --git a/testsuite/systemtap.maps/ii.stp b/testsuite/systemtap.maps/ii.stp
index aaf6279..dbde15c 100644
--- a/testsuite/systemtap.maps/ii.stp
+++ b/testsuite/systemtap.maps/ii.stp
@@ -9,6 +9,12 @@ probe begin {
 	foreach (i in foo)
 	 	printf("foo[%d] = %d\n", i, foo[i])
 
+	# delete out of the index
+	delete foo[11]
+	printf("\n")
+	foreach (i in foo)
+	 	printf("foo[%d] = %d\n", i, foo[i])
+
 	# delete out of the middle
 	delete foo[5]
 	printf("\n")
-- 
1.8.3.1



  reply	other threads:[~2015-12-07  9:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-07  9:07 [PATCH 1/3] add test cases for arith Zhou Wenjian
2015-12-07  9:07 ` Zhou Wenjian [this message]
2015-12-07  9:07 ` [PATCH 3/3] add new case for white space Zhou Wenjian
2015-12-08 15:09 ` [PATCH 1/3] add test cases for arith Frank Ch. Eigler
2015-12-09  9:43   ` "Zhou, Wenjian/周文剑"
2015-12-09 21:40     ` David Smith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1449479119-10817-2-git-send-email-zhouwj-fnst@cn.fujitsu.com \
    --to=zhouwj-fnst@cn.fujitsu.com \
    --cc=systemtap@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).