diff options
author | David Robillard <d@drobilla.net> | 2012-02-09 21:58:12 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-02-09 21:58:12 +0000 |
commit | d649f6712e6d103da9be58dab66a5cee28361d46 (patch) | |
tree | 4da1f2c6f12330554fc608ff9b33e7e23cf0e5c5 /test | |
parent | a53c719dbc146474fc2659442cc2fdd7ff714f15 (diff) | |
download | zix-d649f6712e6d103da9be58dab66a5cee28361d46.tar.gz zix-d649f6712e6d103da9be58dab66a5cee28361d46.tar.bz2 zix-d649f6712e6d103da9be58dab66a5cee28361d46.zip |
Fix (and test) semaphore initialisation on OSX.
git-svn-id: http://svn.drobilla.net/zix/trunk@65 df6676b4-ccc9-40e5-b5d6-7c4628a128e3
Diffstat (limited to 'test')
-rw-r--r-- | test/sem_test.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/sem_test.c b/test/sem_test.c index 1399229..bcc4116 100644 --- a/test/sem_test.c +++ b/test/sem_test.c @@ -65,7 +65,10 @@ main(int argc, char** argv) printf("Testing %u signals...\n", n_signals); - zix_sem_init(&sem, 0); + if (zix_sem_init(&sem, 0)) { + fprintf(stderr, "Failed to create semaphore.\n"); + return 1; + } ZixThread reader_thread; if (zix_thread_create(&reader_thread, 128, reader, NULL)) { |