summaryrefslogtreecommitdiff
path: root/test/test_cli.c
diff options
context:
space:
mode:
author= <jakob@memeware.net>2017-05-20 20:26:38 -0400
committer= <jakob@memeware.net>2017-05-20 20:26:38 -0400
commit311bb17b20c4fdbb1af29bf66ab01d0309ee0efe (patch)
treee7cc8a92f88322c4c43e2ff6f5ace3f636dbbacf /test/test_cli.c
parentd30014068a5468463d4a81692993a2fedd799a71 (diff)
Fixed tests, modified makefile.
Diffstat (limited to 'test/test_cli.c')
-rw-r--r--test/test_cli.c7
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;
}