summaryrefslogtreecommitdiff
path: root/test/dict.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-11-09 17:29:15 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-11-09 17:29:15 +0000
commit6c0e77c643e96436d85aebb9195c83cb403c25fa (patch)
tree647f8a07a77abaf2cb1e692112f7777a3dd44de5 /test/dict.c
parentf3c6e30f43c8e9feec891d68cc3eee99c3ef6264 (diff)
downloadlibhubbub-6c0e77c643e96436d85aebb9195c83cb403c25fa.tar.gz
libhubbub-6c0e77c643e96436d85aebb9195c83cb403c25fa.tar.bz2
Return errors from dictionary constructor/destructor.
Fix commentary copied from libcss svn path=/trunk/hubbub/; revision=5663
Diffstat (limited to 'test/dict.c')
-rw-r--r--test/dict.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/dict.c b/test/dict.c
index 0c2e93e..9ba05fd 100644
--- a/test/dict.c
+++ b/test/dict.c
@@ -18,8 +18,7 @@ int main(int argc, char **argv)
UNUSED(argc);
UNUSED(argv);
- dict = hubbub_dict_create(myrealloc, NULL);
- assert(dict != NULL);
+ assert(hubbub_dict_create(myrealloc, NULL, &dict) == HUBBUB_OK);
assert(hubbub_dict_insert(dict, "Hello", (const void *) 123) ==
HUBBUB_OK);