Solving tests

This commit is contained in:
Anonymus Raccoon
2020-05-23 19:17:31 +02:00
parent 42d24f8595
commit 2a15ae6e14
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ $(NAME): $(OBJ)
$(CC) -o $(NAME) $(OBJ) $(LDFLAGS)
tests_run: clean
$(CC) -o $(UT) $(TESTS) $(SRC) $(COVERAGE) $(CFLAGS) $(LDFLAGS)
$(CC) -o $(UT) $(TESTS) $(SRC) $(COVERAGE) -g $(CFLAGS) $(LDFLAGS)
$(UT)
func: all
+2 -2
View File
@@ -15,7 +15,7 @@
Test(get_special_arg_at, at_arg)
{
char **argv = split_str(strdup("source file a b c"), (char *[]) {" "});
char **argv = split_str(strdup("source file a b c"), (char *[]) {" ", NULL});
int argv_len = 5;
char *res = NULL;
@@ -26,7 +26,7 @@ Test(get_special_arg_at, at_arg)
Test(get_special_arg_star, at_arg)
{
char **argv = split_str(strdup("source file a b c"), (char *[]) {" "});
char **argv = split_str(strdup("source file a b c"), (char *[]) {" ", NULL});
int argv_len = 5;
char *res = NULL;