From 311bb17b20c4fdbb1af29bf66ab01d0309ee0efe Mon Sep 17 00:00:00 2001 From: = Date: Sat, 20 May 2017 20:26:38 -0400 Subject: Fixed tests, modified makefile. --- test/test_cli.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test/test_cli.c') diff --git a/test/test_cli.c b/test/test_cli.c index 00cc84e..eed7e30 100644 --- a/test/test_cli.c +++ b/test/test_cli.c @@ -17,6 +17,7 @@ You should have received a copy of the GNU General Public License along with Nekopack. If not, see . */ +#include #include #include "minunit.h" @@ -31,7 +32,7 @@ char *test_out_path(void) { char *argv[] = {"nekopack", "-o", "/tmp", "a.xp3"}; struct params p = parse_args(4, argv); mu_assert("Trailing slash not appended to path", !strcmp(p.out, "/tmp/")); - params_free(p); + free(p.out); return NULL; } @@ -40,7 +41,7 @@ char *test_vararg_index(void) { char *argv[] = {"nekopack", "-l", "a.xp3"}; struct params p = parse_args(3, argv); mu_assert("Invalid vararg index", !strcmp("a.xp3", argv[p.vararg_index])); - params_free(p); + free(p.out); return NULL; } @@ -49,6 +50,6 @@ char *test_game_id(void) { char *argv[] = {"nekopack", "-g", "nekopara_volume_1", "a.xp3"}; struct params p = parse_args(4, argv); mu_assert("Incorrect game ID", p.game == NEKOPARA_VOLUME_1); - params_free(p); + free(p.out); return NULL; } -- cgit v1.3