summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-04-30 14:52:05 +0000
committerNick Mathewson <nickm@torproject.org>2007-04-30 14:52:05 +0000
commitee5a378665bfe4f4ed6d5c04619963d9c9a5757e (patch)
tree5b9f07b5402810b894717d4b8fdb4b6c031d5ab1
parent566cdcd0c2aa8a39c99997d4129bcbe00d2ee377 (diff)
downloadtor-ee5a378665bfe4f4ed6d5c04619963d9c9a5757e.tar.gz
tor-ee5a378665bfe4f4ed6d5c04619963d9c9a5757e.zip
r12570@catbus: nickm | 2007-04-30 10:49:50 -0400
Add an extra lock to try to get unit tessts passing reliably again. svn:r10062
-rw-r--r--src/or/test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/test.c b/src/or/test.c
index 21916c8a0e..f5e9d51230 100644
--- a/src/or/test.c
+++ b/src/or/test.c
@@ -1229,7 +1229,9 @@ _thread_test_func(void* _s)
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);