From 9f401b25899c84e6d0636d848ba8bf8520e64d47 Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Mon, 9 May 2016 16:57:47 +0200 Subject: lib/test: removed the test for the shm_du_map The test had a synchronisation issue. Due to rebuild of the shm_du_map for random access, there was also a hack in the shm_du_map specifically to run this test. Because of this hack, the decision was made to drop this test. --- src/lib/shm_du_map.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/lib/shm_du_map.c') diff --git a/src/lib/shm_du_map.c b/src/lib/shm_du_map.c index 56062c9d..71c15731 100644 --- a/src/lib/shm_du_map.c +++ b/src/lib/shm_du_map.c @@ -328,9 +328,8 @@ int shm_release_du_buff(struct shm_du_map * dum, size_t idx) long blocks = 0; - /* FIXME: this is crap for the test */ if (idx > SHM_BLOCKS_IN_MAP) - idx = *dum->ptr_tail; + return -1; pthread_mutex_lock(dum->shm_mutex); -- cgit v1.2.3