summaryrefslogtreecommitdiff
path: root/src/tests/lock-autospawn-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/lock-autospawn-test.c')
-rw-r--r--src/tests/lock-autospawn-test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/lock-autospawn-test.c b/src/tests/lock-autospawn-test.c
index 1aa3bcae2..89d402e7e 100644
--- a/src/tests/lock-autospawn-test.c
+++ b/src/tests/lock-autospawn-test.c
@@ -38,7 +38,7 @@ static void thread_func(void*k) {
pa_log("%i, Trying to acquire lock.", PA_PTR_TO_INT(k));
- fail_unless(pa_autospawn_lock_acquire(TRUE) > 0);
+ fail_unless(pa_autospawn_lock_acquire(true) > 0);
pa_log("%i, Got the lock!, Sleeping for 5s", PA_PTR_TO_INT(k));
@@ -48,7 +48,7 @@ static void thread_func(void*k) {
pa_autospawn_lock_release();
- pa_autospawn_lock_done(FALSE);
+ pa_autospawn_lock_done(false);
}
static void thread_func2(void *k) {
@@ -62,7 +62,7 @@ static void thread_func2(void *k) {
struct pollfd pollfd;
int j;
- if ((j = pa_autospawn_lock_acquire(FALSE)) > 0)
+ if ((j = pa_autospawn_lock_acquire(false)) > 0)
break;
fail_unless(j == 0);
@@ -84,7 +84,7 @@ static void thread_func2(void *k) {
pa_autospawn_lock_release();
- pa_autospawn_lock_done(FALSE);
+ pa_autospawn_lock_done(false);
}
START_TEST (lockautospawn_test) {