libmpm

morphux C package management library
Log | Files | Refs | Submodules | README | LICENSE | git clone https://git.ne02ptzero.me/git/libmpm

commit d329472b405128661d1061e5fb186bf87cfb0a0e
parent 4080661d30a49f68dd0266ea73a773fe84955a5b
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Fri,  5 May 2017 10:38:54 +0200

Fix(Tests): Removed a wrongly placed list_for_each (was tired)

Diffstat:
Mtests/test_packer.c | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/tests/test_packer.c b/tests/test_packer.c @@ -274,17 +274,12 @@ TEST(packer_header_deps_init) { TEST(packer_create_archive_1) { packer_t *ptr; - packer_file_t *file; - mlist_t *tmp; ptr = packer_init_dir("packer/right/"); TEST_ASSERT(packer_read_dir(ptr) == true, "An error happened"); TEST_ASSERT(packer_create_archive(ptr, PACKAGE_OUTPUT_FN) == true, "An error happened"); - list_for_each(ptr->files, tmp, file) { - printf("%s\n", file->fn); - } packer_free(ptr); return TEST_SUCCESS; } @@ -386,6 +381,7 @@ TEST(packer_read_archive_3) { ctx = packer_init_archive(PACKAGE_OUTPUT_FN); TEST_ASSERT(packer_read_archive(ctx) == true, "Wrong return"); + packer_free(ctx); return TEST_SUCCESS; }