[libpeas] Assert if an engine is alive after g_test_run()



commit 81992ffb17501a989c69a18e5e28058b0b3bb091
Author: Garrett Regier <garrettregier gmail com>
Date:   Tue Nov 12 22:45:04 2013 -0800

    Assert if an engine is alive after g_test_run()
    
    This can happen when adding new tests.

 tests/testing-util/testing-util.c |    3 +++
 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]