summaryrefslogtreecommitdiff
path: root/tests/testing-util
diff options
context:
space:
mode:
authorGarrett Regier <garrettregier@gmail.com>2011-08-21 12:01:04 -0700
committerGarrett Regier <garrettregier@gmail.com>2011-08-28 14:21:01 -0700
commiteb3c046ff3c9e3fc6fbf5621b776b14ec6088330 (patch)
treebda3fce10e7e2fea7610983208521dd4bea30c96 /tests/testing-util
parentd92de7a737d2ec1f3fb971b4affaa10759ad8803 (diff)
downloadlibpeas-eb3c046ff3c9e3fc6fbf5621b776b14ec6088330.tar.gz
Use the correct hook when printing error message
Diffstat (limited to 'tests/testing-util')
-rw-r--r--tests/testing-util/testing-util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/testing-util/testing-util.c b/tests/testing-util/testing-util.c
index afb6280..b5ea4c3 100644
--- a/tests/testing-util/testing-util.c
+++ b/tests/testing-util/testing-util.c
@@ -255,6 +255,7 @@ testing_util_pop_log_hooks (void)
if (unhit_hooks->len == 1)
{
+ hook = g_ptr_array_index (unhit_hooks, 0);
g_error ("Log hook was not triggered: '%s'", hook->pattern);
}
else if (unhit_hooks->len > 1)