summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-09-04 22:04:33 +0000
committerLennart Poettering <lennart@poettering.net>2006-09-04 22:04:33 +0000
commit3be920d9aec656e7e34672558e85ba025a4059d0 (patch)
treecdb8b2b846731718bdbc771c726ee0ee9ceb7555 /src/tests
parent813e95f3b88a8345f82a205126d94bbffeda57b9 (diff)
fix pa_thread_is_running() for foreign threads; fix a memory leak for foreign threads
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1370 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/thread-test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/thread-test.c b/src/tests/thread-test.c
index 120d2554..9e8afd9b 100644
--- a/src/tests/thread-test.c
+++ b/src/tests/thread-test.c
@@ -87,6 +87,8 @@ int main(int argc, char *argv[]) {
int i, k;
pa_thread* t[THREADS_MAX];
+ assert(pa_thread_is_running(pa_thread_self()));
+
mutex = pa_mutex_new(0);
cond1 = pa_cond_new();
cond2 = pa_cond_new();