summaryrefslogtreecommitdiffstats
path: root/runtime/tests/pmaps/pmap.test
diff options
context:
space:
mode:
authorhunt <hunt>2005-11-10 21:19:29 +0000
committerhunt <hunt>2005-11-10 21:19:29 +0000
commitc4f0340669f6c859bfd66e277f235bac457d65d1 (patch)
tree62a54b010c8a41d24a0591236aaf219fed7c4f25 /runtime/tests/pmaps/pmap.test
parent02654aefdaf6d3aaa3ab3f5100cf5e1ce32c1d20 (diff)
downloadsystemtap-steved-c4f0340669f6c859bfd66e277f235bac457d65d1.tar.gz
systemtap-steved-c4f0340669f6c859bfd66e277f235bac457d65d1.tar.xz
systemtap-steved-c4f0340669f6c859bfd66e277f235bac457d65d1.zip
2005-11-10 Martin Hunt <hunt@redhat.com>
* pmaps/ii2.c: New test of maps and pmaps with the same keysym. * pmaps/pmap.test: Update.
Diffstat (limited to 'runtime/tests/pmaps/pmap.test')
-rw-r--r--runtime/tests/pmaps/pmap.test17
1 files changed, 17 insertions, 0 deletions
diff --git a/runtime/tests/pmaps/pmap.test b/runtime/tests/pmaps/pmap.test
index a8f82506..4e6a6ce4 100644
--- a/runtime/tests/pmaps/pmap.test
+++ b/runtime/tests/pmaps/pmap.test
@@ -370,6 +370,23 @@ mapssx[ Riga, Latvia] = 322D82
mapssx[ Sofia, Bulgaria] = 7E9
mapssx[ Valletta, Malta] = B22}
+
+test ii2 {Test of maps and pmaps with int64 keys and int64 values} -setup {
+ exec gcc $CFLAGS -I $KPATH -I $PATH -I $MPATH -o test ii2.c
+} -body {
+ exec ./test
+} -result {map[2] = 288
+map[4] = 8
+map[1] = 28
+map[3] = 140
+
+pmap[2] = 288
+pmap[4] = 8
+pmap[1] = 28
+pmap[3] = 140
+}
+
+
catch {exec rm test}
cleanupTests