summaryrefslogtreecommitdiff
path: root/tests/testing-util
diff options
context:
space:
mode:
authorGarrett Regier <garrettregier@gmail.com>2015-09-21 22:08:52 -0700
committerGarrett Regier <garrettregier@gmail.com>2015-09-22 01:04:38 -0700
commitb410af079ad2bbb41f6c070d760d9608878b41ca (patch)
tree55be736afc44f837aef3930a83c1e6d413ba7652 /tests/testing-util
parente4144d80baca67dd7078ba613d91c8316eef212f (diff)
downloadlibpeas-b410af079ad2bbb41f6c070d760d9608878b41ca.tar.gz
Cleanup the tests thread local data
This fixes various tools not realizing that the data has been taken care of correctly.
Diffstat (limited to 'tests/testing-util')
-rw-r--r--tests/testing-util/testing-util.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/testing-util/testing-util.c b/tests/testing-util/testing-util.c
index 0c2569a..396f2bf 100644
--- a/tests/testing-util/testing-util.c
+++ b/tests/testing-util/testing-util.c
@@ -261,9 +261,12 @@ testing_util_run_tests (void)
retval = g_test_run ();
- /* Cannot call this with atexit() because
- * gcov does not register that it was called.
+ /* Cleanup various data early otherwise some
+ * tools, like gcov, will not process it correctly
*/
+ g_private_replace (&engine_key, NULL);
+ g_private_replace (&unhandled_key, NULL);
+ g_private_replace (&log_hooks_key, NULL);
peas_engine_shutdown ();
return retval;