This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository efl.
View the commit online.
commit 18177756aeec313087c02b3c07c00cee36313454
Author: Carsten Haitzler <ras...@rasterman.com>
AuthorDate: Thu May 30 09:18:46 2024 +0100
eina - test - lalloc - fix indenting as its totally misleading
poorly written test case with wrong indents implying fail_if's were in
the for loop! no actual change to results.
---
src/tests/eina/eina_test_lalloc.c | 35 +++++++++++++++++++----------------
1 file changed, 19 insertions(+), 16 deletions(-)
diff --git a/src/tests/eina/eina_test_lalloc.c b/src/tests/eina/eina_test_lalloc.c
index 6e5fd4799e..547fadc315 100644
--- a/src/tests/eina/eina_test_lalloc.c
+++ b/src/tests/eina/eina_test_lalloc.c
@@ -59,27 +59,30 @@ _test_free(Eina_Lazy_Allocator_Test *elat)
EFL_START_TEST(eina_lalloc_simple)
{
- Eina_Lazy_Allocator_Test *elat;
- Eina_Lalloc *test;
- int i;
+ Eina_Lazy_Allocator_Test *elat;
+ Eina_Lalloc *test;
+ int i;
- elat = calloc(1, sizeof (Eina_Lazy_Allocator_Test));
- fail_if(!elat);
+ elat = calloc(1, sizeof (Eina_Lazy_Allocator_Test));
+ fail_if(!elat);
- test = eina_lalloc_new(elat, EINA_LALLOC_ALLOC(
- _test_alloc), EINA_LALLOC_FREE(_test_free), 10);
- fail_if(!test);
+ test = eina_lalloc_new(elat,
+ EINA_LALLOC_ALLOC(_test_alloc),
+ EINA_LALLOC_FREE(_test_free), 10);
+ fail_if(!test);
- for (i = 0; i < 10; ++i)
- fail_if(eina_lalloc_element_add(test) != EINA_TRUE);
- fail_if(eina_lalloc_element_add(test) != EINA_FALSE);
- fail_if(eina_lalloc_elements_add(test, 5) != EINA_TRUE);
- for (i = 0; i < 21; ++i)
- fail_if(eina_lalloc_element_add(test) != EINA_TRUE);
+ for (i = 0; i < 10; ++i)
+ fail_if(eina_lalloc_element_add(test) != EINA_TRUE);
- fail_if(eina_lalloc_elements_add(test, 50) != EINA_FALSE);
+ fail_if(eina_lalloc_element_add(test) != EINA_FALSE);
+ fail_if(eina_lalloc_elements_add(test, 5) != EINA_TRUE);
- eina_lalloc_free(test);
+ for (i = 0; i < 21; ++i)
+ fail_if(eina_lalloc_element_add(test) != EINA_TRUE);
+
+ fail_if(eina_lalloc_elements_add(test, 50) != EINA_FALSE);
+
+ eina_lalloc_free(test);
}
EFL_END_TEST
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.