diff options
author | hunt <hunt> | 2005-10-28 19:20:28 +0000 |
---|---|---|
committer | hunt <hunt> | 2005-10-28 19:20:28 +0000 |
commit | 052d76119736a4b1d90190e37f45439ca1e57393 (patch) | |
tree | ff427926fa9d833f264ef0b7c4a8eca9543b6753 /runtime/tests/maps/iiss2.c | |
parent | 0a44d98ee3df2e6c4153208ea4c5227e78d258ea (diff) | |
download | systemtap-steved-052d76119736a4b1d90190e37f45439ca1e57393.tar.gz systemtap-steved-052d76119736a4b1d90190e37f45439ca1e57393.tar.xz systemtap-steved-052d76119736a4b1d90190e37f45439ca1e57393.zip |
2005-10-28 Martin Hunt <hunt@redhat.com>
* maps/keys.c: New file. Tests specific to _stp_key_get_*().
* maps/iiss2.c (main): Add some comments to make clear expected
results.
* maps/is2.c (main): _stp_map_get_*s() now returns "" instead
of NULL when lookup fails. _stp_map_set_*s() now deletes a node
when setting to "" (as well as NULL).
* maps/setadd.c (main): Ditto.
* maps/map.test: update results.
Diffstat (limited to 'runtime/tests/maps/iiss2.c')
-rw-r--r-- | runtime/tests/maps/iiss2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/tests/maps/iiss2.c b/runtime/tests/maps/iiss2.c index 56c3d186..96369d56 100644 --- a/runtime/tests/maps/iiss2.c +++ b/runtime/tests/maps/iiss2.c @@ -32,9 +32,11 @@ int main () _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"); |