X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=tests%2Frefcount%2Fproperties4.c;h=94b704afac662fff02e488cdb36dd141480b7ff4;hb=db1c83a5163dab40673b1c5cdf23fdff771ebaf3;hp=251216039a2f59d1bddfb9e05007dd62eab00c32;hpb=07168724d74cb656938df7abaa42dacff94c62cf;p=platform%2Fupstream%2Fglib.git diff --git a/tests/refcount/properties4.c b/tests/refcount/properties4.c index 2512160..94b704a 100644 --- a/tests/refcount/properties4.c +++ b/tests/refcount/properties4.c @@ -151,6 +151,7 @@ int main (int argc, char **argv) { MyBadger * badger1, * badger2; + gpointer test; g_print ("START: %s\n", argv[0]); g_log_set_always_fatal (G_LOG_LEVEL_WARNING | G_LOG_LEVEL_CRITICAL | g_log_set_always_fatal (G_LOG_FATAL_MASK)); @@ -161,6 +162,9 @@ main (int argc, char **argv) g_object_set (badger1, "mama", badger2, NULL); g_assert_cmpuint (badger1->mama_notify_count, ==, 1); g_assert_cmpuint (badger2->mama_notify_count, ==, 1); + g_object_get (badger1, "mama", &test, NULL); + g_assert (test == badger2); + g_object_unref (test); g_object_unref (badger1); g_object_unref (badger2);