summaryrefslogtreecommitdiff
path: root/tests/testing-util
diff options
context:
space:
mode:
authorGarrett Regier <garrettregier@gmail.com>2013-11-12 22:45:04 -0800
committerGarrett Regier <garrettregier@gmail.com>2013-11-12 22:45:04 -0800
commit81992ffb17501a989c69a18e5e28058b0b3bb091 (patch)
tree904aaf93f34b97362c223953ec588d868f01ad59 /tests/testing-util
parent6bba3128ca694ebc3e06b4e84e6c6562aa545f95 (diff)
downloadlibpeas-81992ffb17501a989c69a18e5e28058b0b3bb091.tar.gz
Assert if an engine is alive after g_test_run()
This can happen when adding new tests.
Diffstat (limited to 'tests/testing-util')
-rw-r--r--tests/testing-util/testing-util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/testing-util/testing-util.c b/tests/testing-util/testing-util.c
index 7c78384..8b843a3 100644
--- a/tests/testing-util/testing-util.c
+++ b/tests/testing-util/testing-util.c
@@ -196,6 +196,9 @@ testing_util_run_tests (void)
retval = g_test_run ();
+ /* Make sure all the engines have been freed */
+ g_assert (engine == NULL);
+
if (log_hooks != NULL)
{
g_assert_cmpuint (log_hooks->len, ==, 0);