summaryrefslogtreecommitdiff
path: root/tests/t_mutex.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/t_mutex.c')
-rw-r--r--tests/t_mutex.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/t_mutex.c b/tests/t_mutex.c
index 7c1463b..c0c41cc 100644
--- a/tests/t_mutex.c
+++ b/tests/t_mutex.c
@@ -1,7 +1,5 @@
1/* This software was written by Dirk Engling <erdgeist@erdgeist.org> 1/* This software was written by Dirk Engling <erdgeist@erdgeist.org>
2 It is considered beerware. Prost. Skol. Cheers or whatever. 2 It is considered beerware. Prost. Skol. Cheers or whatever. */
3
4 $id$ */
5 3
6/* System */ 4/* System */
7#include <pthread.h> 5#include <pthread.h>
@@ -26,7 +24,7 @@ static void hash_for_bucket(ot_hash hash, int bucket) {
26} 24}
27 25
28static void case_a_hash_names_its_bucket(void) { 26static void case_a_hash_names_its_bucket(void) {
29 static const int buckets[] = {0, 1, 2, 17, 511, 512, OT_BUCKET_COUNT - 1}; 27 static const int buckets[] = {0, 1, 2, 17, OT_BUCKET_COUNT / 2 - 1, OT_BUCKET_COUNT / 2, OT_BUCKET_COUNT - 1};
30 size_t i; 28 size_t i;
31 29
32 test_case("a hash is served by the bucket its leading bits name"); 30 test_case("a hash is served by the bucket its leading bits name");