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 2/3] add more case for delete


	* 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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]