diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_cli.c | 7 |
1 files changed, 4 insertions, 3 deletions
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 <http://www.gnu.org/licenses/>. */ +#include <stdlib.h> #include <string.h> #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; } |