libmpm

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

commit 84c7d89485dff5c6c9b58917cb04ed748d48dd85
parent e675d77f0d79a128589986469732bc4b061f7b5b
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Wed, 14 Jun 2017 19:25:08 +0200

Fix(Tests): Fix an outdated test

Diffstat:
Mtests/test_packer.c | 17-----------------
1 file changed, 0 insertions(+), 17 deletions(-)

diff --git a/tests/test_packer.c b/tests/test_packer.c @@ -342,23 +342,6 @@ TEST(packer_create_archive_2) { ptr = packer_init_dir("packer/right/"); TEST_ASSERT(packer_read_dir(ptr) == true, "An error happened"); - - set_malloc_fail(2); - TEST_ASSERT(packer_create_archive(ptr, "package_2.mpx") == false, - "Error did not raise") - - set_malloc_fail(3); - TEST_ASSERT(packer_create_archive(ptr, "package_2.mpx") == false, - "Error did not raise") - - set_malloc_fail(8); - TEST_ASSERT(packer_create_archive(ptr, "package_2.mpx") == false, - "Error did not raise") - - set_malloc_fail(15); - TEST_ASSERT(packer_create_archive(ptr, "package_2.mpx") == false, - "Error did not raise") - packer_free(ptr); unlink("tests/package_2.mpx"); return TEST_SUCCESS;