mirror of
https://github.com/zoriya/ash.git
synced 2026-06-06 20:03:31 +00:00
Solving tests
This commit is contained in:
@@ -83,7 +83,7 @@ $(NAME): $(OBJ)
|
|||||||
$(CC) -o $(NAME) $(OBJ) $(LDFLAGS)
|
$(CC) -o $(NAME) $(OBJ) $(LDFLAGS)
|
||||||
|
|
||||||
tests_run: clean
|
tests_run: clean
|
||||||
$(CC) -o $(UT) $(TESTS) $(SRC) $(COVERAGE) $(CFLAGS) $(LDFLAGS)
|
$(CC) -o $(UT) $(TESTS) $(SRC) $(COVERAGE) -g $(CFLAGS) $(LDFLAGS)
|
||||||
$(UT)
|
$(UT)
|
||||||
|
|
||||||
func: all
|
func: all
|
||||||
|
|||||||
+2
-2
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
Test(get_special_arg_at, at_arg)
|
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;
|
int argv_len = 5;
|
||||||
char *res = NULL;
|
char *res = NULL;
|
||||||
|
|
||||||
@@ -26,7 +26,7 @@ Test(get_special_arg_at, at_arg)
|
|||||||
|
|
||||||
Test(get_special_arg_star, 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;
|
int argv_len = 5;
|
||||||
char *res = NULL;
|
char *res = NULL;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user