summaryrefslogtreecommitdiffstats
path: root/runtime/tests/maps/iiss.c
diff options
context:
space:
mode:
authorStan Cox <scox@redhat.com>2008-05-29 14:46:38 -0400
committerStan Cox <scox@redhat.com>2008-05-29 14:46:38 -0400
commitc39d889155d4c9365bd27691d22a92c447ced976 (patch)
tree64b56069b0435ac09564ba983bea154a9747bcbe /runtime/tests/maps/iiss.c
parentef63732e82dd7979dcf608ba6ed4528e150b47ac (diff)
downloadsystemtap-steved-c39d889155d4c9365bd27691d22a92c447ced976.tar.gz
systemtap-steved-c39d889155d4c9365bd27691d22a92c447ced976.tar.xz
systemtap-steved-c39d889155d4c9365bd27691d22a92c447ced976.zip
SW5106 Remove old map and histogram formatting code
Diffstat (limited to 'runtime/tests/maps/iiss.c')
-rw-r--r--runtime/tests/maps/iiss.c45
1 files changed, 0 insertions, 45 deletions
diff --git a/runtime/tests/maps/iiss.c b/runtime/tests/maps/iiss.c
deleted file mode 100644
index 96369d56..00000000
--- a/runtime/tests/maps/iiss.c
+++ /dev/null
@@ -1,45 +0,0 @@
-#include "runtime.h"
-
-/* test of maps with keys of int64,int64,string and value of string */
-#define VALUE_TYPE STRING
-#define KEY1_TYPE INT64
-#define KEY2_TYPE INT64
-#define KEY3_TYPE STRING
-#include "map-gen.c"
-
-#include "map.c"
-
-int main ()
-{
- MAP map = _stp_map_new_iiss(4);
- map->wrap = 1;
-
- _stp_map_set_iiss (map, 1,2,"Ohio", "Columbus" );
- _stp_map_set_iiss (map, 3,4,"California", "Sacramento" );
- _stp_map_set_iiss (map, 5,6,"Washington", "Seattle" );
- _stp_map_set_iiss (map, 7,8,"Oregon", "Salem" );
- _stp_map_print (map, "map[%1d, %2d, %3s] = %s");
-
- _stp_map_set_iiss (map, -9,-10,"Nevada", "Carson City" );
- _stp_map_print (map, "map[%1d, %2d, %3s] = %s");
-
- _stp_map_set_iiss (map, 5,6,"Washington", "Olymp" );
- _stp_map_print (map, "map[%1d, %2d, %3s] = %s");
-
- _stp_map_add_iiss (map, 5,6,"Washington", "is" );
- _stp_map_print (map, "map[%1d, %2d, %3s] = %s");
-
- _stp_map_set_iiss (map, 5,6,"Washington", "Olympia" );
- _stp_map_print (map, "map[%1d, %2d, %3s] = %s");
-
- /* delete */
- _stp_map_set_iiss (map, -9,-10,"Nevada", 0);
- _stp_map_print (map, "map[%1d, %2d, %3s] = %s");
-
- /* should add nothing */
- _stp_map_set_iiss(map, 0,0,"", "");
- _stp_map_print (map, "map[%1d, %2d, %3s] = %s");
-
- _stp_map_del (map);
- return 0;
-}