[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r10062: Add an extra lock to try to get unit tessts passing reliably (in tor/trunk: . src/or)



Author: nickm
Date: 2007-04-30 10:52:05 -0400 (Mon, 30 Apr 2007)
New Revision: 10062

Modified:
   tor/trunk/
   tor/trunk/src/or/test.c
Log:
 r12570@catbus:  nickm | 2007-04-30 10:49:50 -0400
 Add an extra lock to try to get unit tessts passing reliably again.



Property changes on: tor/trunk
___________________________________________________________________
 svk:merge ticket from /tor/trunk [r12570] on 8246c3cf-6607-4228-993b-4d95d33730f1

Modified: tor/trunk/src/or/test.c
===================================================================
--- tor/trunk/src/or/test.c	2007-04-30 14:52:02 UTC (rev 10061)
+++ tor/trunk/src/or/test.c	2007-04-30 14:52:05 UTC (rev 10062)
@@ -1229,7 +1229,9 @@
     strmap_set(_thread_test_strmap, "last to run", cp);
     tor_mutex_release(_thread_test_mutex);
   }
+  tor_mutex_acquire(_thread_test_mutex);
   strmap_set(_thread_test_strmap, s, tor_strdup(buf));
+  tor_mutex_release(_thread_test_mutex);
 
   tor_mutex_release(m);