From: Matthias Clasen Date: Fri, 23 Sep 2011 11:26:33 +0000 (-0400) Subject: Make the rec mutex test a little more verbose X-Git-Tag: 2.31.0~373 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dd002113f1ce4114f6f39b562f895aab6b47c8dc;p=platform%2Fupstream%2Fglib.git Make the rec mutex test a little more verbose --- diff --git a/glib/tests/rec-mutex.c b/glib/tests/rec-mutex.c index 055ab07..9ade360 100644 --- a/glib/tests/rec-mutex.c +++ b/glib/tests/rec-mutex.c @@ -83,7 +83,6 @@ acquire (gint nr) { if (g_test_verbose ()) g_print ("thread %p going to block on lock %d\n", self, nr); - } g_rec_mutex_lock (&locks[nr]); @@ -97,6 +96,9 @@ acquire (gint nr) g_assert (owners[nr] == self); /* hopefully this is still us... */ + if (g_test_verbose ()) + g_print ("thread %p recursively taking lock %d\n", self, nr); + g_rec_mutex_lock (&locks[nr]); /* we're recursive, after all */ g_assert (owners[nr] == self); /* hopefully this is still us... */