From 0a9d91ab7b3b11df74a46d2068316a7c198e8558 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Mon, 11 May 2015 16:38:57 +0100 Subject: [PATCH] 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 Signed-off-by: Simon McVittie --- tests/testglib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testglib.c b/tests/testglib.c index 7ccdc0550..db3ef3e28 100644 --- a/tests/testglib.c +++ b/tests/testglib.c @@ -469,7 +469,7 @@ my_hash_callback_remove_test (gpointer key, int *d = value; if ((*d) % 2) - g_print ("bad!\n"); + g_error ("hash table entry %d should have been removed already\n", *d); } static void