[libpeas] Cleanup the tests thread local data
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Cleanup the tests thread local data
- Date: Tue, 22 Sep 2015 08:09:54 +0000 (UTC)
commit b410af079ad2bbb41f6c070d760d9608878b41ca
Author: Garrett Regier <garrettregier gmail com>
Date: Mon Sep 21 22:08:52 2015 -0700
Cleanup the tests thread local data
This fixes various tools not realizing that
the data has been taken care of correctly.
tests/testing-util/testing-util.c | 7 +++++--
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]