diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-05-26 16:26:02 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-05-26 16:26:02 -0500 |
commit | aeb6ab59af1f325261db754aade493a949d5a1e3 (patch) | |
tree | edf964abe2a7240cd8c7d76a3aab7e88a787a3d4 /tests/test-indicator.cc | |
parent | 21656d99ee4991f25b22963b7c3d961174e4b9f8 (diff) | |
download | ayatana-indicator-power-aeb6ab59af1f325261db754aade493a949d5a1e3.tar.gz ayatana-indicator-power-aeb6ab59af1f325261db754aade493a949d5a1e3.tar.bz2 ayatana-indicator-power-aeb6ab59af1f325261db754aade493a949d5a1e3.zip |
call g_object_run_dispose() in a standalone test to get coverage on the NULL / non-NULL branches of dispose()'s g_clear_pointer() calls
Diffstat (limited to 'tests/test-indicator.cc')
-rw-r--r-- | tests/test-indicator.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test-indicator.cc b/tests/test-indicator.cc index 52e319f..dedf54c 100644 --- a/tests/test-indicator.cc +++ b/tests/test-indicator.cc @@ -96,6 +96,7 @@ TEST_F(IndicatorTest, GObjectNew) GObject * o = G_OBJECT (g_object_new (INDICATOR_POWER_TYPE, NULL)); ASSERT_TRUE (o != NULL); ASSERT_TRUE (IS_INDICATOR_POWER(o)); + g_object_run_dispose (o); // used to get coverage of both branches in the object's dispose func's g_clear_*() calls g_object_unref (o); } |