rsys

Basic data structures and low-level features
git clone git://git.meso-star.fr/rsys.git
Log | Files | Refs | README | LICENSE

commit 7ac76c31c9182d37e9795f6172ba984e5e42d02d
parent 4a8310402508ac014c3f5a0863a61e0e4f1f8345
Author: vaplv <vaplv@free.fr>
Date:   Fri, 15 Jul 2016 11:49:11 +0200

Enable unused test code in the dynamic array tests

The file history seems to say that this piece of code may exhibit issues
with the CL compiler but actually there is no reason to disable it.

Diffstat:
Msrc/dynamic_array.h | 2+-
Msrc/test_dynamic_array.c | 4+---
2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/dynamic_array.h b/src/dynamic_array.h @@ -139,7 +139,7 @@ DARRAY_FUNC__(release)(struct DARRAY_TYPE__* darray) { ASSERT(darray); DARRAY_FUNC__(clear)(darray); - if( darray->data != (DARRAY_DATA*)darray->buf ) + if(darray->data != (DARRAY_DATA*)darray->buf) MEM_RM(darray->allocator, darray->data); } diff --git a/src/test_dynamic_array.c b/src/test_dynamic_array.c @@ -48,7 +48,6 @@ const char* strs[] = { ABJ, VG'F BA GB GUR SVANY PUNCGRE BS QBBZ! -- VASREAB." }; -#if 0 static void test_primitive_type(void) { @@ -96,7 +95,6 @@ test_primitive_type(void) check_memory_allocator(&allocator_proxy); mem_shutdown_proxy_allocator(&allocator_proxy); } -#endif #include "str.h" #define DARRAY_NAME struct_str @@ -183,7 +181,7 @@ int main(int argc, char** argv) { (void)argc, (void)argv; - /*test_primitive_type();*/ + test_primitive_type(); test_struct(); CHECK(mem_allocated_size(), 0); return 0;