summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.maps/iiiiii.exp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.maps/iiiiii.exp')
-rw-r--r--testsuite/systemtap.maps/iiiiii.exp72
1 files changed, 72 insertions, 0 deletions
diff --git a/testsuite/systemtap.maps/iiiiii.exp b/testsuite/systemtap.maps/iiiiii.exp
new file mode 100644
index 00000000..69fdfd3d
--- /dev/null
+++ b/testsuite/systemtap.maps/iiiiii.exp
@@ -0,0 +1,72 @@
+# Simple test of maps with 5 ints as keys, returning ints
+
+load_lib "stap_run2.exp"
+
+set test "iiiiii"
+set ::result_string {foo[0,0,0,0,1] = 1
+foo[0,0,0,1,0] = 1
+foo[0,0,0,1,1] = 2
+foo[0,0,1,0,0] = 1
+foo[0,0,1,0,1] = 2
+foo[0,0,1,1,0] = 2
+foo[0,0,1,1,1] = 3
+foo[0,1,0,0,0] = 1
+foo[0,1,0,0,1] = 2
+foo[0,1,0,1,0] = 2
+foo[0,1,0,1,1] = 3
+foo[0,1,1,0,0] = 2
+foo[0,1,1,0,1] = 3
+foo[0,1,1,1,0] = 3
+foo[0,1,1,1,1] = 4
+foo[1,0,0,0,0] = 1
+foo[1,0,0,0,1] = 2
+foo[1,0,0,1,0] = 2
+foo[1,0,0,1,1] = 3
+foo[1,0,1,0,0] = 2
+foo[1,0,1,0,1] = 3
+foo[1,0,1,1,0] = 3
+foo[1,0,1,1,1] = 4
+foo[1,1,0,0,0] = 2
+foo[1,1,0,0,1] = 3
+foo[1,1,0,1,0] = 3
+foo[1,1,0,1,1] = 4
+foo[1,1,1,0,0] = 3
+foo[1,1,1,0,1] = 4
+foo[1,1,1,1,0] = 4
+foo[1,1,1,1,1] = 5
+
+foo[0,0,0,0,1] = 1
+foo[0,0,0,1,0] = 1
+foo[0,0,0,1,1] = 2
+foo[0,0,1,0,0] = 1
+foo[0,0,1,0,1] = 2
+foo[0,0,1,1,0] = 2
+foo[0,1,0,0,0] = 1
+foo[0,1,0,0,1] = 2
+foo[0,1,0,1,0] = 2
+foo[0,1,0,1,1] = 3
+foo[0,1,1,0,0] = 2
+foo[0,1,1,0,1] = 3
+foo[0,1,1,1,0] = 3
+foo[0,1,1,1,1] = 4
+foo[1,0,0,0,0] = 1
+foo[1,0,0,0,1] = 2
+foo[1,0,0,1,0] = 2
+foo[1,0,0,1,1] = 3
+foo[1,0,1,0,0] = 2
+foo[1,0,1,0,1] = 3
+foo[1,0,1,1,0] = 3
+foo[1,0,1,1,1] = 4
+foo[1,1,0,0,0] = 2
+foo[1,1,0,0,1] = 3
+foo[1,1,0,1,0] = 3
+foo[1,1,0,1,1] = 4
+foo[1,1,1,0,0] = 3
+foo[1,1,1,0,1] = 4
+foo[1,1,1,1,0] = 4
+foo[1,1,1,1,1] = 5
+}
+
+stap_run2 $srcdir/$subdir/$test.stp
+
+