testglib: my_hash_callback_remove_test: actually fail the test
commit0a9d91ab7b3b11df74a46d2068316a7c198e8558
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 11 May 2015 15:38:57 +0000 (11 16:38 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 11 May 2015 19:24:50 +0000 (11 20:24 +0100)
treee2133f6786c51ecd1b07c9bb5708447ace6b6908
parent4865538ce3d93dda802d25cbf93743e842507c5f
testglib: my_hash_callback_remove_test: actually fail the test

The test is to remove all the odd values with my_hash_callback_remove(),
then iterate over all values and verify that they are even. However,
failing this check would just print "bad!" instead of failing the test.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=725981
Reviewed-by: Colin Walters <walters@verbum.org>
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
tests/testglib.c